From ccdeb0c556968bafb9853cdb430c1b87ac22fc67 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 4 Aug 2018 13:35:29 -0400 Subject: Split source into several files Can't believe I have to do this. --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit 1.4.1