aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7499c81e1d1bb511d5c2a2a174615432bd86e874 (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
29
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\
	echoplus.$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)