Daniel@0: # Daniel@0: # makefile for svm_light Daniel@0: # Daniel@0: # Thorsten Joachims, 2002 Daniel@0: # Daniel@0: # Thanks to Ralf Herbrich for the initial version. Daniel@0: # Daniel@0: Daniel@0: CC=gcc # used C-compiler Daniel@0: CFLAGS= -O3 # release C-Compiler flags Daniel@0: #CFLAGS= -g -Wall -pedantic # debugging C-Compiler flags Daniel@0: LD=gcc # used linker Daniel@0: LFLAGS=-O3 # linker flags Daniel@0: LIBS=-L. -lm # used libraries Daniel@0: Daniel@0: Daniel@0: all: svm_learn_hideo svm_classify Daniel@0: Daniel@0: tidy: Daniel@0: rm -f *.o Daniel@0: rm -f donlp2/*.o Daniel@0: rm -f donlp2_c/*.o Daniel@0: rm -f pr_loqo/*.o Daniel@0: Daniel@0: clean: tidy Daniel@0: rm -f svm_learn Daniel@0: rm -f svm_classify Daniel@0: Daniel@0: help: info Daniel@0: Daniel@0: info: Daniel@0: @echo Daniel@0: @echo "make for SVM-light Thorsten Joachims, 1998" Daniel@0: @echo Daniel@0: @echo "Thanks to Ralf Herbrich for the initial version." Daniel@0: @echo Daniel@0: @echo "USAGE: make [svm_learn | svm_learn_loqo | svm_learn_hideo | " Daniel@0: @echo " svm_classify | all | clean | tidy]" Daniel@0: @echo Daniel@0: @echo " svm_learn builds the learning module (prefers HIDEO)" Daniel@0: @echo " svm_learn_hideo builds the learning module using HIDEO" Daniel@0: @echo " svm_learn_loqo builds the learning module using PR_LOQO" Daniel@0: @echo " svm_classify builds the classfication module" Daniel@0: @echo " all (default) builds svm_learn + svm_classify" Daniel@0: @echo " clean removes .o and target files" Daniel@0: @echo " tidy removes .o files" Daniel@0: @echo Daniel@0: Daniel@0: Daniel@0: svm_learn_hideo_noexe: svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o Daniel@0: Daniel@0: svm_learn_hideo: svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o Daniel@0: $(LD) $(LFLAGS) svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o -o svm_learn $(LIBS) Daniel@0: Daniel@0: svm_learn_loqo_noexe: svm_learn_main.o svm_learn.o svm_common.o svm_loqo.o loqo Daniel@0: Daniel@0: svm_learn_loqo: svm_learn_main.o svm_learn.o svm_common.o svm_loqo.o loqo Daniel@0: $(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: Daniel@0: Daniel@0: svm_hideo.o: svm_hideo.c Daniel@0: $(CC) -c $(CFLAGS) svm_hideo.c -o svm_hideo.o Daniel@0: Daniel@0: svm_loqo.o: svm_loqo.c Daniel@0: $(CC) -c $(CFLAGS) svm_loqo.c -o svm_loqo.o Daniel@0: Daniel@0: svm_common.o: svm_common.c svm_common.h kernel.h Daniel@0: $(CC) -c $(CFLAGS) svm_common.c -o svm_common.o Daniel@0: Daniel@0: svm_learn.o: svm_learn.c svm_common.h Daniel@0: $(CC) -c $(CFLAGS) svm_learn.c -o svm_learn.o Daniel@0: Daniel@0: svm_learn_main.o: svm_learn_main.c svm_learn.h svm_common.h Daniel@0: $(CC) -c $(CFLAGS) svm_learn_main.c -o svm_learn_main.o Daniel@0: Daniel@0: Daniel@0: svm_classify: svm_classify.o svm_common.o Daniel@0: $(LD) $(LFLAGS) svm_classify.o svm_common.o -o svm_classify $(LIBS) Daniel@0: Daniel@0: svm_classify.o: svm_classify.c svm_common.h kernel.h Daniel@0: $(CC) -c $(CFLAGS) svm_classify.c -o svm_classify.o Daniel@0: Daniel@0: Daniel@0: loqo: pr_loqo/pr_loqo.o Daniel@0: Daniel@0: pr_loqo/pr_loqo.o: pr_loqo/pr_loqo.c Daniel@0: $(CC) -c $(CFLAGS) pr_loqo/pr_loqo.c -o pr_loqo/pr_loqo.o Daniel@0: