Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 1 | # Makefile for vm selftests |
2 | |||||
Andi Kleen | fcc1f2d | 2012-12-11 16:01:36 -0800 | [diff] [blame] | 3 | CFLAGS = -Wall |
Sri Jayaramappa | bd67d5c | 2015-04-23 14:21:41 -0400 | [diff] [blame^] | 4 | BINARIES = compaction_test |
5 | BINARIES += hugepage-mmap | ||||
6 | BINARIES += hugepage-shm | ||||
7 | BINARIES += hugetlbfstest | ||||
8 | BINARIES += map_hugetlb | ||||
9 | BINARIES += thuge-gen | ||||
Konstantin Khlebnikov | 0085d61 | 2014-10-09 15:29:34 -0700 | [diff] [blame] | 10 | BINARIES += transhuge-stress |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 11 | |
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame] | 12 | all: $(BINARIES) |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 13 | %: %.c |
Andrey Skvortsov | f5db310 | 2015-01-07 21:35:54 +0300 | [diff] [blame] | 14 | $(CC) $(CFLAGS) -o $@ $^ -lrt |
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 15 | |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 16 | TEST_PROGS := run_vmtests |
Michael Ellerman | 32dcfba | 2015-03-11 15:06:00 +1100 | [diff] [blame] | 17 | TEST_FILES := $(BINARIES) |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 18 | |
19 | include ../lib.mk | ||||
Dave Young | f0f57b2 | 2012-03-28 14:42:56 -0700 | [diff] [blame] | 20 | |
21 | clean: | ||||
Joern Engel | fc256f0 | 2013-07-03 15:09:18 -0700 | [diff] [blame] | 22 | $(RM) $(BINARIES) |