ASXXXX=$(HOME)/uPSD/asxxxx BIN_PATH=$(ASXXXX)/asxv4pxx/asxmak/linux/exe AS8051=$(BIN_PATH)/as8051 ASLINK=$(BIN_PATH)/aslink .PRECIOUS: %.rel # don't remove implicit rule files %.rel %.lst %.sym: %.asm # .rel is the object file made of .asm file $(AS8051) -slox $* %.ihx: %.rel # .ihx is the hex code made by .rel object file $(ASLINK) -i $* $* %.hex: %.ihx # rename the .ihx to .hex dump cp $< $@ all: counter seg-test clean: rm -f *.hex *.ihx *.lst *.rel *.sym seg-test: upsd-7seg-test.hex counter: upsd-counter.hex