]>
Commit | Line | Data |
---|---|---|
f0f57b2b DY |
1 | # Makefile for vm selftests |
2 | ||
3 | CC = $(CROSS_COMPILE)gcc | |
fcc1f2d5 | 4 | CFLAGS = -Wall |
7e50533d | 5 | BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest |
0085d61f | 6 | BINARIES += transhuge-stress |
f0f57b2b | 7 | |
fc256f04 | 8 | all: $(BINARIES) |
f0f57b2b DY |
9 | %: %.c |
10 | $(CC) $(CFLAGS) -o $@ $^ | |
11 | ||
12 | run_tests: all | |
51a1d165 | 13 | @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1) |
f0f57b2b DY |
14 | |
15 | clean: | |
fc256f04 | 16 | $(RM) $(BINARIES) |