]> mj.ucw.cz Git - umpf.git/blobdiff - Makefile
fix modified flags
[umpf.git] / Makefile
index 32acee5f25c59306bc6297a2a97d1135a5420e6e..6131357be4a3ca94b79f64cda315cf2a0effbb0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,28 @@
-all: bison
-       gcc -Wall -O2 -o cond cond.tab.c
+all: umpf 
 
-bison:
-       bison cond.y
+CC=gcc
+CFLAGS=-Wall -W -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -O2 -g
+LDLIBS=-lpcre
+
+umpf: umpf.c cond.tab.o lex.o ham.o lists.o lock.o code.o int.o
+       gcc -o $@ $^ $(LDLIBS)
+
+lock.o: lex.o cond.tab.o
+
+cond.tab.o: cond.tab.c lex.o
+
+lex.o: lex.c cond.tab.c
+
+ham.o: ham.c
+
+code.o: code.c
+
+lists.o: lists.c
+
+int.o: int.c
+
+cond.tab.c: cond.y
+       bison -dvt cond.y
 
 clean:
-       rm -rf cond.tab.c cond  
+       rm -rf cond.tab.[ch] cond.output cond umpf *.o core