aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <crazycal00@gmail.com>2011-01-02 12:32:27 -0500
committermutantturkey <crazycal00@gmail.com>2011-01-02 12:32:27 -0500
commitbc09d998823c916e542429b7c6087d392fe4d186 (patch)
treebbb12e5d35a32ae6b4abc25e91ff699f57c7e366
parent56671d969244928663cd0c99f890c668f12fc5e1 (diff)
added -O2 -Wall to CFLAGS, removed nonexisting files from clean
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ced58ad..7c9c247 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
-CC?=cc
-CFLAGS?=-O
+CC=cc
+CFLAGS=-O2 -Wall
LIBS=`[ \`uname\` = "SunOS" ] && echo -lsocket -lnsl`
-
TARGETS = bsd linux solaris
.PHONY: all $(TARGETS)
@@ -11,4 +10,4 @@ darkhttpd: darkhttpd.c
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o $@
clean:
- rm -f darkhttpd core darkhttpd.core
+ rm -f darkhttpd