arm: first working example
[uebersetzerbau-ss10.git] / asmb / Makefile
index f3074164e698abe618eed09afaeec93394d81907..43a0fa5e00692cf8e8e273a7b0af9d04284d229e 100755 (executable)
@@ -7,13 +7,14 @@ $(NAME).o: $(NAME).s
 
 .PHONY: clean
 clean:
-       rm -f $(NAME).o $(NAME) *.trace *.tmp
+       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 2>&1