diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-28 17:06:58 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-28 17:06:58 +0200 |
| commit | 4c075349a678119cc4bc08e5a969a3c773866cae (patch) | |
| tree | 4933e48eea514a849bfccde4d10fcd9056a87077 /Makefile | |
| parent | 4a6403c6b682cf3b03f80a5ba3a6286e30555014 (diff) | |
Remove STB Static Library
We now build STB image library directly in the `cart` module, so
we no longer need to build it as a static library.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -16,14 +16,10 @@ TOOLS := build/tools SYSTEM := build/system PICOW_CFLAGS := $(CFLAGS) $(SDL3_CFLAGS) -Ilib/ -PICOW_LDFLAGS := $(LDFLAGS) $(SDL3_LIBS) -L$(TARGET) -lstb -lwamr +PICOW_LDFLAGS := $(LDFLAGS) $(SDL3_LIBS) -L$(TARGET) -lwamr PICOW_SRC := $(wildcard src/*.c) $(SYSTEM)/sysroot.c PICOW_OBJ := $(patsubst %.c,$(OUT)/%.o,$(PICOW_SRC:build/%=%)) -STB_CFLAGS := $(CFLAGS) $(SDL3_CFLAGS) -Wno-unused-function -STB_SRC := $(wildcard lib/stb/*.c) -STB_OBJ := $(patsubst %.c,$(OUT)/%.o,$(STB_SRC)) - WAMR_CFLAGS := $(CFLAGS) -Wno-unused-parameter \ -DBH_FREE=wasm_runtime_free \ -DBH_MALLOC=wasm_runtime_malloc \ @@ -44,7 +40,7 @@ CARTS := $(patsubst %,%.png,$(wildcard carts/*.p8)) .PHONY: all all: $(TARGET)/picow $(CARTS) ; -$(TARGET)/picow: $(PICOW_OBJ) $(TARGET)/libstb.a $(TARGET)/libwamr.a +$(TARGET)/picow: $(PICOW_OBJ) $(TARGET)/libwamr.a @ echo "CC\t$@" @ $(CC) $(PICOW_OBJ) -o $@ $(PICOW_LDFLAGS) @@ -57,15 +53,6 @@ $(OUT)/system/%.o: $(SYSTEM)/%.c @ mkdir -p $(dir $@) @ $(CC) $(PICOW_CFLAGS) -Isrc/ -c $< -o $@ -$(TARGET)/libstb.a: $(STB_OBJ) - @ echo "AR\t$@" - @ $(AR) rcs $@ $^ - -$(OUT)/lib/stb/%.o: lib/stb/%.c - @ echo "CC\t$@" - @ mkdir -p $(dir $@) - @ $(CC) $(STB_CFLAGS) -c $< -o $@ - $(TARGET)/libwamr.a: $(WAMR_OBJ) @ echo "AR\t$@" @ $(AR) rcs $@ $^ @@ -119,4 +106,4 @@ build/compile_commands.json: $(TOOLS)/ccj clean: rm -rf $(CARTS) build/ --include $(PICOW_OBJ:.o=.d) $(STB_OBJ:.o=.d) $(WAMR_OBJ:.o=.d) +-include $(PICOW_OBJ:.o=.d) $(WAMR_OBJ:.o=.d) |
