1# SPDX-License-Identifier: GPL-2.0 2noarg: 3 $(MAKE) -C ../ 4 5TEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \ 6 large_vm_fork_separation bad_accesses pkey_exec_prot \ 7 pkey_siginfo stack_expansion_signal stack_expansion_ldst 8TEST_PROGS := stress_code_patching.sh 9 10TEST_GEN_PROGS_EXTENDED := tlbie_test 11TEST_GEN_FILES := tempfile 12 13top_srcdir = ../../../../.. 14include ../../lib.mk 15 16$(TEST_GEN_PROGS): ../harness.c ../utils.c 17 18$(OUTPUT)/prot_sao: ../utils.c 19 20$(OUTPUT)/wild_bctr: CFLAGS += -m64 21$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64 22$(OUTPUT)/bad_accesses: CFLAGS += -m64 23$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64 24$(OUTPUT)/pkey_siginfo: CFLAGS += -m64 25 26$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c 27 28$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector 29$(OUTPUT)/stack_expansion_ldst: ../utils.c 30 31$(OUTPUT)/tempfile: 32 dd if=/dev/zero of=$@ bs=64k count=1 33 34$(OUTPUT)/tlbie_test: LDLIBS += -lpthread 35$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread 36