annotate toolboxes/SVM-light/src/Makefile @ 0:cc4b1211e677 tip

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