aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1221184..08d61cf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,17 @@
-CFLAGS = -Wall -std=c11 -ggdb
+CFLAGS = -Wall -std=c11 -ggdb -D_POSIX_C_SOURCE=200809L
LDLIBS = -lncurses
-analyze-gc: analyze-gz.c
+.PHONY: all
+all: analyze_gz ui
+
+analyze_gz: analyze_gz.o hexdump_pretty.o
+ $(CC) $^ -o $@ $(LDLIBS)
+
+ui: ui.o format.o
+ $(CC) $^ -o $@ $(LDLIBS)
+
+analyze_gz.o: analyze_gz.c hexdump_pretty.h gzip.h
+hexdump_pretty.o: hexdump_pretty.c hexdump_pretty.h
+format.o: format.c format.h gzip.h
+ui.o: ui.c format.h
-ui: ui.c