Makefile: turn on all warnings
[model-checker.git] / Makefile
index 25b9459a8cfa0176d8b9f61f7ae4405f8d36a4cb..139e9540884e5210dde95aa785153ea68e4e07e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,16 @@
+CC=gcc
 BIN=libthreads
-SOURCE=libthreads.c
-FLAGS=
+SOURCE=libthreads.c schedule.c
+HEADERS=libthreads.h schedule.h common.h
+FLAGS=-Wall
 
 all: ${BIN}
 
-${BIN}: ${SOURCE}
-       gcc -o ${BIN} ${SOURCE} ${FLAGS}
+${BIN}: ${SOURCE} ${HEADERS}
+       ${CC} -o ${BIN} ${SOURCE} ${FLAGS}
 
 clean:
        rm -f ${BIN} *.o
+
+tags::
+       ctags -R