2012-03-29 05:42:56 +08:00
|
|
|
# Makefile for vm selftests
|
|
|
|
|
2017-03-10 08:17:14 +08:00
|
|
|
ifndef OUTPUT
|
|
|
|
OUTPUT := $(shell pwd)
|
|
|
|
endif
|
|
|
|
|
2015-09-23 05:58:52 +08:00
|
|
|
CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
|
2016-11-29 19:55:49 +08:00
|
|
|
LDLIBS = -lrt
|
2016-11-29 19:55:47 +08: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
|
2017-05-09 07:00:19 +08:00
|
|
|
TEST_GEN_FILES += virtual_address_range
|
2012-03-29 05:42:56 +08:00
|
|
|
|
2015-03-11 12:05:59 +08:00
|
|
|
TEST_PROGS := run_vmtests
|
|
|
|
|
|
|
|
include ../lib.mk
|
2012-03-29 05:42:56 +08:00
|
|
|
|
2017-05-04 05:54:54 +08:00
|
|
|
$(OUTPUT)/userfaultfd: ../../../../usr/include/linux/kernel.h
|
|
|
|
$(OUTPUT)/userfaultfd: LDLIBS += -lpthread
|
2017-02-23 07:43:46 +08:00
|
|
|
|
2016-11-29 19:55:52 +08:00
|
|
|
$(OUTPUT)/mlock-random-test: LDLIBS += -lcap
|
2016-10-08 07:59:46 +08:00
|
|
|
|
2015-09-23 05:58:55 +08:00
|
|
|
../../../../usr/include/linux/kernel.h:
|
|
|
|
make -C ../../../.. headers_install
|