]> mj.ucw.cz Git - umpf.git/blobdiff - Makefile
use clist for headers
[umpf.git] / Makefile
index 5734f8f44f3cbe866e66c0822229ffb4780fa722..a699feef1a8a5a548ecf9eef8f092bb4bf15b7c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,24 @@
-all: bison
-       gcc -Wall -O2 -o cond -g cond.tab.c
+all: brum 
 
-bison:
-       bison cond.y
+CC=gcc
+CFLAGS=-Wall -W -Wno-pointer-sign  -g
+LDLIBS=-lpcre
+
+brum: brum.c cond.tab.o int.o lex.o ham.o lists.o
+       gcc -o $@ $^ $(LDLIBS)
+
+cond.tab.o: cond.tab.c lex.o
+
+lex.o: lex.c cond.tab.c
+
+int.o: int.c
+
+ham.o: ham.c
+
+lists.o: lists.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 brum *.o