move wokwi files into simulation

This commit is contained in:
2026-07-26 12:40:08 +00:00
parent 35bd3ab945
commit 74a964985d
21 changed files with 0 additions and 0 deletions
@@ -0,0 +1,19 @@
SOURCES = src/main.c
TARGET = dist/chip.wasm
.PHONY: all clean
all: $(TARGET) dist/chip.json
clean:
rm -rf dist
dist:
mkdir -p dist
$(TARGET): dist $(SOURCES) wokwi-api.h
podman run --rm -u root -v "$(CURDIR)":/src:Z -w /src docker.io/wokwi/builder-clang-wasm:latest \
clang --target=wasm32-unknown-wasi --sysroot /opt/wasi-libc -nostartfiles -Wl,--import-memory -Wl,--export-table -Wl,--no-entry -Werror -o $(TARGET) $(SOURCES)
dist/chip.json: dist chip.json
cp chip.json dist