ASM = $(wildcard *.s) OBJ = $(ASM:%.s=%.o) SYM = $(ASM:%.s=%.sym) .PHONY: all clean all: $(OBJ) clean: $(RM) $(OBJ) $(SYM) %.o: %.s as86 -w- -b $@ -s $*.sym $<