About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / EDID / Makefile




Custom Search

Based on kernel version 3.15.4. Page generated on 2014-07-07 09:02 EST.

1	
2	SOURCES	:= $(wildcard [0-9]*x[0-9]*.S)
3	
4	BIN	:= $(patsubst %.S, %.bin, $(SOURCES))
5	
6	IHEX	:= $(patsubst %.S, %.bin.ihex, $(SOURCES))
7	
8	CODE	:= $(patsubst %.S, %.c, $(SOURCES))
9	
10	all:	$(BIN) $(IHEX) $(CODE)
11	
12	clean:
13		@rm -f *.o *.bin.ihex *.bin *.c
14	
15	%.o:	%.S
16		@cc -c $^
17	
18	%.bin:	%.o
19		@objcopy -Obinary $^ $@
20	
21	%.bin.ihex:	%.o
22		@objcopy -Oihex $^ $@
23		@dos2unix $@ 2>/dev/null
24	
25	%.c:	%.bin
26		@echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.