git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
2095645
Branches
Tags
master
SVMCrossVal.git
libsvm-mat-2.88-1
Makefile
SVMCrossVal toolbox init
Christoph Budziszewski
commited
2095645
at 2008-12-17 13:45:29
Makefile
Blame
History
Raw
# This Makefile is used under Linux MATLABDIR ?= /usr/local/matlab CXX ?= g++ #CXX = g++-4.1 CFLAGS = -Wall -O3 -fPIC -I$(MATLABDIR)/extern/include MEX = $(MATLABDIR)/bin/mex MEX_OPTION = CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)" # comment the following line if you use MATLAB on 32-bit computer MEX_OPTION += -largeArrayDims MEX_EXT = $(shell $(MATLABDIR)/bin/mexext) OCTAVEDIR ?= /usr/include/octave OCTAVE_MEX = env CC=$(CXX) mkoctfile OCTAVE_MEX_OPTION = --mex OCTAVE_MEX_EXT = mex OCTAVE_CFLAGS = -Wall -O3 -fPIC -I$(OCTAVEDIR) all: matlab matlab: binary octave: @make MEX="$(OCTAVE_MEX)" MEX_OPTION="$(OCTAVE_MEX_OPTION)" \ MEX_EXT="$(OCTAVE_MEX_EXT)" CFLAGS="$(OCTAVE_CFLAGS)" \ binary binary: svmpredict.$(MEX_EXT) svmtrain.$(MEX_EXT) read_sparse.$(MEX_EXT) svmpredict.$(MEX_EXT): svmpredict.c svm.h svm.o svm_model_matlab.o $(MEX) $(MEX_OPTION) svmpredict.c svm.o svm_model_matlab.o svmtrain.$(MEX_EXT): svmtrain.c svm.h svm.o svm_model_matlab.o $(MEX) $(MEX_OPTION) svmtrain.c svm.o svm_model_matlab.o read_sparse.$(MEX_EXT): read_sparse.c $(MEX) $(MEX_OPTION) read_sparse.c svm_model_matlab.o: svm_model_matlab.c svm.h $(CXX) $(CFLAGS) -c svm_model_matlab.c svm.o: svm.cpp svm.h $(CXX) $(CFLAGS) -c svm.cpp clean: rm -f *~ *.o *.mex* *.obj