Makefile 486 字节
Newer Older
1 2
# Makefile for vm selftests

3
CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
4 5 6 7 8
BINARIES = compaction_test
BINARIES += hugepage-mmap
BINARIES += hugepage-shm
BINARIES += map_hugetlb
BINARIES += thuge-gen
9
BINARIES += transhuge-stress
A
Andrea Arcangeli 已提交
10
BINARIES += userfaultfd
11

J
Joern Engel 已提交
12
all: $(BINARIES)
13
%: %.c
14
	$(CC) $(CFLAGS) -o $@ $^ -lrt
A
Andrea Arcangeli 已提交
15 16
userfaultfd: userfaultfd.c
	$(CC) $(CFLAGS) -O2 -o $@ $^ -lpthread
17

18
TEST_PROGS := run_vmtests
M
Michael Ellerman 已提交
19
TEST_FILES := $(BINARIES)
20 21

include ../lib.mk
22 23

clean:
J
Joern Engel 已提交
24
	$(RM) $(BINARIES)