Make build_box2d.sh more flexible

Removed the `odin root` call.
Seperated the clean rule in wasm.Makefile to enable parallel builds.
This commit is contained in:
jason
2025-05-01 22:42:32 -04:00
parent 777c33a9a1
commit 87f5b96fcc
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ OBJS = $(SRCS:.c=.o)
SYSROOT = $(shell odin root)/vendor/libc
CFLAGS = -Ibox2d-$(VERSION)/include --target=wasm32 -D__EMSCRIPTEN__ -DNDEBUG -O3 --sysroot=$(SYSROOT)
all: lib/box2d_wasm.o lib/box2d_wasm_simd.o clean
all: lib/box2d_wasm.o lib/box2d_wasm_simd.o
%.o: %.c
$(CC) -c $(CFLAGS) -DBOX2D_DISABLE_SIMD $< -o $@