This avoids repeating the logic in every Makefile. We mimic the top-level Makefile and use $(CROSS_COMPILE)gcc. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
17 lines
302 B
Makefile
17 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)
|