Add separate targets for building just the shared or static library.

make static
make shared

Running "make vm" will build both, as usual.

Fixes #322.
This commit is contained in:
Bob Nystrom
2016-02-19 07:22:10 -08:00
parent ef3aa07d84
commit bec5181bdb
2 changed files with 16 additions and 2 deletions
+7 -1
View File
@@ -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)