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