diff options
author | Qrius <[email protected]> | 2024-09-26 07:53:32 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 07:53:32 +0200 |
commit | d9506755c6029a2a1f32bd5969f64d42dff980e6 (patch) | |
tree | 1c79d6527a7a0dc182d25a7a3b7c45b6c552ed6f /Makefile | |
download | hydroponics_broker-d9506755c6029a2a1f32bd5969f64d42dff980e6.tar.gz hydroponics_broker-d9506755c6029a2a1f32bd5969f64d42dff980e6.zip |
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9c067d9 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +BOARD_MANAGER_URLS := https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json +BOARD := esp32:esp32:esp32da +.PHONY: upload configure clean + +build/hydroponics_broker.ino.bin: hydroponics_broker.ino + arduino --board ${BOARD} \ + --verify \ + --verbose \ + --pref build.path=build \ + --preserve-temp-files \ + $< + +upload: hydroponics_broker.ino + arduino --board ${BOARD} \ + --upload \ + --verbose \ + --verbose-upload \ + --preserve-temp-files \ + --port /dev/ttyUSB0 \ + --pref upload.speed=9600 \ + --pref upload.erase_cmd=-e \ + $< + +configure: + ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS=${BOARD_MANAGER_URLS} \ + arduino --install-boards esp32:esp32 + arduino --install-library OneWire + arduino --install-library PubSubClient + arduino --install-library DallasTemperature + +clean: + rm -rf build |