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