-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 1.66 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
# Makefile for Latent Structural SVM
CC=gcc
#CFLAGS= -g -Wall
CFLAGS= -O3 -fomit-frame-pointer -ffast-math
#CFLAGS = -O3 -pg
LD=gcc
#LDFLAGS= -g
LDFLAGS= -O3
#LDFLAGS = -O3 -pg
LIBS= -lm
MOSEK_H= /home/ajay/utils/mosek-5/5/tools/platform/linux64x86/h/
MSKLINKFLAGS= -lirc -lguide -limf -lsvml -lunwind -lmosek64 -lpthread -lc -ldl -lm
MSKLIBPATH= /home/ajay/utils/mosek-5/5/tools/platform/linux64x86/bin/
all: svm_latent_learn svm_latent_classify
clean:
rm -f *.o
rm -f svm_latent_learn svm_latent_classify
svm_latent_learn: svm_struct_latent_cccp.o svm_common.o mosek_qp_optimize.o svm_struct_latent_api.o
$(LD) $(LDFLAGS) svm_struct_latent_cccp.o svm_common.o mosek_qp_optimize.o svm_struct_latent_api.o -o svm_latent_learn -L $(MSKLIBPATH) $(MSKLINKFLAGS)
svm_latent_classify: svm_struct_latent_classify.o svm_common.o svm_struct_latent_api.o
$(LD) $(LDFLAGS) svm_struct_latent_classify.o svm_common.o svm_struct_latent_api.o -o svm_latent_classify $(LIBS)
svm_struct_latent_cccp.o: svm_struct_latent_cccp.c
$(CC) -c $(CFLAGS) svm_struct_latent_cccp.c -o svm_struct_latent_cccp.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
$(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