diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-08-28 07:20:36 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-08-28 07:20:36 +0300 |
commit | 346b8f6105519a223e7f67029eeac59a5e420f5c (patch) | |
tree | bb04fde0d30b63d3049f39f3d9f5ff949adece24 /Makefile | |
parent | ca69aa0dea509d6f3360f85ad5211d8f8c2f94c1 (diff) | |
download | vsdns-346b8f6105519a223e7f67029eeac59a5e420f5c.tar vsdns-346b8f6105519a223e7f67029eeac59a5e420f5c.tar.xz vsdns-346b8f6105519a223e7f67029eeac59a5e420f5c.zip |
More descriptions added.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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: |