1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm selftests
4 CFLAGS
= -Wall
-I ..
/..
/..
/..
/usr
/include $(EXTRA_CFLAGS
)
6 TEST_GEN_FILES
= compaction_test
7 TEST_GEN_FILES
+= gup_benchmark
8 TEST_GEN_FILES
+= hugepage-mmap
9 TEST_GEN_FILES
+= hugepage-shm
10 TEST_GEN_FILES
+= map_hugetlb
11 TEST_GEN_FILES
+= map_fixed_noreplace
12 TEST_GEN_FILES
+= map_populate
13 TEST_GEN_FILES
+= mlock-random-test
14 TEST_GEN_FILES
+= mlock2-tests
15 TEST_GEN_FILES
+= on-fault-limit
16 TEST_GEN_FILES
+= thuge-gen
17 TEST_GEN_FILES
+= transhuge-stress
18 TEST_GEN_FILES
+= userfaultfd
19 TEST_GEN_FILES
+= va_128TBswitch
20 TEST_GEN_FILES
+= virtual_address_range
22 TEST_PROGS
:= run_vmtests
24 TEST_FILES
:= test_vmalloc.sh
26 KSFT_KHDR_INSTALL
:= 1
29 $(OUTPUT
)/userfaultfd
: LDLIBS
+= -lpthread
31 $(OUTPUT
)/mlock-random-test
: LDLIBS
+= -lcap