1 # Makefile for vm selftests
7 CFLAGS
= -Wall
-I ..
/..
/..
/..
/usr
/include $(EXTRA_CFLAGS
)
8 BINARIES
= compaction_test
9 BINARIES
+= hugepage-mmap
10 BINARIES
+= hugepage-shm
11 BINARIES
+= map_hugetlb
12 BINARIES
+= mlock2-tests
13 BINARIES
+= on-fault-limit
15 BINARIES
+= transhuge-stress
16 BINARIES
+= userfaultfd
17 BINARIES
+= mlock-random-test
21 $(CC
) $(CFLAGS
) -o
$@
$^
-lrt
22 userfaultfd
: userfaultfd.c ..
/..
/..
/..
/usr
/include/linux
/kernel.h
23 $(CC
) $(CFLAGS
) -O2
-o
$@
$< -lpthread
25 mlock-random-test
: mlock-random-test.c
26 $(CC
) $(CFLAGS
) -o
$@
$< -lcap
28 ..
/..
/..
/..
/usr
/include/linux
/kernel.h
:
29 make
-C ..
/..
/..
/.. headers_install
31 TEST_PROGS
:= run_vmtests
32 TEST_FILES
:= $(BINARIES
)