summaryrefslogtreecommitdiffstats
path: root/kernel/tools/testing/selftests/vm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/testing/selftests/vm/Makefile')
-rw-r--r--kernel/tools/testing/selftests/vm/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/tools/testing/selftests/vm/Makefile b/kernel/tools/testing/selftests/vm/Makefile
new file mode 100644
index 000000000..a5ce9534e
--- /dev/null
+++ b/kernel/tools/testing/selftests/vm/Makefile
@@ -0,0 +1,17 @@
+# Makefile for vm selftests
+
+CFLAGS = -Wall
+BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
+BINARIES += transhuge-stress
+
+all: $(BINARIES)
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $^ -lrt
+
+TEST_PROGS := run_vmtests
+TEST_FILES := $(BINARIES)
+
+include ../lib.mk
+
+clean:
+ $(RM) $(BINARIES)