xref: /linux/tools/testing/selftests/riscv/mm/Makefile (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1# SPDX-License-Identifier: GPL-2.0
2# Copyright (C) 2021 ARM Limited
3# Originally tools/testing/arm64/abi/Makefile
4
5# Additional include paths needed by kselftest.h and local headers
6CFLAGS += -D_GNU_SOURCE -std=gnu99 -I.
7
8TEST_GEN_FILES := mmap_default mmap_bottomup
9
10TEST_PROGS := run_mmap.sh
11
12include ../../lib.mk
13
14$(OUTPUT)/mm: mmap_default.c mmap_bottomup.c mmap_tests.h
15	$(CC) -o$@ $(CFLAGS) $(LDFLAGS) $^
16