aboutsummaryrefslogtreecommitdiff
path: root/control/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'control/Makefile')
-rw-r--r--control/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/control/Makefile b/control/Makefile
new file mode 100644
index 0000000..a86d630
--- /dev/null
+++ b/control/Makefile
@@ -0,0 +1,22 @@
+APP_DIR ?= .
+SDK_DIR ?= ../sdk
+VERSION ?= vdev
+
+CFLAGS += -D'VERSION="${VERSION}"'
+
+Q ?= @
+
+-include $(SDK_DIR)/Makefile.mk
+
+.PHONY: all
+all: debug
+
+.PHONY: sdk
+sdk: ../sdk/Makefile.mk
+
+.PHONY: update
+update: sdk
+ @echo "Updating Git submodule 'sdk'..."; git submodule update --remote --merge sdk
+
+../sdk/Makefile.mk:
+ $(Q) git submodule update --init ../sdk