1# SPDX-License-Identifier: GPL-2.0 2 3TM_TESTS := ptrace-tm-gpr 4TM_TESTS += ptrace-tm-spd-gpr 5TM_TESTS += ptrace-tm-spd-tar 6TM_TESTS += ptrace-tm-spd-vsx 7TM_TESTS += ptrace-tm-spr 8TM_TESTS += ptrace-tm-tar 9TM_TESTS += ptrace-tm-vsx 10 11TESTS_64 := $(TM_TESTS) 12TESTS_64 += core-pkey 13TESTS_64 += perf-hwbreak 14TESTS_64 += ptrace-hwbreak 15TESTS_64 += ptrace-perf-hwbreak 16TESTS_64 += ptrace-pkey 17TESTS_64 += ptrace-syscall 18TESTS_64 += ptrace-tar 19TESTS_64 += ptrace-vsx 20 21TESTS += ptrace-gpr 22 23TEST_GEN_PROGS := $(TESTS) $(TESTS_64) 24 25LOCAL_HDRS += $(patsubst %,$(selfdir)/powerpc/ptrace/%,$(wildcard *.h)) 26 27top_srcdir = ../../../../.. 28include ../../lib.mk 29 30TM_TESTS := $(patsubst %,$(OUTPUT)/%,$(TM_TESTS)) 31TESTS_64 := $(patsubst %,$(OUTPUT)/%,$(TESTS_64)) 32 33$(TESTS_64): CFLAGS += -m64 34$(TM_TESTS): CFLAGS += -I../tm -mhtm 35 36CFLAGS += $(KHDR_INCLUDES) -fno-pie 37 38$(OUTPUT)/ptrace-gpr: ptrace-gpr.S 39$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread 40 41$(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S 42