mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-17 03:44:00 +00:00
The bulk of the selftests are actually below the powerpc sub directory. This adds support for installing them, when on a powerpc machine, or if ARCH and CROSS_COMPILE are set appropriately. This is a little more complicated because of the sub directory structure under powerpc, but much of the common logic in lib.mk is still used. The net effect of the patch is still a reduction in code. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
15 lines
241 B
Makefile
15 lines
241 B
Makefile
# The loops are all 64-bit code
|
|
CFLAGS += -m64
|
|
CFLAGS += -I$(CURDIR)
|
|
|
|
TEST_PROGS := memcmp
|
|
EXTRA_SOURCES := memcmp_64.S ../harness.c
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
$(TEST_PROGS): $(EXTRA_SOURCES)
|
|
|
|
include ../../lib.mk
|
|
|
|
clean:
|
|
rm -f $(TEST_PROGS) *.o
|