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