OSDN Git Service

selftests: remove duplicated all and clean target
[tomoyo/tomoyo-test1.git] / tools / testing / selftests / powerpc / switch_endian / Makefile
1 TEST_GEN_PROGS := switch_endian_test
2
3 ASFLAGS += -O2 -Wall -g -nostdlib -m64
4
5 include ../../lib.mk
6
7 switch_endian_test: check-reversed.S
8
9 check-reversed.o: check.o
10         $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
11
12 check-reversed.S: check-reversed.o
13         hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
14
15 clean:
16         $(RM) $(TEST_GEN_PROGS) *.o check-reversed.S