1# SPDX-License-Identifier: GPL-2.0 2SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu \ 3 tm-signal-context-chk-vmx tm-signal-context-chk-vsx 4 5TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \ 6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \ 7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \ 8 tm-signal-context-force-tm tm-poison tm-signal-pagefault 9 10top_srcdir = ../../../../.. 11include ../../lib.mk 12 13$(TEST_GEN_PROGS): ../harness.c ../utils.c 14 15CFLAGS += -mhtm 16 17$(OUTPUT)/tm-syscall: tm-syscall-asm.S 18$(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include 19$(OUTPUT)/tm-tmspr: CFLAGS += -pthread 20$(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64 21$(OUTPUT)/tm-resched-dscr: ../pmu/lib.c 22$(OUTPUT)/tm-unavailable: CFLAGS += -O0 -pthread -m64 -Wno-error=uninitialized -mvsx 23$(OUTPUT)/tm-trap: CFLAGS += -O0 -pthread -m64 24$(OUTPUT)/tm-signal-context-force-tm: CFLAGS += -pthread -m64 25$(OUTPUT)/tm-signal-pagefault: CFLAGS += -pthread -m64 26 27SIGNAL_CONTEXT_CHK_TESTS := $(patsubst %,$(OUTPUT)/%,$(SIGNAL_CONTEXT_CHK_TESTS)) 28$(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S 29$(SIGNAL_CONTEXT_CHK_TESTS): CFLAGS += -mhtm -m64 -mvsx 30