diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 3abba03..96bd086 100644 --- a/Makefile +++ b/Makefile @@ -7,11 +7,16 @@ CFLAGS += -std=c11 -Wall -Wextra -Wpedantic -Wmissing-prototypes CFLAGS += ${CEXTS:%=-Wno-%} LDADD.libtls = -ltls LDADD.ncursesw = -lncursesw +LDADD.resolv = -include config.mk LDLIBS = ${LDADD.libtls} ${LDADD.ncursesw} +LDLIBS.enroll = ${LDADD.libtls} ${LDADD.resolv} +OBJS.compat = + +OBJS += ${OBJS.compat} OBJS += buffer.o OBJS += chat.o OBJS += command.o @@ -32,11 +37,14 @@ TESTS += edit.t dev: tags all check -all: catgirl +all: catgirl catgirl-enroll catgirl: ${OBJS} ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@ +catgirl-enroll: enroll.o ${OBJS.compat} + ${CC} ${LDFLAGS} enroll.o ${OBJS.compat} ${LDLIBS.enroll} -o $@ + ${OBJS}: chat.h edit.o edit.t input.o: edit.h @@ -53,7 +61,7 @@ tags: *.[ch] ctags -w *.[ch] clean: - rm -f catgirl ${OBJS} ${TESTS} tags + rm -f catgirl catgirl-enroll ${OBJS} enroll.o ${TESTS} tags install: catgirl catgirl.1 install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1 |