X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=62772323215281a56f3313c6e364d74893bc40a5;hb=fe8a488cd0901903cf93448366b3164c94674ac9;hp=458e8e4a13a236b1adbc8e0c13de4124e848b460;hpb=63960b34d0e77d9e2e5c9cc5a7a31280a1cc3a4f;p=umpf.git diff --git a/Makefile b/Makefile index 458e8e4..6277232 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,26 @@ -all: bison - gcc -Wall -O2 -o cond -g -lpcre 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 int.o lex.o ham.o lists.o lock.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 + +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 umpf *.o core