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 | 7e50533 | 2013-07-03 15:09:19 -0700 | [diff] [blame] | 5 | BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest |
Konstantin Khlebnikov | 0085d61 | 2014-10-09 15:29:34 -0700 | [diff] [blame] | 6 | BINARIES += transhuge-stress |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 7 | |
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame] | 8 | all: $(BINARIES) |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 9 | %: %.c |
Andrey Skvortsov | f5db310 | 2015-01-07 21:35:54 +0300 | [diff] [blame] | 10 | $(CC) $(CFLAGS) -o $@ $^ -lrt |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 11 | |
12 | run_tests: all | ||||
Joern Engel | 51a1d16 | 2013-07-03 15:09:17 -0700 | [diff] [blame] | 13 | @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1) |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 14 | |
15 | clean: | ||||
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame] | 16 | $(RM) $(BINARIES) |