about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-02 20:42:00 -0500
committerJune McEnroe <june@causal.agency>2022-03-02 20:42:00 -0500
commitce54b769a3eb6eab8cc61804fdcef0c26993b0fb (patch)
tree9c3ca1178c791b2941883b4e0b31c2f6054b7f37 /Makefile
parentSpecify commands which depend on caps (diff)
downloadcatgirl-ce54b769a3eb6eab8cc61804fdcef0c26993b0fb.tar.gz
catgirl-ce54b769a3eb6eab8cc61804fdcef0c26993b0fb.zip
Add empty enroll program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
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