xref: /linux/tools/testing/selftests/riscv/hwprobe/Makefile (revision ef7d6abb2cf57a18d34b332f0865c4d03bd810a3)
1287dcc2bSEvan Green# SPDX-License-Identifier: GPL-2.0
2287dcc2bSEvan Green# Copyright (C) 2021 ARM Limited
3287dcc2bSEvan Green# Originally tools/testing/arm64/abi/Makefile
4287dcc2bSEvan Green
5a29e2a48SAndrew JonesCFLAGS += -I$(top_srcdir)/tools/include
6a29e2a48SAndrew Jones
7*ef7d6abbSAndrew JonesTEST_GEN_PROGS := hwprobe cbo which-cpus
8287dcc2bSEvan Green
9287dcc2bSEvan Greeninclude ../../lib.mk
10287dcc2bSEvan Green
11287dcc2bSEvan Green$(OUTPUT)/hwprobe: hwprobe.c sys_hwprobe.S
12fc9fdf2cSAndrew Jones	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
13a29e2a48SAndrew Jones
14a29e2a48SAndrew Jones$(OUTPUT)/cbo: cbo.c sys_hwprobe.S
15a29e2a48SAndrew Jones	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
16*ef7d6abbSAndrew Jones
17*ef7d6abbSAndrew Jones$(OUTPUT)/which-cpus: which-cpus.c sys_hwprobe.S
18*ef7d6abbSAndrew Jones	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
19