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