-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.86 KB
/
Makefile
File metadata and controls
46 lines (35 loc) · 1.86 KB
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
# Makefile for Latent Structural SVM
CC=gcc -Wall
#CFLAGS= -g
#CFLAGS= -O3 -fomit-frame-pointer -ffast-math
CFLAGS = -O3 -g
LD=gcc
LDFLAGS= -O3 -g
#LDFLAGS= -O3
#LDFLAGS = -O3 -pg
LIBS= -lm
MOSEK_H= /afs/cs.stanford.edu/u/pawan/Project/mosek/6/tools/platform/linux64x86/h/
#MSKLINKFLAGS= -lirc -lguide -limf -lsvml -lunwind -lmosek64 -lpthread -lc -ldl -lm
MSKLINKFLAGS= -lmosek64 -lpthread -lm
MSKLIBPATH= /afs/cs.stanford.edu/u/pawan/Project/mosek/6/tools/platform/linux64x86/bin/
SFMTPATH= ./SFMT-src-1.3.3
all: svm_bbox_learn svm_bbox_classify
clean:
rm -f *.o
rm -f svm_bbox_learn svm_bbox_classify
svm_bbox_learn: svm_struct_latent_spl.o svm_common.o mosek_qp_optimize.o svm_struct_latent_api.o SFMT.o
$(LD) $(LDFLAGS) svm_struct_latent_spl.o svm_common.o mosek_qp_optimize.o SFMT.o svm_struct_latent_api.o -o svm_bbox_learn $(LIBS) -L $(MSKLIBPATH) $(MSKLINKFLAGS)
svm_bbox_classify: svm_struct_latent_classify.o svm_common.o svm_struct_latent_api.o SFMT.o
$(LD) $(LDFLAGS) svm_struct_latent_classify.o svm_common.o SFMT.o svm_struct_latent_api.o -o svm_bbox_classify $(LIBS)
svm_struct_latent_spl.o: svm_struct_latent_spl.c
$(CC) -c $(CFLAGS) svm_struct_latent_spl.c -o svm_struct_latent_spl.o
svm_common.o: ./svm_light/svm_common.c ./svm_light/svm_common.h ./svm_light/kernel.h
$(CC) -c $(CFLAGS) ./svm_light/svm_common.c -o svm_common.o
mosek_qp_optimize.o: mosek_qp_optimize.c
$(CC) -c $(CFLAGS) mosek_qp_optimize.c -o mosek_qp_optimize.o -I $(MOSEK_H)
svm_struct_latent_api.o: svm_struct_latent_api.c svm_struct_latent_api_types.h svm_struct_latent_api.h
$(CC) -c $(CFLAGS) svm_struct_latent_api.c -o svm_struct_latent_api.o
svm_struct_latent_classify.o: svm_struct_latent_classify.c
$(CC) -c $(CFLAGS) svm_struct_latent_classify.c -o svm_struct_latent_classify.o
SFMT.o:
$(CC) -c -DMEXP=607 $(SFMTPATH)/SFMT.c -o SFMT.o