Skip to content

Commit

Permalink
compile static and dynamic libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Oct 8, 2019
1 parent 3ead31a commit a477939
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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=..
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a477939

Please sign in to comment.