M7350/kernel/tools/testing/selftests/vm/Makefile

17 lines
326 B
Makefile
Raw Normal View History

2024-09-09 08:52:07 +00:00
# Makefile for vm selftests
CC = $(CROSS_COMPILE)gcc
2024-09-09 08:57:42 +00:00
CFLAGS = -Wall
BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
BINARIES += transhuge-stress
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
all: $(BINARIES)
2024-09-09 08:52:07 +00:00
%: %.c
$(CC) $(CFLAGS) -o $@ $^
run_tests: all
2024-09-09 08:57:42 +00:00
@/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
2024-09-09 08:52:07 +00:00
clean:
2024-09-09 08:57:42 +00:00
$(RM) $(BINARIES)