about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-08 16:49:50 -0400
committerJune McEnroe <june@causal.agency>2020-04-08 16:49:50 -0400
commitdca3eb7a6a0c7e8a71d26c4390d908f5f6c2f32f (patch)
treedd82c828c185820ac7c39fc6db8681e1b5bbe649 /Makefile
parentSimplify mboxrd output (diff)
downloadimbox-dca3eb7a6a0c7e8a71d26c4390d908f5f6c2f32f.tar.gz
imbox-dca3eb7a6a0c7e8a71d26c4390d908f5f6c2f32f.zip
Use a real IMAP parser
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2a9d1d9..b9b2152 100644
--- a/Makefile
+++ b/Makefile
@@ -12,10 +12,18 @@ MANS = ${BINS:=.1}
 
 -include config.mk
 
+OBJS += imap.o
+OBJS += imbox.o
+
 all: ${BINS}
 
+imbox: ${OBJS}
+	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
+
+${OBJS}: imap.h
+
 clean:
-	rm -f ${BINS}
+	rm -f ${BINS} ${OBJS}
 
 install: ${BINS} ${MANS}
 	install -d ${PREFIX}/bin ${MANDIR}/man1