blob: d36fab7d8ebd90c1de5a6878171dca75ea518998 [file] [log] [blame]
Dave Youngf0f57b22012-03-28 14:42:56 -07001# Makefile for vm selftests
2
Andi Kleenfcc1f2d2012-12-11 16:01:36 -08003CFLAGS = -Wall
Sri Jayaramappabd67d5c2015-04-23 14:21:41 -04004BINARIES = compaction_test
5BINARIES += hugepage-mmap
6BINARIES += hugepage-shm
Sri Jayaramappabd67d5c2015-04-23 14:21:41 -04007BINARIES += map_hugetlb
8BINARIES += thuge-gen
Konstantin Khlebnikov0085d612014-10-09 15:29:34 -07009BINARIES += transhuge-stress
Andrea Arcangelic47174f2015-09-04 15:47:23 -070010BINARIES += userfaultfd
Dave Youngf0f57b22012-03-28 14:42:56 -070011
Joern Engelfc256f02013-07-03 15:09:18 -070012all: $(BINARIES)
Dave Youngf0f57b22012-03-28 14:42:56 -070013%: %.c
Andrey Skvortsovf5db3102015-01-07 21:35:54 +030014 $(CC) $(CFLAGS) -o $@ $^ -lrt
Andrea Arcangelic47174f2015-09-04 15:47:23 -070015userfaultfd: userfaultfd.c
16 $(CC) $(CFLAGS) -O2 -o $@ $^ -lpthread
Dave Youngf0f57b22012-03-28 14:42:56 -070017
Michael Ellerman5e29a912015-03-11 15:05:59 +110018TEST_PROGS := run_vmtests
Michael Ellerman32dcfba2015-03-11 15:06:00 +110019TEST_FILES := $(BINARIES)
Michael Ellerman5e29a912015-03-11 15:05:59 +110020
21include ../lib.mk
Dave Youngf0f57b22012-03-28 14:42:56 -070022
23clean:
Joern Engelfc256f02013-07-03 15:09:18 -070024 $(RM) $(BINARIES)