#simple Makefile .SUFFIXES: .SUFFIXES: .s .o .PHONY: clean %.o: %.s as -mregnames -o $@ $< all: ex1 ex1: ex1.o ld -T ex1.ld -o $@ $^ clean: rm -f ex1 rm -f *.o