aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4eaa45b6cd8aa0d6cfb75983e1e0bac7d8d1888f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

clean:
	-rm *.o
	-rm analyze_gz
	-rm ui