diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-10-11 01:10:42 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-10-11 01:15:38 +0200 |
| commit | ef58362bfc5df3173de96a6a56d0d3982d5f1ddc (patch) | |
| tree | 908e1d9106255ebd3bcec3b6d0ffddd9a76927ef /Makefile | |
| parent | 898291f9d5e447a85d36bef885896498f01acb20 (diff) | |
New Configuration System
We now read a `config.ini` from the SDL preference path for
options and parse CLI.
We now also disable `getopt` parsing on platforms that do not
support it, falling back to the `config.ini` system in those cases.
Additionally, carts are read from that directory as well -
allowing us to simplify the build system (as we no longer build
any `.p8.png` files in the `carts` directory).
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -36,10 +36,8 @@ WAMR_CFLAGS := $(CFLAGS) -Wno-unused-parameter \ WAMR_SRC := $(shell find lib/wamr -name '*.c') WAMR_OBJ := $(patsubst %.c,$(OUT)/%.o,$(WAMR_SRC)) -CARTS := $(patsubst %,%.png,$(wildcard carts/*.p8)) - .PHONY: all -all: $(TARGET)/picow $(CARTS) ; +all: $(TARGET)/picow ; $(TARGET)/picow: $(PICOW_OBJ) $(TARGET)/libwamr.a @ echo "CC\t$@" @@ -80,10 +78,10 @@ $(SYSTEM)/%.html $(SYSTEM)/%.js $(SYSTEM)/%.wasm: carts/%.p8 @ mkdir -p $(dir $@) @ $(PICO8) $< -export "-w $(SYSTEM)/$*.html" >/dev/null -$(SYSTEM)/%.p8.png: carts/%.p8.png - @ echo "CP\t$@" +$(SYSTEM)/%.p8.png: carts/%.p8 + @ echo "PICO8\t$@" @ mkdir -p $(dir $@) - @ cp $< $@ + @ $(PICO8) $< -export $@ >/dev/null $(SYSTEM)/stub/%.wasm: stub/%.wat @ echo "WAT2WASM\t$@" @@ -95,10 +93,6 @@ $(TOOLS)/%: tools/%.c @ mkdir -p $(dir $@) @ $(HOSTCC) $(CFLAGS) $< -o $@ -carts/%.p8.png: carts/%.p8 - @ echo "PICO8\t$@" - @ $(PICO8) $< -export $@ >/dev/null - .PHONY: build/compile_commands.json build/compile_commands.json: $(TOOLS)/ccj @ rm -rf $(OUT) @@ -111,6 +105,6 @@ build/compile_commands.json: $(TOOLS)/ccj .PHONY: clean clean: - rm -rf $(CARTS) build/ + rm -rf build/ -include $(PICOW_OBJ:.o=.d) $(WAMR_OBJ:.o=.d) |
