diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-05-21 13:07:08 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-05-21 13:28:51 +0200 |
| commit | fb0fd67d6e7e55548c7a0a1ec67f608efffe3a94 (patch) | |
| tree | e712f9a3f6b85402a9e2900dd00d2cec05fb6b14 /makefile | |
| download | xmppcb-fb0fd67d6e7e55548c7a0a1ec67f608efffe3a94.tar.gz xmppcb-fb0fd67d6e7e55548c7a0a1ec67f608efffe3a94.zip | |
initial commit
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..db39b1b --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +# xmppcb - suckless XMPP AI chatbot + +CC ?= cc +CFLAGS ?= -std=c99 -Wall -Wextra -Os +LDLIBS ?= -lssl -lcrypto +PREFIX ?= /usr/local + +xmppcb: xmppcb.c config.h + $(CC) $(CFLAGS) -o $@ xmppcb.c $(LDLIBS) + +config.h: config.def.h + cp config.def.h config.h + +clean: + rm -f xmppcb + +install: xmppcb + install -Dm755 xmppcb $(DESTDIR)$(PREFIX)/bin/xmppcb + +.PHONY: clean install |
