Makefile 279 字节
Newer Older
1 2 3
# Makefile for vm selftests

CC = $(CROSS_COMPILE)gcc
4
CFLAGS = -Wall
5

6
all: hugepage-mmap hugepage-shm  map_hugetlb thuge-gen
7 8 9 10
%: %.c
	$(CC) $(CFLAGS) -o $@ $^

run_tests: all
11
	@/bin/sh ./run_vmtests || echo "vmtests: [FAIL]"
12 13 14

clean:
	$(RM) hugepage-mmap hugepage-shm  map_hugetlb