ppc: eq (codea_abgabe_ak.0)
[uebersetzerbau-ss10.git] / asmb / Makefile
index a4218dda0bb56dcf5093e34c7be85e9d5bb96777..43a0fa5e00692cf8e8e273a7b0af9d04284d229e 100755 (executable)
@@ -7,14 +7,15 @@ $(NAME).o: $(NAME).s
 
 .PHONY: clean
 clean:
-       rm -f $(NAME).o $(NAME)
+       rm -f $(NAME).o $(NAME)test *.trace *.tmp
 
 1test: all
        @echo "  COMPILE  $<"
-       @gcc -pedantic -ansi -Wall -g -o $(NAME) $(NAME).s main.c -D_GNU_SOURCE
-       @echo "execute ./$(NAME)"
-       @./$(NAME)
+       @gcc -O -pedantic -ansi -Wall -g -o $(NAME)test $(NAME).s $(NAME)test.c -D_GNU_SOURCE
+       @./dumpinstr.sh $(NAME)test $(NAME)
+       @echo "execute ./$(NAME)test"
+       @./$(NAME)test
 
 2test:
-       /usr/ftp/pub/ublu/test/$(NAME)/test
+       /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1