aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-08-28 07:20:36 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-08-28 07:20:36 +0300
commit346b8f6105519a223e7f67029eeac59a5e420f5c (patch)
treebb04fde0d30b63d3049f39f3d9f5ff949adece24 /Makefile
parentca69aa0dea509d6f3360f85ad5211d8f8c2f94c1 (diff)
downloadvsdns-346b8f6105519a223e7f67029eeac59a5e420f5c.tar
vsdns-346b8f6105519a223e7f67029eeac59a5e420f5c.tar.xz
vsdns-346b8f6105519a223e7f67029eeac59a5e420f5c.zip
More descriptions added.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0cb1cbc..208f55e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,14 @@
-dns_example: dns_example.c dns.c dns.h
- gcc dns_example.c dns.c -I. -o $@
+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: