2012-03-29 04:42:56 +07:00
|
|
|
# Makefile for vm selftests
|
|
|
|
|
2015-09-23 04:58:52 +07:00
|
|
|
CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
|
2016-11-29 18:55:47 +07: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-29 04:42:56 +07:00
|
|
|
|
|
|
|
%: %.c
|
2015-01-08 01:35:54 +07:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^ -lrt
|
2015-09-23 04:58:55 +07:00
|
|
|
userfaultfd: userfaultfd.c ../../../../usr/include/linux/kernel.h
|
|
|
|
$(CC) $(CFLAGS) -O2 -o $@ $< -lpthread
|
|
|
|
|
2016-10-08 06:59:52 +07:00
|
|
|
mlock-random-test: mlock-random-test.c
|
2016-10-08 06:59:46 +07:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< -lcap
|
|
|
|
|
2015-09-23 04:58:55 +07:00
|
|
|
../../../../usr/include/linux/kernel.h:
|
|
|
|
make -C ../../../.. headers_install
|
2012-03-29 04:42:56 +07:00
|
|
|
|
2015-03-11 11:05:59 +07:00
|
|
|
TEST_PROGS := run_vmtests
|
|
|
|
|
|
|
|
include ../lib.mk
|
2012-03-29 04:42:56 +07:00
|
|
|
|