comparison toolboxes/SVM-light/src/Makefile @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 #
2 # makefile for svm_light
3 #
4 # Thorsten Joachims, 2002
5 #
6 # Thanks to Ralf Herbrich for the initial version.
7 #
8
9 CC=gcc # used C-compiler
10 CFLAGS= -O3 # release C-Compiler flags
11 #CFLAGS= -g -Wall -pedantic # debugging C-Compiler flags
12 LD=gcc # used linker
13 LFLAGS=-O3 # linker flags
14 LIBS=-L. -lm # used libraries
15
16
17 all: svm_learn_hideo svm_classify
18
19 tidy:
20 rm -f *.o
21 rm -f donlp2/*.o
22 rm -f donlp2_c/*.o
23 rm -f pr_loqo/*.o
24
25 clean: tidy
26 rm -f svm_learn
27 rm -f svm_classify
28
29 help: info
30
31 info:
32 @echo
33 @echo "make for SVM-light Thorsten Joachims, 1998"
34 @echo
35 @echo "Thanks to Ralf Herbrich for the initial version."
36 @echo
37 @echo "USAGE: make [svm_learn | svm_learn_loqo | svm_learn_hideo | "
38 @echo " svm_classify | all | clean | tidy]"
39 @echo
40 @echo " svm_learn builds the learning module (prefers HIDEO)"
41 @echo " svm_learn_hideo builds the learning module using HIDEO"
42 @echo " svm_learn_loqo builds the learning module using PR_LOQO"
43 @echo " svm_classify builds the classfication module"
44 @echo " all (default) builds svm_learn + svm_classify"
45 @echo " clean removes .o and target files"
46 @echo " tidy removes .o files"
47 @echo
48
49
50 svm_learn_hideo_noexe: svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o
51
52 svm_learn_hideo: svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o
53 $(LD) $(LFLAGS) svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o -o svm_learn $(LIBS)
54
55 svm_learn_loqo_noexe: svm_learn_main.o svm_learn.o svm_common.o svm_loqo.o loqo
56
57 svm_learn_loqo: svm_learn_main.o svm_learn.o svm_common.o svm_loqo.o loqo
58 $(LD) $(LFLAGS) svm_learn_main.o svm_learn.o svm_common.o svm_loqo.o pr_loqo/pr_loqo.o -o svm_learn $(LIBS)
59
60
61 svm_hideo.o: svm_hideo.c
62 $(CC) -c $(CFLAGS) svm_hideo.c -o svm_hideo.o
63
64 svm_loqo.o: svm_loqo.c
65 $(CC) -c $(CFLAGS) svm_loqo.c -o svm_loqo.o
66
67 svm_common.o: svm_common.c svm_common.h kernel.h
68 $(CC) -c $(CFLAGS) svm_common.c -o svm_common.o
69
70 svm_learn.o: svm_learn.c svm_common.h
71 $(CC) -c $(CFLAGS) svm_learn.c -o svm_learn.o
72
73 svm_learn_main.o: svm_learn_main.c svm_learn.h svm_common.h
74 $(CC) -c $(CFLAGS) svm_learn_main.c -o svm_learn_main.o
75
76
77 svm_classify: svm_classify.o svm_common.o
78 $(LD) $(LFLAGS) svm_classify.o svm_common.o -o svm_classify $(LIBS)
79
80 svm_classify.o: svm_classify.c svm_common.h kernel.h
81 $(CC) -c $(CFLAGS) svm_classify.c -o svm_classify.o
82
83
84 loqo: pr_loqo/pr_loqo.o
85
86 pr_loqo/pr_loqo.o: pr_loqo/pr_loqo.c
87 $(CC) -c $(CFLAGS) pr_loqo/pr_loqo.c -o pr_loqo/pr_loqo.o
88