about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-08 19:08:57 -0400
committerJune McEnroe <june@causal.agency>2020-04-08 19:08:57 -0400
commit1e24334b33092aa6303e7f3ae3957a0c7fc2240c (patch)
tree163206c0023e5cf4c4fc96fc4be784af5aa3bc60 /Makefile
parentCall fopencookie with a+ (diff)
downloadnotemap-1e24334b33092aa6303e7f3ae3957a0c7fc2240c.tar.gz
notemap-1e24334b33092aa6303e7f3ae3957a0c7fc2240c.zip
Use a real IMAP parser
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3356cf7..caaa9ac 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,16 @@ LDLIBS = -lcrypto -ltls
 
 -include config.mk
 
-notemap:
+OBJS += imap.o
+OBJS += notemap.o
+
+notemap: ${OBJS}
+	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
+
+${OBJS}: compat.h imap.h
 
 clean:
-	rm -f notemap
+	rm -f notemap ${OBJS}
 
 install: notemap notemap.1
 	install -d ${PREFIX}/bin ${MANDIR}/man1