feat: add separate make targets for shared and static library builds

Introduce `shared` and `static` make targets to allow building only the shared library (`libwren.so`/`.dylib`) or only the static library (`libwren.a`), respectively. The existing `vm` target now depends on both new targets, preserving backward compatibility while enabling selective builds. This addresses issue #322 by providing finer-grained build control.
This commit is contained in:
Bob Nystrom
2016-02-19 15:22:10 +00:00
parent fe3997f825
commit 38f48fbce1
2 changed files with 16 additions and 2 deletions
+9 -1
View File
@@ -13,10 +13,18 @@ release:
debug:
@ $(MAKE) -f util/wren.mk MODE=debug
# A release build of just the VM.
# A release build of just the VM, both shared and static libraries.
vm:
@ $(MAKE) -f util/wren.mk vm
# A release build of the shared library for the VM.
shared:
@ $(MAKE) -f util/wren.mk shared
# A release build of the shared library for the VM.
static:
@ $(MAKE) -f util/wren.mk static
# Build all configurations.
all: debug release
@ $(MAKE) -f util/wren.mk LANG=cpp