summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-04 13:35:29 -0400
committerJune McEnroe <june@causal.agency>2018-08-04 13:35:29 -0400
commitccdeb0c556968bafb9853cdb430c1b87ac22fc67 (patch)
treeb3ea4addf5c386379b36057d0e22653d692f31e5 /Makefile
parentExit on zero read (diff)
downloadcatgirl-ccdeb0c556968bafb9853cdb430c1b87ac22fc67.tar.gz
catgirl-ccdeb0c556968bafb9853cdb430c1b87ac22fc67.zip
Split source into several files
Can't believe I have to do this.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 47c2ecb..b76ba97 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,17 @@ CFLAGS += -Wall -Wextra -Wpedantic
 CFLAGS += -I/usr/local/include
 LDFLAGS += -L/usr/local/lib
 LDLIBS = -lcursesw -ltls
+OBJS = chat.o client.o handle.o input.o ui.o
 
 all: tags chat
 
-tags: *.c
-	ctags -w *.c
+chat: $(OBJS)
+	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
+
+$(OBJS): chat.h
+
+tags: *.h *.c
+	ctags -w *.h *.c
 
 chroot.tar: chat
 	mkdir -p root
@@ -41,4 +47,4 @@ chroot.tar: chat
 	tar -c -f chroot.tar -C root bin etc home lib libexec usr
 
 clean:
-	rm -f tags chat chroot.tar
+	rm -f tags chat $(OBJS) chroot.tar
4d1dffca620089a45&follow=1'>Add litterbox portJune McEnroe 2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe