blob: 208f55e25f3bfbad731b44a8d5feea564ff3dbad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
DEBUG ?= yes
CFLAGS = -xc -ansi -Wall
ifeq '$(DEBUG)' 'yes'
CFLAGS += -g -O0
else
CFLAGS += -O3
endif
dns_example: dns_example.c dns.c
gcc $(CFLAGS) $^ -I. -o $@
.PHONY: clean
clean:
rm -f dns_example
|