From a47793930fac7bd053f46ed070e46d68470e843a Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Mon, 7 Oct 2019 23:13:40 -0400 Subject: [PATCH] compile static and dynamic libraries --- src/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 229701b..6d78548 100644 --- a/src/Makefile +++ b/src/Makefile @@ -78,6 +78,12 @@ endif lib: AR :=ar lib: ARFLAGS :=cr lib: AROUTPUT := +lib: LINKOPT :=easylzma/easylzma-0.0.8/lib/libeasylzma_s.a + +dll: CPPOPT +=$(DLLFLAG) +dll: AR :=gcc +dll: ARFLAGS :=-shared -Wl,-soname,$(BINARY).1 +dll: AROUTPUT :=-o oct mex: CPPOPT+= $(DLLFLAG) oct: OUTPUT_DIR=.. @@ -108,7 +114,7 @@ doc: makedocdir OBJS := $(addsuffix $(OBJSUFFIX), $(FILES)) -all lib mex oct: $(OUTPUT_DIR)/$(BINARY) +all dll lib mex oct: $(OUTPUT_DIR)/$(BINARY) makedirs: @if test ! -d $(OUTPUT_DIR); then $(MKDIR) $(OUTPUT_DIR); fi