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