-all: cond
+all: umpf
CC=gcc
-CFLAGS=-Wall -W -O2 -g
+CFLAGS=-Wall -W -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -O2 -g
LDLIBS=-lpcre
-cond: cond.tab.o lex.o
+umpf: umpf.c cond.tab.o int.o lex.o ham.o lists.o lock.o
gcc -o $@ $^ $(LDLIBS)
-cond.tab.o: cond.tab.c
+lock.o: lex.o cond.tab.o
+
+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.[ch] cond.output cond *.o
+ rm -rf cond.tab.[ch] cond.output cond umpf *.o core