aboutsummaryrefslogtreecommitdiff
path: root/vm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Makefile')
-rw-r--r--vm/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/vm/Makefile b/vm/Makefile
index 436d2e8..3f94e1a 100644
--- a/vm/Makefile
+++ b/vm/Makefile
@@ -2,13 +2,14 @@
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall
+BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
-all: hugepage-mmap hugepage-shm map_hugetlb thuge-gen
+all: $(BINARIES)
%: %.c
$(CC) $(CFLAGS) -o $@ $^
run_tests: all
- @/bin/sh ./run_vmtests || echo "vmtests: [FAIL]"
+ @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
clean:
- $(RM) hugepage-mmap hugepage-shm map_hugetlb
+ $(RM) $(BINARIES)