core: added new root Makefile
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 7 Dec 2016 11:35:10 +0000 (12:35 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 7 Dec 2016 11:35:10 +0000 (12:35 +0100)
- forward make commands to src/ subfolder

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..04a1215
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+#
+# Root Makefile for Kamailio project
+# - forward all commands to the Makefile in the src/ subfolder
+#
+
+# path to the source code folder
+KSR_DIR ?= src/
+
+# default target for makefile
+.DEFAULT_GOAL := default
+
+# forward all named targets
+%:
+       $(MAKE) -C $(KSR_DIR) "$@"
+
+# forward the default target
+default:
+       $(MAKE) -C $(KSR_DIR)