# Makefile for empty SVM-struct API, 03.10.06 #Call 'make' using the following line to make CYGWIN produce stand-alone Windows executables # make 'SFLAGS=-mno-cygwin' #Use the following to compile under unix or cygwin CC = g++ LD = g++ ROSCFLAGS = `rospack export --lang=cpp --attrib=cflags dst` ROSLFLAGS = `rospack export --lang=cpp --attrib=lflags dst` CFLAGS = $(SFLAGS) -O3 -fomit-frame-pointer -ffast-math -Wall $(ROSCFLAGS) -Wno-deprecated LDFLAGS = $(SFLAGS) -O3 -lm -Wall $(ROSLFLAGS) #CFLAGS = $(SFLAGS) -pg -Wall #LDFLAGS = $(SFLAGS) -pg -lm -Wall all: svm_empty_learn .PHONY: clean clean: svm_light_clean svm_struct_clean rm -f *.o *.tcov *.d core gmon.out *.stackdump -rm svm_empty_learn #-----------------------# #---- SVM-light ----# #-----------------------# svm_light_hideo_noexe: cd svm_light; make svm_learn_hideo_noexe svm_light_clean: cd svm_light; make clean #----------------------# #---- STRUCT SVM ----# #----------------------# svm_struct_noexe: cd svm_struct; make svm_struct_noexe svm_struct_clean: cd svm_struct; make clean #-------------------------# #---- SVM empty API ----# #-------------------------# svm_empty_classify: svm_light_hideo_noexe svm_struct_noexe svm_struct_api.o svm_struct/svm_struct_classify.o svm_struct/svm_struct_common.o svm_struct/svm_struct_main.o $(LD) $(LDFLAGS) svm_struct_api.o svm_struct/svm_struct_classify.o svm_light/svm_common.o svm_struct/svm_struct_common.o -o svm_empty_classify $(LIBS) svm_empty_learn: svm_light_hideo_noexe svm_struct_noexe svm_struct_api.o svm_struct_learn_custom.o svm_struct/svm_struct_learn.o svm_struct/svm_struct_common.o svm_struct/svm_struct_main.o $(LD) $(LDFLAGS) svm_struct/svm_struct_learn.o svm_struct_learn_custom.o svm_struct_api.o svm_light/svm_hideo.o svm_light/svm_learn.o svm_light/svm_common.o svm_struct/svm_struct_common.o svm_struct/svm_struct_main.o -o svm_empty_learn $(LIBS) svm_struct_api.o: svm_struct_api.c svm_struct_api.h svm_struct_api_types.h svm_struct/svm_struct_common.h $(CC) -c $(CFLAGS) $(ROSCFLAGS) svm_struct_api.c -o svm_struct_api.o svm_struct_learn_custom.o: svm_struct_learn_custom.c svm_struct_api.h svm_light/svm_common.h svm_struct_api_types.h svm_struct/svm_struct_common.h $(CC) -c $(CFLAGS) svm_struct_learn_custom.c -o svm_struct_learn_custom.o