summaryrefslogtreecommitdiff
path: root/ndb/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/examples/Makefile')
-rw-r--r--ndb/examples/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/ndb/examples/Makefile b/ndb/examples/Makefile
new file mode 100644
index 00000000000..e1fb71a1817
--- /dev/null
+++ b/ndb/examples/Makefile
@@ -0,0 +1,26 @@
+-include .defs.mk
+
+#ifneq ($(C++),)
+#OPTS = CC=$(CC) CXX=$(C++)
+#endif
+
+# XXX ndbapi_example4 commented out until fixed
+BIN_DIRS := ndbapi_example1 ndbapi_example2 ndbapi_example3 $(ndbapi_example4) \
+ ndbapi_example5 select_all
+
+bins: $(patsubst %, _bins_%, $(BIN_DIRS))
+
+$(patsubst %, _bins_%, $(BIN_DIRS)) :
+ $(MAKE) -C $(patsubst _bins_%, %, $@) $(OPTS)
+
+libs:
+
+clean:
+ for f in ${BIN_DIRS}; do \
+ $(MAKE) -C $$f $@;\
+ done
+
+cleanall: clean
+tidy: clean
+distclean: clean
+