Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay bomb.sh/docs/tty
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031CC = clangTARGET = clayterm.wasmSRC = src/module.c
CFLAGS = --target=wasm32 -nostdlib -O2 \ -DCLAY_IMPLEMENTATION -DCLAY_WASM \ -Isrc -I.
LDFLAGS = -Wl,--no-entry \ -Wl,--import-memory \ -Wl,--stack-first \ -Wl,--export-all \ -Wl,--undefined=Clay__MeasureText \ -Wl,--undefined=Clay__QueryScrollOffset
all: $(TARGET) wasm.ts @echo "Built $(TARGET) ($$(wc -c < $(TARGET)) bytes)"
DEPS = $(wildcard src/*.c src/*.h)
$(TARGET): $(DEPS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC)
wasm.ts: $(TARGET) deno run --allow-read --allow-write tasks/bundle-wasm.ts
clean: rm -f $(TARGET) wasm.ts
.PHONY: all clean