aboutsummaryrefslogtreecommitdiff
path: root/power/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'power/Makefile')
-rw-r--r--power/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/power/Makefile b/power/Makefile
new file mode 100644
index 0000000..a86d630
--- /dev/null
+++ b/power/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