aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 132c7da181e4456b6f4cb1f1337976b753400e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CC=cc
CFLAGS=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -Wno-pointer-to-int-cast -fno-diagnostics-color -I/usr/local/include -ggdb -c -O2
LDFLAGS=-L/usr/local/lib -pthread -lfmt -lutf
O=o

TARG=udp7
OFILES=\
	main.$O\
	util.$O\

HFILES=\
	dat.h\
	fns.h\
	args.h\

.PHONY: all clean
all: $(TARG)

%.$O: %.c
	$(CC) $(CFLAGS) $<

$(OFILES): $(HFILES)

$(TARG): $(OFILES)
	$(CC) -o $@ $(OFILES) $(LDFLAGS)

clean:
	rm $(OFILES) $(TARG)