commit d6f464ea4a66968f3d3a44433dfdd7819006804c
parent 45822e2399a0daad7046b2cf309c0cbaff96104d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:22:21 +0200
makefile: remove debug from normal build
stricter options for now (cleanup)
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,9 +1,11 @@
DESTDIR=
-sdhcp: sdhcp.c debug.c
MANDIR = /usr/share/man
+sdhcp: sdhcp.c
+ $(CC) -O2 -o $@ sdhcp.c -static -Wall -ansi
+
debug: sdhcp.c debug.c
- $(CC) -DDEBUG -o sdhcp sdhcp.c -static
+ $(CC) -DDEBUG -o sdhcp sdhcp.c -static -O0 -g -Wall -ansi
all: sdhcp