X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=uebersetzerbau-ss10.git;a=blobdiff_plain;f=gesamt_arm%2FMakefile;fp=gesamt_arm%2FMakefile;h=f00f2718d0ed07fa428181b23e0190be0dc692cf;hp=0000000000000000000000000000000000000000;hb=67902869dbe033c80351a8e5d07bf55ed91b6c34;hpb=16705cf56da9f03c383319e63ffe3fe01613bd24 diff --git a/gesamt_arm/Makefile b/gesamt_arm/Makefile new file mode 100644 index 0000000..f00f271 --- /dev/null +++ b/gesamt_arm/Makefile @@ -0,0 +1,48 @@ +SHELL := bash +NAME := gesamt_ppc +CFLAGS := -ansi -pedantic -D_GNU_SOURCE -g +OBJS := scanner.o parser.o symtable.o code.o chelper.o tree.o + +all: $(NAME) + +$(NAME): $(OBJS) + @echo " LINK $@" + @gcc -o $@ $(OBJS) -lfl + +scanner.c: oxout.l + @echo " FLEX $<" + @flex -o$@ $< + +#dirty deps ;) +%.o: %.c parser.h symtable.h chelper.h tree.h + @echo " CC $<" + @cp $< tmp.c + @gcc -c $(CFLAGS) $< #-Wall + @rm tmp.c + +parser.c: oxout.y chelper.h tree.h + @echo " YACC $<" + @yacc -t -v -d $< -o $@ + +parser.h: parser.c + +oxout.y oxout.l: parser.y scanner.lex + @echo " OX $^" + @ox $^ + +%.c: %.bfe chelper.h tree.h + @echo " IBURG $<" + @bfe < $< | iburg > $@ + +.PHONY: clean +clean: + rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c + +1test: + ~/test/scripts/modlvatest_$(NAME).sh 2>&1 + +lvatest: + /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1 + +bench: + ~/test/scripts/bench.sh $(NAME)