From 7b521cf75376ccfd38c2ff077c854b408fe616ff Mon Sep 17 00:00:00 2001
From: "C. McEnroe" <june@causal.agency>
Date: Thu, 9 Jul 2020 18:57:29 -0400
Subject: Split code and add breadcrumb nav

---
 Makefile | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 94ca089..47f6aa4 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,20 @@ LDLIBS = -lkcgi -lkcgihtml -lsqlite3
 
 -include config.mk
 
-scooper:
+OBJS += contexts.o
+OBJS += events.o
+OBJS += html.o
+OBJS += networks.o
+OBJS += search.o
+OBJS += server.o
+
+scooper: ${OBJS}
+	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
+
+${OBJS}: server.h
 
 clean:
-	rm -f scooper
+	rm -f scooper ${OBJS}
 
 install: scooper scooper.1
 	install -d ${PREFIX}/bin ${MANDIR}/man1
-- 
cgit 1.4.1