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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user