X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=codea%2FMakefile;h=a7c5036c26e40a58c31651a3e64ab9dc387bc7eb;hb=79bf606e8b7d140aa1468154bb747636bd75eb00;hp=2b0df7d7676eb8f4c00293a09bbc293326a7b9e9;hpb=73e86dfddc6c4375afc1b73cf9b47f13f73a1973;p=uebersetzerbau-ss10.git diff --git a/codea/Makefile b/codea/Makefile index 2b0df7d..a7c5036 100644 --- a/codea/Makefile +++ b/codea/Makefile @@ -1,7 +1,7 @@ SHELL := bash NAME := codea CFLAGS := -ansi -pedantic -D_GNU_SOURCE -OBJS := scanner.o parser.o symtable.o code.o chelper.o +OBJS := scanner.o parser.o symtable.o code.o chelper.o tree.o all: $(NAME) @@ -14,11 +14,11 @@ scanner.c: oxout.l @flex -o$@ $< #dirty deps ;) -%.o: %.c parser.h symtable.h chelper.h +%.o: %.c parser.h symtable.h chelper.h tree.h @echo " CC $<" @gcc -c $(CFLAGS) $< #-Wall -parser.c: oxout.y chelper.h +parser.c: oxout.y chelper.h tree.h @echo " YACC $<" @yacc -t -v -d $< -o $@ @@ -28,7 +28,7 @@ oxout.y oxout.l: parser.y scanner.lex @echo " OX $^" @ox $^ -%.c: %.bfe chelper.h +%.c: %.bfe chelper.h tree.h @echo " IBURG $<" @bfe < $< | iburg > $@ @@ -40,6 +40,7 @@ clean: @echo " CC callingconvention.c" @gcc -c -fomit-frame-pointer -fno-defer-pop testit/callingconvention.c -o testit/callingconvention.o @./testit/test + @rm testcodeaout*.s a.out 2test: /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1