1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm selftests
8 CFLAGS
= -Wall
-I ..
/..
/..
/..
/usr
/include $(EXTRA_CFLAGS
)
10 TEST_GEN_FILES
= compaction_test
11 TEST_GEN_FILES
+= gup_benchmark
12 TEST_GEN_FILES
+= hugepage-mmap
13 TEST_GEN_FILES
+= hugepage-shm
14 TEST_GEN_FILES
+= map_hugetlb
15 TEST_GEN_FILES
+= mlock-random-test
16 TEST_GEN_FILES
+= mlock2-tests
17 TEST_GEN_FILES
+= on-fault-limit
18 TEST_GEN_FILES
+= thuge-gen
19 TEST_GEN_FILES
+= transhuge-stress
20 TEST_GEN_FILES
+= userfaultfd
21 TEST_GEN_FILES
+= va_128TBswitch
22 TEST_GEN_FILES
+= virtual_address_range
24 TEST_PROGS
:= run_vmtests
28 $(OUTPUT
)/userfaultfd
: ..
/..
/..
/..
/usr
/include/linux
/kernel.h
29 $(OUTPUT
)/userfaultfd
: LDLIBS
+= -lpthread
31 $(OUTPUT
)/mlock-random-test
: LDLIBS
+= -lcap
33 ..
/..
/..
/..
/usr
/include/linux
/kernel.h
:
34 make
-C ..
/..
/..
/.. headers_install