asma: vllt ist dieses 'min_t -'A'' doch nicht zum vernachlaessigen...
[uebersetzerbau-ss10.git] / asma / Makefile
index 0308c8bc284983f94b19ad5677cc86f77f12dc44..0aca7516fd4065a62266c1c7fad1611ef6ba6203 100755 (executable)
@@ -1,15 +1,20 @@
-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  $<"
+       @gcc -pedantic -ansi -Wall -g -o $(NAME) $(NAME).s main.c -D_GNU_SOURCE
+       @echo "execute ./$(NAME)"
+       @./$(NAME)
 
-test2:
-       /usr/ftp/pub/ublu/test/asma/test
+2test:
+       /usr/ftp/pub/ublu/test/$(NAME)/test