aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-09-20 03:52:56 +0200
committerjoe <rbo@gmx.us>2025-09-20 03:52:56 +0200
commit7758750d4c99e1a9be8abe7cd0b269ecddb12dab (patch)
tree2676ee5974a2567099e3f98a0b37ffa87192c9a4 /Makefile
downloadhalfcab-7758750d4c99e1a9be8abe7cd0b269ecddb12dab.tar.gz
halfcab-7758750d4c99e1a9be8abe7cd0b269ecddb12dab.tar.bz2
halfcab-7758750d4c99e1a9be8abe7cd0b269ecddb12dab.tar.xz
halfcab-7758750d4c99e1a9be8abe7cd0b269ecddb12dab.tar.zst
halfcab-7758750d4c99e1a9be8abe7cd0b269ecddb12dab.zip
good
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8f6cc11
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+# =====================
+# ==== ===============
+# =====================
+# === === ==== ==
+# ==== == == = =
+# ==== == = == =
+# ==== == = == ====
+# ==== == = == = =
+# = = === ==== ==
+# == ================
+# =====================
+#
+# halfcab: Makefile
+# Fri, 19 Sep 2025 23:48:21 +0200
+# joe <rbo@gmx.us>
+#
+# GNU Makefile
+
+default: esp
+
+ESP_DIR = esp/halfcab/
+OBJ_DIR = obj/
+SRC_DIR = src/
+TRGT_DIR = ./
+
+ESP_FQBN = esp8266:esp8266:d1_mini
+ESP_DEV = /dev/ttyUSB0
+
+TRGT_NAME = hc
+
+ESP_NAME = halfcab.ino
+
+ARDUINO = arduino-cli
+CC = cc
+CFLAGS = -std=c89
+CFLAGS += -Wall
+CFLAGS += -Wextra
+CFLAGS += -Werror
+CFLAGS += -pedantic
+CFLAGS += -march=haswell
+CFLAGS += -O2
+CFLAGS += -pipe
+
+esp:
+ ${ARDUINO} compile -v -j8 --warnings all --fqbn ${ESP_FQBN} ${ESP_DIR}
+ ${ARDUINO} upload -p ${ESP_DEV} --fqbn ${ESP_FQBN} ${ESP_DIR}
+
+attach:
+ ${ARDUINO} board attach -p ${ESP_DEV} -b ${ESP_FQBN} ${ESP_DIR}${ESP_NAME}
+
+mon:
+ ${ARDUINO} monitor -p ${ESP_DEV} -b ${ESP_FQBN} --config 115200 --config 'rts=off' --config 'dtr=off' --quiet
+
+
+.PHONY: esp attach mon