Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / samples / hidraw / Makefile
diff --git a/kernel/samples/hidraw/Makefile b/kernel/samples/hidraw/Makefile
new file mode 100644 (file)
index 0000000..a9ab961
--- /dev/null
@@ -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