Ticket #46052: patch-src_Makefile.diff
File patch-src_Makefile.diff, 1.1 KB (added by Schamschula (Marius Schamschula), 10 years ago) |
---|
-
src/Makefile
old new 41 41 42 42 43 43 44 CC = gcc45 CXX = g++44 #CC = gcc 45 #CXX = g++ 46 46 CFLAGS = -fopenmp -Wall -Wextra -Wconversion -O2 -fPIC 47 47 OCTMEX = mkoctfile$(OCTAVE_VERSION) --mex 48 48 RM = rm 49 49 50 50 MEX_OPTION += -lgomp CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)" 51 MATMEX = $(MATLABDIR)/bin/mex $(MEX_OPTION) 51 MKOCTFILE = mkoctfile$(OCTAVE_VERSION) 52 OCTMEX = $(MKOCTFILE) --mex 53 54 FLIBS = ${shell $(MKOCTFILE) -p FLIBS} 55 INCFLAGS = ${shell $(MKOCTFILE) -p INCFLAGS} 56 INC_CSTDLIB = -include cstdlib 52 57 53 58 PROGS = covm_mex.mex sumskipnan_mex.mex # 54 59 … … 88 93 # Octave, MATLAB on Linux 89 94 ######################################################### 90 95 %.oct: %.cc 91 mkoctfile$(OCTAVE_VERSION) "$<"96 $(MKOCTFILE) $< 92 97 93 98 %.mex: %.cpp 94 $(OCTMEX) "$<" -lgomp -llapack -lblas## Octave99 INCFLAGS="$(INCFLAGS) $(INC_CSTDLIB)" $(OCTMEX) $< $(FLIBS) -lgomp ## Octave 95 100 %.$(MEX_EXT): %.cpp 96 101 $(MATMEX) "$<" -lgomp -llapack -lblas ## Matlab 97 102