arm64: codea/abgabe_aa.0
[uebersetzerbau-ss10.git] / codea / Makefile
index a7c5036c26e40a58c31651a3e64ab9dc387bc7eb..5717ca09c284fc645ba62a13ea6fa6d93e688510 100644 (file)
@@ -1,6 +1,6 @@
 SHELL := bash
 NAME := codea
-CFLAGS := -ansi -pedantic -D_GNU_SOURCE
+CFLAGS := -ansi -pedantic -D_GNU_SOURCE -g
 OBJS := scanner.o parser.o symtable.o code.o chelper.o tree.o
 
 all: $(NAME)
@@ -16,7 +16,9 @@ scanner.c: oxout.l
 #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    $<"
@@ -37,10 +39,10 @@ clean:
        rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c
 
 1test:
-       @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
+       ~/test/scripts/modlvatest_codea.sh 2>&1
 
-2test:
+lvatest:
        /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1
+
+bench:
+       ~/test/scripts/bench.sh $(NAME)