diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 |