1 # Makefile for vm selftests
3 CFLAGS
= -Wall
-I ..
/..
/..
/..
/usr
/include $(EXTRA_CFLAGS
)
4 BINARIES
= compaction_test
5 BINARIES
+= hugepage-mmap
6 BINARIES
+= hugepage-shm
7 BINARIES
+= map_hugetlb
8 BINARIES
+= mlock2-tests
9 BINARIES
+= on-fault-limit
11 BINARIES
+= transhuge-stress
12 BINARIES
+= userfaultfd
16 $(CC
) $(CFLAGS
) -o
$@
$^
-lrt
17 userfaultfd
: userfaultfd.c ..
/..
/..
/..
/usr
/include/linux
/kernel.h
18 $(CC
) $(CFLAGS
) -O2
-o
$@
$< -lpthread
20 ..
/..
/..
/..
/usr
/include/linux
/kernel.h
:
21 make
-C ..
/..
/..
/.. headers_install
23 TEST_PROGS
:= run_vmtests
24 TEST_FILES
:= $(BINARIES
)