diff options
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 |
