Linux 4.11-rc6
[linux/fpc-iii.git] / Documentation / EDID / Makefile
blob17763ca3f12ba4048bed05e43ee86e21c24835f1
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)
12 clean:
13 @rm -f *.o *.bin.ihex *.bin *.c
15 %.o: %.S
16 @cc -c $^
18 %.bin: %.o
19 @objcopy -Obinary $^ $@
21 %.bin.ihex: %.o
22 @objcopy -Oihex $^ $@
23 @dos2unix $@ 2>/dev/null
25 %.c: %.bin
26 @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@