summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/vm/Makefile
blob: 077828c889f1377886b98c93349919d55ccb57a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for vm selftests

CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall
BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
BINARIES += transhuge-stress

all: $(BINARIES)
%: %.c
	$(CC) $(CFLAGS) -o $@ $^ -lrt

run_tests: all
	@/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)

clean:
	$(RM) $(BINARIES)