######################################################################## # # # folded-ctf is an implementation of the folded hierarchy of # # classifiers for object detection, developed by Francois Fleuret # # and Donald Geman. # # # # Copyright (c) 2008 Idiap Research Institute, http://www.idiap.ch/ # # Written by Francois Fleuret # # # # This file is part of folded-ctf. # # # # folded-ctf is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License version 3 as # # published by the Free Software Foundation. # # # # folded-ctf is distributed in the hope that it will be useful, but # # WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # # General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with folded-ctf. If not, see . # # # ######################################################################## ifeq ($(STATIC),yes) LDFLAGS=-static -lm -ljpeg -lpng -lz else LDFLAGS=-lm -ljpeg -lpng endif ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG else OPTIMIZE_FLAG = -ggdb3 -O3 endif ifeq ($(PROFILE),yes) PROFILE_FLAG = -pg endif CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) all: folding list_to_pool TAGS TAGS: *.cc *.h etags --members -l c++ *.cc *.h folding: misc.o interval.o gaussian.o fusion_sort.o global.o tools.o \ progress_bar.o \ jpeg_misc.o rgb_image.o rgb_image_subpixel.o param_parser.o \ shared.o \ storable.o \ image.o rich_image.o \ labelled_image.o \ labelled_image_pool.o labelled_image_pool_file.o labelled_image_pool_subset.o \ pose.o pose_cell.o pose_cell_set.o pose_cell_scored_set.o \ parsing.o parsing_pool.o \ pose_cell_hierarchy.o pose_cell_hierarchy_reader.o \ pi_referential.o pi_feature.o pi_feature_family.o \ sample_set.o \ shared_responses.o \ classifier.o classifier_reader.o \ detector.o \ loss_machine.o decision_tree.o boosted_classifier.o \ error_rates.o \ materials.o \ folding.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) list_to_pool: misc.o interval.o fusion_sort.o shared.o global.o progress_bar.o \ storable.o \ jpeg_misc.o rgb_image.o param_parser.o \ image.o rich_image.o \ pose.o pose_cell.o \ labelled_image.o labelled_image_pool.o \ list_to_pool.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) Makefile.depend: *.h *.cc Makefile $(CC) -M *.cc > Makefile.depend archive: cd .. && tar zcvf folding-gpl.tgz folding/{*.{cc,h,sh,txt},Makefile} clean: \rm -f folding list_to_pool *.o Makefile.depend TAGS -include Makefile.depend