1# The loops are all 64-bit code 2CFLAGS += -m64 3CFLAGS += -I$(CURDIR) 4CFLAGS += -D SELFTEST 5 6# Use our CFLAGS for the implicit .S rule 7ASFLAGS = $(CFLAGS) 8 9PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7 10EXTRA_SOURCES := validate.c ../harness.c 11 12all: $(PROGS) 13 14copyuser_64: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_base 15copyuser_power7: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_power7 16memcpy_64: CPPFLAGS += -D COPY_LOOP=test_memcpy 17memcpy_power7: CPPFLAGS += -D COPY_LOOP=test_memcpy_power7 18 19$(PROGS): $(EXTRA_SOURCES) 20 21run_tests: all 22 @-for PROG in $(PROGS); do \ 23 ./$$PROG; \ 24 done; 25 26clean: 27 rm -f $(PROGS) *.o 28 29.PHONY: all run_tests clean 30