diff options
author | June McEnroe <june@causal.agency> | 2018-08-04 13:35:29 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-04 13:35:29 -0400 |
commit | ccdeb0c556968bafb9853cdb430c1b87ac22fc67 (patch) | |
tree | b3ea4addf5c386379b36057d0e22653d692f31e5 /Makefile | |
parent | Exit on zero read (diff) | |
download | test-ccdeb0c556968bafb9853cdb430c1b87ac22fc67.tar.gz test-ccdeb0c556968bafb9853cdb430c1b87ac22fc67.zip |
Split source into several files
Can't believe I have to do this.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
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 |