samples: connector: from Documentation to samples directory
[linux-2.6-microblaze.git] / samples / connector / Makefile
diff --git a/samples/connector/Makefile b/samples/connector/Makefile
new file mode 100644 (file)
index 0000000..04b9622
--- /dev/null
@@ -0,0 +1,16 @@
+obj-$(CONFIG_SAMPLE_CONNECTOR) += cn_test.o
+
+# List of programs to build
+ifdef CONFIG_SAMPLE_CONNECTOR
+hostprogs-y := ucon
+endif
+
+# Tell kbuild to always build the programs
+always := $(hostprogs-y)
+
+HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include
+
+all: modules
+
+modules clean:
+       $(MAKE) -C ../.. SUBDIRS=$(PWD) $@