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:
+7
-1
@@ -129,7 +129,13 @@ CLI_FLAGS := -D_XOPEN_SOURCE=600 -Isrc/include -I$(LIBUV_DIR)/include \
|
||||
all: vm cli
|
||||
|
||||
# Builds just the VM libraries.
|
||||
vm: lib/lib$(WREN).a lib/lib$(WREN).$(SHARED_EXT)
|
||||
vm: shared static
|
||||
|
||||
# Builds the shared VM library.
|
||||
shared: lib/lib$(WREN).$(SHARED_EXT)
|
||||
|
||||
# Builds the static VM library.
|
||||
static: lib/lib$(WREN).a
|
||||
|
||||
# Builds just the CLI interpreter.
|
||||
cli: bin/$(WREN)
|
||||
|
||||
Reference in New Issue
Block a user