2 SOURCES := $(wildcard [0-9]*x[0-9]*.S)
4 BIN := $(patsubst %.S, %.bin, $(SOURCES))
6 IHEX := $(patsubst %.S, %.bin.ihex, $(SOURCES))
8 CODE := $(patsubst %.S, %.c, $(SOURCES))
10 all: $(BIN) $(IHEX) $(CODE)
13 @rm -f *.o *.bin.ihex *.bin *.c
19 @objcopy -Obinary $^ $@
23 @dos2unix $@ 2>/dev/null
26 @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@