aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 08d61cf2e36ff2b3234b4f18baaa98b70dc34d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS = -Wall -std=c11 -ggdb -D_POSIX_C_SOURCE=200809L
LDLIBS = -lncurses

.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