xref: /linux/tools/testing/selftests/riscv/hwprobe/Makefile (revision a29e2a48afe3549ee34d39cf42343ba3fced09c6)
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
5*a29e2a48SAndrew JonesCFLAGS += -I$(top_srcdir)/tools/include
6*a29e2a48SAndrew Jones
7*a29e2a48SAndrew JonesTEST_GEN_PROGS := hwprobe cbo
8287dcc2bSEvan Green
9287dcc2bSEvan Greeninclude ../../lib.mk
10287dcc2bSEvan Green
11287dcc2bSEvan Green$(OUTPUT)/hwprobe: hwprobe.c sys_hwprobe.S
12fc9fdf2cSAndrew Jones	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
13*a29e2a48SAndrew Jones
14*a29e2a48SAndrew Jones$(OUTPUT)/cbo: cbo.c sys_hwprobe.S
15*a29e2a48SAndrew Jones	$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
16