xref: /linux/samples/hidraw/Makefile (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2c54ea491SAlan Ott# kbuild trick to avoid linker error. Can be omitted if a module is built.
3c54ea491SAlan Ottobj- := dummy.o
4c54ea491SAlan Ott
5c54ea491SAlan Ott# List of programs to build
6c54ea491SAlan Otthostprogs-y := hid-example
7c54ea491SAlan Ott
8c54ea491SAlan Ott# Tell kbuild to always build the programs
9c54ea491SAlan Ottalways := $(hostprogs-y)
10d431b2e3SRandy Dunlap
11d431b2e3SRandy DunlapHOSTCFLAGS_hid-example.o += -I$(objtree)/usr/include
1204303f8eSPavel Machek
1304303f8eSPavel Machekall: hid-example
14