Makefile (c405b738daf9d8e8a5aedfeb6be851681e65e54b) Makefile (1addb6444791f9e87fce0eb9882ec96a4a76e615)
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 \
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
6 large_vm_fork_separation bad_accesses pkey_exec_prot
7TEST_GEN_PROGS_EXTENDED := tlbie_test
8TEST_GEN_FILES := tempfile
9
10top_srcdir = ../../../../..
11include ../../lib.mk
12
13$(TEST_GEN_PROGS): ../harness.c ../utils.c
14
15$(OUTPUT)/prot_sao: ../utils.c
16
17$(OUTPUT)/wild_bctr: CFLAGS += -m64
18$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
19$(OUTPUT)/bad_accesses: CFLAGS += -m64
7TEST_GEN_PROGS_EXTENDED := tlbie_test
8TEST_GEN_FILES := tempfile
9
10top_srcdir = ../../../../..
11include ../../lib.mk
12
13$(TEST_GEN_PROGS): ../harness.c ../utils.c
14
15$(OUTPUT)/prot_sao: ../utils.c
16
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
20
21$(OUTPUT)/tempfile:
22 dd if=/dev/zero of=$@ bs=64k count=1
23
24$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
21
22$(OUTPUT)/tempfile:
23 dd if=/dev/zero of=$@ bs=64k count=1
24
25$(OUTPUT)/tlbie_test: LDLIBS += -lpthread