Makefile 773 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2 3
# Makefile for vm selftests

4 5 6 7
ifndef OUTPUT
  OUTPUT := $(shell pwd)
endif

8
CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
9
LDLIBS = -lrt
10
TEST_GEN_FILES = compaction_test
11
TEST_GEN_FILES += gup_benchmark
12 13 14
TEST_GEN_FILES += hugepage-mmap
TEST_GEN_FILES += hugepage-shm
TEST_GEN_FILES += map_hugetlb
15
TEST_GEN_FILES += map_populate
16
TEST_GEN_FILES += mlock-random-test
17 18 19 20 21
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
22
TEST_GEN_FILES += va_128TBswitch
23
TEST_GEN_FILES += virtual_address_range
24

25 26 27
TEST_PROGS := run_vmtests

include ../lib.mk
28

29
$(OUTPUT)/userfaultfd: LDLIBS += -lpthread
30

31
$(OUTPUT)/mlock-random-test: LDLIBS += -lcap