You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
# Thirdparty directory
|
|
TP = thirdparty
|
|
LIBSVM = $(TP)/libsvm/
|
|
# Location of boost library headers
|
|
BOOST = -I$(TP)
|
|
# Path to binary boost serialization library must be defined here
|
|
BOOSTLIB = "/usr/lib64/"
|
|
|
|
all : stupidfilter
|
|
|
|
stupidfilter : stupidfilter.o svm.o SVMUtil.o parametersearch.o
|
|
cd bin && \
|
|
g++ -L$(BOOSTLIB) -o"stupidfilter" stupidfilter.o svm.o SVMUtil.o parametersearch.o /usr/lib64/libboost_serialization.a -lfl
|
|
|
|
stupidfilter.o : stupidfilter.cpp SVMUtil.cpp SVMUtil.h $(LIBSVM)svm.cpp $(LIBSVM)svm.h
|
|
g++ -c $(BOOST) -o"bin/stupidfilter.o" stupidfilter.cpp
|
|
|
|
SVMUtil.o : SVMUtil.cpp SVMUtil.h parametersearch.cpp parametersearch.h parameterresult.h $(LIBSVM)svm.cpp $(LIBSVM)svm.h
|
|
g++ -c $(BOOST) -o"bin/SVMUtil.o" SVMUtil.cpp
|
|
|
|
parametersearch.o : parametersearch.cpp parametersearch.h parameterresult.h $(LIBSVM)svm.cpp $(LIBSVM)svm.h
|
|
g++ -c $(BOOST) -o"bin/parametersearch.o" parametersearch.cpp
|
|
|
|
svm.o : $(LIBSVM)svm.cpp $(LIBSVM)svm.h
|
|
g++ -c -o"bin/svm.o" $(LIBSVM)svm.cpp
|
|
|
|
|
|
clean:
|
|
rm -f bin/*.o
|
|
|
|
install:
|
|
cp bin/stupidfilter /usr/bin/.
|