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