Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 1 | # Makefile for vm selftests |
| 2 | |
| 3 | CC = $(CROSS_COMPILE)gcc |
Andi Kleen | fcc1f2d | 2012-12-11 16:01:36 -0800 | [diff] [blame] | 4 | CFLAGS = -Wall |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 5 | |
Andi Kleen | fcc1f2d | 2012-12-11 16:01:36 -0800 | [diff] [blame] | 6 | all: hugepage-mmap hugepage-shm map_hugetlb thuge-gen |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 7 | %: %.c |
| 8 | $(CC) $(CFLAGS) -o $@ $^ |
| 9 | |
| 10 | run_tests: all |
Joern Engel | 51a1d16 | 2013-07-03 15:09:17 -0700 | [diff] [blame^] | 11 | @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1) |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 12 | |
| 13 | clean: |
| 14 | $(RM) hugepage-mmap hugepage-shm map_hugetlb |