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