xref: /linux/tools/testing/selftests/riscv/hwprobe/Makefile (revision ba199dc909a20fe62270ae4e93f263987bb9d119)
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