summaryrefslogtreecommitdiff
path: root/mqtt-test/main/component.mk
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-06-03 12:39:57 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-06-03 12:39:57 +0200
commit934bbf7d019e561209802f6a679b3672ce58ef1a (patch)
treea558a8344aabfdf98d4a8bf0a1776bcc500bad39 /mqtt-test/main/component.mk
parent1ab751428b65cab4d31f323eb3c31789321a0db6 (diff)
downloadmodern-esp-sandbox-934bbf7d019e561209802f6a679b3672ce58ef1a.tar.gz
modern-esp-sandbox-934bbf7d019e561209802f6a679b3672ce58ef1a.tar.bz2
modern-esp-sandbox-934bbf7d019e561209802f6a679b3672ce58ef1a.tar.xz
modern-esp-sandbox-934bbf7d019e561209802f6a679b3672ce58ef1a.zip
wip. Making room for other apps.
Diffstat (limited to 'mqtt-test/main/component.mk')
-rw-r--r--mqtt-test/main/component.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/mqtt-test/main/component.mk b/mqtt-test/main/component.mk
new file mode 100644
index 0000000..e102e7e
--- /dev/null
+++ b/mqtt-test/main/component.mk
@@ -0,0 +1,14 @@
+define FIX =
+ifdef $(1)
+CFLAGS += '-D$(1)="$$($(1))"'
+CPPFLAGS += '-D$(1)="$$($(1))"'
+#$$(info USING $(1)=$$($(1)))
+endif
+endef
+
+$(eval $(call FIX,WIFI_SSID))
+$(eval $(call FIX,WIFI_PASSWORD))
+$(eval $(call FIX,MQTT_HOST))
+$(eval $(call FIX,MQTT_PORT))
+
+fix: