diff --git a/src/Makefile b/src/Makefile index 1636cdc..9b7ef9c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -146,7 +146,7 @@ dll: AROUTPUT :=-o oct mex: CPPOPT+= $(DLLFLAG) oct: OUTPUT_DIR=.. -oct: AR= CXXFLAGS='-O3' LDFLAGS='$(MEXLINKOPT) $(LIBZLIB)' mkoctfile -v zmat.cpp +oct: AR= CXXFLAGS='-O3' LDFLAGS='$(MEXLINKOPT) $(LIBZLIB)' mkoctfile zmat.cpp oct: BINARY=zmat.mex oct: ARFLAGS := oct: LINKOPT+=--mex $(INCLUDEDIRS) @@ -154,7 +154,7 @@ oct: LINKOPT+=--mex $(INCLUDEDIRS) mex: CXX=$(MEX) mex: OUTPUTFLAG:=-output mex: AR=$(MEX) zmat.cpp $(INCLUDEDIRS) -mex: LINKOPT+= -cxx LINKLIBS="-L\"\$$LIBPATH\" -lmx -lmex $(MEXLINKOPT) $(LIBZLIB)" CXXLIBS="\$$CXXLIBS $(MEXLINKOPT) $(LIBZLIB)" -outdir $(ZMATDIR) +mex: LINKOPT+= -cxx LINKLIBS="-L\"\$$MATLABROOT/extern/lib/\$$ARCH -lmx -lmex $(MEXLINKOPT) $(LIBZLIB)" CXXLIBS="\$$CXXLIBS $(MEXLINKOPT) $(LIBZLIB)" -outdir $(ZMATDIR) mex: ARFLAGS := mex: OUTPUT_DIR=..