summaryrefslogtreecommitdiff
path: root/vm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Makefile')
-rw-r--r--vm/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/vm/Makefile b/vm/Makefile
new file mode 100644
index 0000000..3f94e1a
--- /dev/null
+++ b/vm/Makefile
@@ -0,0 +1,15 @@
+# Makefile for vm selftests
+
+CC = $(CROSS_COMPILE)gcc
+CFLAGS = -Wall
+BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
+
+all: $(BINARIES)
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $^
+
+run_tests: all
+ @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
+
+clean:
+ $(RM) $(BINARIES)