xref: /linux/tools/testing/selftests/riscv/hwprobe/Makefile (revision b8e85e6f3a09fc56b0ff574887798962ef8a8f80)
1# SPDX-License-Identifier: GPL-2.0
2# Copyright (C) 2021 ARM Limited
3# Originally tools/testing/arm64/abi/Makefile
4
5CFLAGS += -I$(top_srcdir)/tools/include
6
7TEST_GEN_PROGS := hwprobe cbo which-cpus
8
9include ../../lib.mk
10
11$(OUTPUT)/hwprobe: hwprobe.c sys_hwprobe.S
12	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
13
14$(OUTPUT)/cbo: cbo.c sys_hwprobe.S
15	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
16
17$(OUTPUT)/which-cpus: which-cpus.c sys_hwprobe.S
18	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
19