Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / tools / testing / selftests / powerpc / copyloops / Makefile
blob6f2d3be227f9909622876c6215bcf534b88a455c
1 # The loops are all 64-bit code
2 CFLAGS += -m64
3 CFLAGS += -I$(CURDIR)
4 CFLAGS += -D SELFTEST
6 # Use our CFLAGS for the implicit .S rule
7 ASFLAGS = $(CFLAGS)
9 PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7
10 EXTRA_SOURCES := validate.c ../harness.c
12 all: $(PROGS)
14 copyuser_64: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_base
15 copyuser_power7: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_power7
16 memcpy_64: CPPFLAGS += -D COPY_LOOP=test_memcpy
17 memcpy_power7: CPPFLAGS += -D COPY_LOOP=test_memcpy_power7
19 $(PROGS): $(EXTRA_SOURCES)
21 run_tests: all
22 @-for PROG in $(PROGS); do \
23 ./$$PROG; \
24 done;
26 clean:
27 rm -f $(PROGS) *.o
29 .PHONY: all run_tests clean