DF-1048 / build.sh
#!/bin/sh # DF-1048 build: compiles the arithmetic harness (primary deliverable) and # the live-trigger PoC (only runnable where an MCS7840 adapter is attached). set -e cd "$(dirname "$0")" CC="${CC:-cc}" echo "[+] building harness.c (arithmetic proof, -O0 and -O2) ..." $CC -O0 -Wall -o harness_O0 harness.c $CC -O2 -Wall -o harness_O2 harness.c echo "[+] building trigger.c (live tcsetattr(B0) trigger; needs /dev/cuaU0) ..." $CC -O2 -Wall -o trigger trigger.c echo "[+] build OK: harness_O0 harness_O2 trigger" |