mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
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:
Vendored
+1
-1
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user