-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (23 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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/.