summaryrefslogtreecommitdiffstats
path: root/kernel/samples/hidraw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/samples/hidraw/Makefile')
-rw-r--r--kernel/samples/hidraw/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/samples/hidraw/Makefile b/kernel/samples/hidraw/Makefile
new file mode 100644
index 000000000..a9ab96188
--- /dev/null
+++ b/kernel/samples/hidraw/Makefile
@@ -0,0 +1,12 @@
+# kbuild trick to avoid linker error. Can be omitted if a module is built.
+obj- := dummy.o
+
+# List of programs to build
+hostprogs-y := hid-example
+
+# Tell kbuild to always build the programs
+always := $(hostprogs-y)
+
+HOSTCFLAGS_hid-example.o += -I$(objtree)/usr/include
+
+all: hid-example