arm64: codea/abgabe_aa.0
[uebersetzerbau-ss10.git] / asma / Makefile
index 0308c8bc284983f94b19ad5677cc86f77f12dc44..d2f9841064f21ce0afc7ed1b1dfcdb928d538d52 100755 (executable)
@@ -1,15 +1,22 @@
-all: asma.o
+NAME := asma
+all: $(NAME).o
 
-asma.o: asma.s
-       gcc -c -o asma.o asma.s
+$(NAME).o: $(NAME).s
+       @echo "  COMPILE  $<"
+       @gcc -c -o $(NAME).o $(NAME).s
 
 .PHONY: clean
 clean:
-       rm -f asma.o asma
+       rm -f $(NAME).o $(NAME)
 
-test1: all
-       gcc -pedantic -ansi -Wall -g -o asma asma.s main.c -D_GNU_SOURCE
+1test: all
+       @echo "  COMPILE  callingconvention.c"
+       @gcc -c -fomit-frame-pointer -fno-defer-pop callingconvention.c
+       @echo "  COMPILE  $<"
+       @gcc -Wall -g -o $(NAME) $(NAME).s main.c callingconvention.o -D_GNU_SOURCE
+       @echo "execute ./$(NAME)"
+       @./$(NAME)
 
-test2:
-       /usr/ftp/pub/ublu/test/asma/test
+2test:
+       /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1