3 CFLAGS := -ansi -pedantic -D_GNU_SOURCE
4 OBJS := scanner.o parser.o symtable.o code.o chelper.o tree.o
10 @gcc -o $@ $(OBJS) -lfl
17 %.o: %.c parser.h symtable.h chelper.h tree.h
19 @gcc -c $(CFLAGS) $< #-Wall
21 parser.c: oxout.y chelper.h tree.h
23 @yacc -t -v -d $< -o $@
27 oxout.y oxout.l: parser.y scanner.lex
31 %.c: %.bfe chelper.h tree.h
33 @bfe < $< | iburg > $@
37 rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c
40 @echo " CC callingconvention.c"
41 @gcc -c -fomit-frame-pointer -fno-defer-pop testit/callingconvention.c -o testit/callingconvention.o
43 @rm testcodeaout*.s a.out
46 /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1