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 |
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame^] | 5 | BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 6 | |
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame^] | 7 | all: $(BINARIES) |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 8 | %: %.c |
9 | $(CC) $(CFLAGS) -o $@ $^ | ||||
10 | |||||
11 | run_tests: all | ||||
Joern Engel | 51a1d16 | 2013-07-03 15:09:17 -0700 | [diff] [blame] | 12 | @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1) |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 13 | |
14 | clean: | ||||
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame^] | 15 | $(RM) $(BINARIES) |