Linux 4.19.133
[linux/fpc-iii.git] / tools / testing / selftests / vm / Makefile
blob2cf3dc49bd0346c1e779f3e083f40c4286ac4d45
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for vm selftests
4 ifndef OUTPUT
5 OUTPUT := $(shell pwd)
6 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 TEST_GEN_FILES += hugepage-mmap
13 TEST_GEN_FILES += hugepage-shm
14 TEST_GEN_FILES += map_hugetlb
15 TEST_GEN_FILES += map_populate
16 TEST_GEN_FILES += mlock-random-test
17 TEST_GEN_FILES += mlock2-tests
18 TEST_GEN_FILES += on-fault-limit
19 TEST_GEN_FILES += thuge-gen
20 TEST_GEN_FILES += transhuge-stress
21 TEST_GEN_FILES += userfaultfd
22 TEST_GEN_FILES += va_128TBswitch
23 TEST_GEN_FILES += virtual_address_range
25 TEST_PROGS := run_vmtests
27 TEST_FILES := test_vmalloc.sh
29 KSFT_KHDR_INSTALL := 1
30 include ../lib.mk
32 $(OUTPUT)/userfaultfd: LDLIBS += -lpthread
34 $(OUTPUT)/mlock-random-test: LDLIBS += -lcap