mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
This avoids repeating the logic in every Makefile. We mimic the top-level Makefile and use $(CROSS_COMPILE)gcc. Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
18 lines
302 B
Makefile
18 lines
302 B
Makefile
# Makefile for vm selftests
|
|
|
|
CFLAGS = -Wall
|
|
BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
|
|
BINARIES += transhuge-stress
|
|
|
|
all: $(BINARIES)
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^ -lrt
|
|
|
|
TEST_PROGS := run_vmtests
|
|
TEST_FILES := $(BINARIES)
|
|
|
|
include ../lib.mk
|
|
|
|
clean:
|
|
$(RM) $(BINARIES)
|