diff options
Diffstat (limited to 'kernel/Documentation/EDID/Makefile')
-rw-r--r-- | kernel/Documentation/EDID/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/kernel/Documentation/EDID/Makefile b/kernel/Documentation/EDID/Makefile new file mode 100644 index 000000000..17763ca3f --- /dev/null +++ b/kernel/Documentation/EDID/Makefile @@ -0,0 +1,26 @@ + +SOURCES := $(wildcard [0-9]*x[0-9]*.S) + +BIN := $(patsubst %.S, %.bin, $(SOURCES)) + +IHEX := $(patsubst %.S, %.bin.ihex, $(SOURCES)) + +CODE := $(patsubst %.S, %.c, $(SOURCES)) + +all: $(BIN) $(IHEX) $(CODE) + +clean: + @rm -f *.o *.bin.ihex *.bin *.c + +%.o: %.S + @cc -c $^ + +%.bin: %.o + @objcopy -Obinary $^ $@ + +%.bin.ihex: %.o + @objcopy -Oihex $^ $@ + @dos2unix $@ 2>/dev/null + +%.c: %.bin + @echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@ |