0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.140.195.8


Current Path : /proc/self/root/usr/src/linux-headers-5.4.0-1097-aws/Documentation/EDID/
Upload File :
Current File : //proc/self/root/usr/src/linux-headers-5.4.0-1097-aws/Documentation/EDID/Makefile

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.nocrc:	%.o
	@objcopy -Obinary $^ $@

%.crc:	%.bin.nocrc
	@list=$$(for i in `seq 1 127`; do head -c$$i $^ | tail -c1 \
		| hexdump -v -e '/1 "%02X+"'; done); \
		echo "ibase=16;100-($${list%?})%100" | bc >$@

%.p:	%.crc %.S
	@cc -c -DCRC="$$(cat $*.crc)" -o $@ $*.S

%.bin:	%.p
	@objcopy -Obinary $^ $@

%.bin.ihex:	%.p
	@objcopy -Oihex $^ $@
	@dos2unix $@ 2>/dev/null

%.c:	%.bin
	@echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@