Blame view

kernel/linux-rt-4.4.41/Documentation/EDID/Makefile 435 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 "};" >>$@