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