forked from aesuli/mp-boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
120 lines (94 loc) · 2.48 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
CC = g++
CFLAGS = -Wall -O4 -pedantic
PROGRAMS = boostTrain boostTest showEvaluation mergeEvaluation
all: libMPB.a $(PROGRAMS)
clean:
rm -rf *.o *~ *.a core
# Library
CCOBJS = boostingmodel.o adaboostmhmodel.o mpboostmodel.o document.o documentset.o \
prediction.o distribution.o adaboostmhhypothesis.o \
predictionset.o example.o exampleset.o mpboosthypothesis.o \
invertedlist.o evaluation.o
libMPB.a: $(CCOBJS)
ar rvu $@ $(CCOBJS)
ranlib $@
boostingmodel.o: boostingmodel.cpp \
boostingmodel.h
$(CC) $(CFLAGS) -c boostingmodel.cpp
mpboostmodel.o: mpboostmodel.cpp \
mpboostmodel.h \
defs.h \
exampleset.h \
example.h \
distribution.h \
document.h \
predictionset.h \
prediction.h \
mpboosthypothesis.h \
invertedlist.h \
evaluation.h
$(CC) $(CFLAGS) -c mpboostmodel.cpp
adaboostmhmodel.o: adaboostmhmodel.cpp \
adaboostmhmodel.h \
defs.h \
exampleset.h \
example.h \
distribution.h \
document.h \
predictionset.h \
prediction.h \
adaboostmhhypothesis.h \
invertedlist.h \
evaluation.h
$(CC) $(CFLAGS) -c adaboostmhmodel.cpp
distribution.o: distribution.cpp \
distribution.h
$(CC) $(CFLAGS) -c distribution.cpp
document.o: document.cpp \
document.h
$(CC) $(CFLAGS) -c document.cpp
documentset.o: documentset.cpp \
documentset.h \
document.h
$(CC) $(CFLAGS) -c documentset.cpp
evaluation.o: evaluation.cpp \
evaluation.h \
defs.h
$(CC) $(CFLAGS) -c evaluation.cpp
prediction.o: prediction.cpp \
prediction.h
$(CC) $(CFLAGS) -c prediction.cpp
predictionset.o: predictionset.cpp \
predictionset.h \
prediction.h
$(CC) $(CFLAGS) -c predictionset.cpp
example.o: example.cpp \
example.h \
document.h
$(CC) $(CFLAGS) -c example.cpp
exampleset.o: exampleset.cpp \
exampleset.h \
example.h \
document.h
$(CC) $(CFLAGS) -c exampleset.cpp
adaboostmhhypothesis.o: adaboostmhhypothesis.cpp \
adaboostmhhypothesis.h
$(CC) $(CFLAGS) -c adaboostmhhypothesis.cpp
mpboosthypothesis.o: mpboosthypothesis.cpp \
mpboosthypothesis.h
$(CC) $(CFLAGS) -c mpboosthypothesis.cpp
invertedlist.o: invertedlist.cpp \
invertedlist.h \
exampleset.h \
example.h \
document.h
$(CC) $(CFLAGS) -c invertedlist.cpp
# PROGRAMS
boostTrain: boostTrain.cpp libMPB.a aarg.h
$(CC) $(CFLAGS) -o $@ $@.cpp -lm -lMPB -L.
boostTest: boostTest.cpp libMPB.a aarg.h
$(CC) $(CFLAGS) -o $@ $@.cpp -lm -lMPB -L.
mergeEvaluation: mergeEvaluation.cpp libMPB.a aarg.h
$(CC) $(CFLAGS) -o $@ $@.cpp -lm -lMPB -L.
showEvaluation: showEvaluation.cpp libMPB.a aarg.h
$(CC) $(CFLAGS) -o $@ $@.cpp -lm -lMPB -L.