-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (38 loc) · 1.59 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
CC=mpicxx
# C-Compiler flags
CFLAGS=-O3 -Wall
# linker
LD=mpicxx
LFLAGS=-O3 -Wall
all: svm_train svm_predict
clean:
rm -f *.o
rm -f svm_train svm_predict
io.o: io.cc io.h
$(CC) -c $(CFLAGS) io.cc -o io.o
util.o: util.cc util.h
$(CC) -c $(CFLAGS) util.cc -o util.o
timer.o: timer.cc timer.h
$(CC) -c $(CFLAGS) timer.cc -o timer.o
document.o: document.cc document.h
$(CC) -c $(CFLAGS) document.cc -o document.o
kernel.o: kernel.cc kernel.h
$(CC) -c $(CFLAGS) kernel.cc -o kernel.o
model.o: model.cc model.h
$(CC) -c $(CFLAGS) model.cc -o model.o
matrix.o: matrix.cc matrix.h
$(CC) -c $(CFLAGS) matrix.cc -o matrix.o
matrix_manipulation.o: matrix_manipulation.cc matrix_manipulation.h
$(CC) -c $(CFLAGS) matrix_manipulation.cc -o matrix_manipulation.o
parallel_interface.o: parallel_interface.cc parallel_interface.h
$(CC) -c $(CFLAGS) parallel_interface.cc -o parallel_interface.o
pd_ipm.o: pd_ipm.cc pd_ipm.h
$(CC) -c $(CFLAGS) pd_ipm.cc -o pd_ipm.o
svm_train.o: svm_train.cc
$(CC) -c $(CFLAGS) svm_train.cc -o svm_train.o
svm_predict.o: svm_predict.cc svm_predict.h
$(CC) -c $(CFLAGS) svm_predict.cc -o svm_predict.o
svm_train: timer.o io.o parallel_interface.o util.o model.o document.o matrix.o kernel.o matrix_manipulation.o pd_ipm.o svm_train.o
$(LD) $(LFLAGS) timer.o io.o parallel_interface.o util.o document.o model.o matrix.o kernel.o matrix_manipulation.o pd_ipm.o svm_train.o -o svm_train
svm_predict: svm_predict.o model.o document.o parallel_interface.o
$(LD) $(LFLAGS) timer.o io.o util.o document.o model.o kernel.o parallel_interface.o svm_predict.o -o svm_predict