1# SPDX-License-Identifier: GPL-2.0 2# Makefile for vm selftests 3 4ifndef OUTPUT 5 OUTPUT := $(shell pwd) 6endif 7 8CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS) 9LDLIBS = -lrt 10TEST_GEN_FILES = compaction_test 11TEST_GEN_FILES += gup_benchmark 12TEST_GEN_FILES += hugepage-mmap 13TEST_GEN_FILES += hugepage-shm 14TEST_GEN_FILES += map_hugetlb 15TEST_GEN_FILES += map_fixed_noreplace 16TEST_GEN_FILES += map_populate 17TEST_GEN_FILES += mlock-random-test 18TEST_GEN_FILES += mlock2-tests 19TEST_GEN_FILES += on-fault-limit 20TEST_GEN_FILES += thuge-gen 21TEST_GEN_FILES += transhuge-stress 22TEST_GEN_FILES += userfaultfd 23TEST_GEN_FILES += va_128TBswitch 24TEST_GEN_FILES += virtual_address_range 25 26TEST_PROGS := run_vmtests 27 28include ../lib.mk 29 30$(OUTPUT)/userfaultfd: LDLIBS += -lpthread 31 32$(OUTPUT)/mlock-random-test: LDLIBS += -lcap 33