Makefile

changeset 18
cae1294702aa
parent 16
bc9a0fefd892
child 23
778388400f7b
--- a/Makefile	Thu Oct 06 00:06:30 2011 +0200
+++ b/Makefile	Sat Oct 15 14:52:12 2011 +0200
@@ -1,4 +1,5 @@
 CC = gcc
+CARG = -Wall -std=gnu99
 BUILDDIR = build/
 OBJ = $(shell ls | grep '\.c' | sed 's/^\([^.]*\)\.c$$/${BUILDDIR:/=\/}\1.o/g' | tr '\n' ' ')
 BIN = ${BUILDDIR}cline
@@ -25,7 +26,7 @@
 	mv cline.src cline.h
 
 ${BUILDDIR}%.o: %.c
-	${CC} -c -std=c99 -o ${BUILDDIR}$*.o $<
+	${CC} ${CARG} -c -o ${BUILDDIR}$*.o $<
 
 clean:
 	rm -f build/*

mercurial