2 #########################################################################
3 # This program is free software: you can redistribute it and/or modify #
4 # it under the terms of the version 3 of the GNU General Public License #
5 # as published by the Free Software Foundation. #
7 # This program is distributed in the hope that it will be useful, but #
8 # WITHOUT ANY WARRANTY; without even the implied warranty of #
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
10 # General Public License for more details. #
12 # You should have received a copy of the GNU General Public License #
13 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
15 # Written by Francois Fleuret #
16 # (C) Idiap Research Institute #
18 # Contact <francois.fleuret@idiap.ch> for comments & bug reports #
19 #########################################################################
24 LDFLAGS=-static -lm -ljpeg -lpng -lz
26 LDFLAGS=-lm -ljpeg -lpng
30 OPTIMIZE_FLAG = -ggdb3 -DDEBUG
32 OPTIMIZE_FLAG = -ggdb3 -O3
39 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG)
41 all: folding list_to_pool TAGS
44 etags --members -l c++ *.cc *.h
46 folding: misc.o interval.o gaussian.o fusion_sort.o global.o tools.o \
48 jpeg_misc.o rgb_image.o rgb_image_subpixel.o param_parser.o \
51 image.o rich_image.o \
53 labelled_image_pool.o labelled_image_pool_file.o labelled_image_pool_subset.o \
54 pose.o pose_cell.o pose_cell_set.o pose_cell_scored_set.o \
55 parsing.o parsing_pool.o \
56 pose_cell_hierarchy.o pose_cell_hierarchy_reader.o \
57 pi_referential.o pi_feature.o pi_feature_family.o \
60 classifier.o classifier_reader.o \
62 loss_machine.o decision_tree.o boosted_classifier.o \
66 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
68 list_to_pool: misc.o interval.o fusion_sort.o shared.o global.o progress_bar.o \
70 jpeg_misc.o rgb_image.o param_parser.o \
71 image.o rich_image.o \
73 labelled_image.o labelled_image_pool.o \
75 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
77 Makefile.depend: *.h *.cc Makefile
78 $(CC) -M *.cc > Makefile.depend
81 cd .. && tar zcvf folding-gpl.tgz folding/*.{cc,h,sh,txt} folding/Makefile folding/gpl-3.0.txt
84 \rm -f folding list_to_pool *.o Makefile.depend TAGS
86 -include Makefile.depend