-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