summaryrefslogtreecommitdiff
path: root/samples/kdbus/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samples/kdbus/Makefile')
-rw-r--r--samples/kdbus/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile
new file mode 100644
index 000000000..137f84272
--- /dev/null
+++ b/samples/kdbus/Makefile
@@ -0,0 +1,9 @@
+# kbuild trick to avoid linker error. Can be omitted if a module is built.
+obj- := dummy.o
+
+hostprogs-$(CONFIG_SAMPLE_KDBUS) += kdbus-workers
+
+always := $(hostprogs-y)
+
+HOSTCFLAGS_kdbus-workers.o += -I$(objtree)/usr/include
+HOSTLOADLIBES_kdbus-workers := -lrt