1 CC := $(CROSS_COMPILE)gcc
2 PROGS := switch_endian_test
4 ASFLAGS += -O2 -Wall -g -nostdlib -m64
8 switch_endian_test: check-reversed.S
10 check-reversed.o: check.o
11 $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
13 check-reversed.S: check-reversed.o
14 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
17 @-for PROG in $(PROGS); do \
22 rm -f $(PROGS) *.o check-reversed.S
24 .PHONY: all run_tests clean