aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2026-06-21 14:21:32 +0200
committerNicholas Rodrigues Lordello <[email protected]>2026-06-21 14:21:32 +0200
commita290eaab66eda29da69c9d5f28b8753fb4d7a65e (patch)
tree428c280fb4ce7847ceaa9c7f230ae84865d47579 /Makefile
parent25d6188009ce36e0a59edb52b192c0738b4123cc (diff)
Just Build It
I had tried to split the PICO-w stuff into a separate library and have individual platform code, but I will instead embrace the SDL and just build on top of it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cdc3f93..f5fad6e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,18 +2,18 @@ SRC = src/picow.c src/png.c src/sysroot.c
OBJ = $(patsubst %.c,%.o,$(SRC))
.PHONY: all
-all: platform/sdl/picow ;
+all: picow ;
include makefiles/system.mk
include makefiles/tools.mk
include makefiles/wamr.mk
-platform/sdl/picow: platform/sdl/main.c $(OBJ) $(WAMR_OBJ)
- $(CC) -o $@ $^ -Iinclude/ $$(pkg-config SDL3 --cflags --libs)
+picow: $(OBJ) $(WAMR_OBJ)
+ $(CC) -o $@ $^ $$(pkg-config SDL3 --libs)
.PHONY: clean
clean: clean-system clean-tools clean-wamr
rm -f platform/sdl/picow src/picow.o src/png.o src/sysroot.c
src/%.o: src/%.c
- $(CC) -c -o $@ $< -Iinclude/ -Ilib/
+ $(CC) -c -o $@ $< -Ilib/ $$(pkg-config SDL3 --cflags)