2012-03-28 21:42:56 +00:00
|
|
|
# Makefile for vm selftests
|
|
|
|
|
2015-09-22 21:58:52 +00:00
|
|
|
CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
|
2016-11-29 11:55:49 +00:00
|
|
|
LDLIBS = -lrt
|
2016-11-29 11:55:47 +00:00
|
|
|
TEST_GEN_FILES = compaction_test
|
|
|
|
TEST_GEN_FILES += hugepage-mmap
|
|
|
|
TEST_GEN_FILES += hugepage-shm
|
|
|
|
TEST_GEN_FILES += map_hugetlb
|
|
|
|
TEST_GEN_FILES += mlock2-tests
|
|
|
|
TEST_GEN_FILES += on-fault-limit
|
|
|
|
TEST_GEN_FILES += thuge-gen
|
|
|
|
TEST_GEN_FILES += transhuge-stress
|
|
|
|
TEST_GEN_FILES += userfaultfd
|
|
|
|
TEST_GEN_FILES += mlock-random-test
|
2012-03-28 21:42:56 +00:00
|
|
|
|
2015-03-11 04:05:59 +00:00
|
|
|
TEST_PROGS := run_vmtests
|
|
|
|
|
|
|
|
include ../lib.mk
|
2012-03-28 21:42:56 +00:00
|
|
|
|
2016-11-29 11:55:49 +00:00
|
|
|
userfaultfd: LDLIBS += -lpthread ../../../../usr/include/linux/kernel.h
|
|
|
|
mlock-random-test: LDLIBS += -lcap
|
|
|
|
|
|
|
|
../../../../usr/include/linux/kernel.h:
|
|
|
|
make -C ../../../.. headers_install
|