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, (C) IDIAP #
16 # Contact <francois.fleuret@idiap.ch> for comments & bug reports #
17 #########################################################################
22 LDFLAGS=-static -lm -ljpeg -lpng -lz
24 LDFLAGS=-lm -ljpeg -lpng
28 OPTIMIZE_FLAG = -ggdb3 -DDEBUG
30 OPTIMIZE_FLAG = -ggdb3 -O3
37 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG)
39 all: folding list_to_pool TAGS
42 etags --members -l c++ *.cc *.h
44 folding: misc.o interval.o gaussian.o fusion_sort.o global.o tools.o \
45 progress_bar.o chrono.o \
46 jpeg_misc.o rgb_image.o rgb_image_subpixel.o param_parser.o \
49 image.o rich_image.o \
51 labelled_image_pool.o labelled_image_pool_file.o labelled_image_pool_subset.o \
52 pose.o pose_cell.o pose_cell_set.o pose_cell_scored_set.o \
53 parsing.o parsing_pool.o \
54 pose_cell_hierarchy.o pose_cell_hierarchy_reader.o \
55 pi_referential.o pi_feature.o pi_feature_family.o \
58 classifier.o classifier_reader.o \
60 loss_machine.o decision_tree.o boosted_classifier.o \
64 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
66 list_to_pool: misc.o interval.o fusion_sort.o shared.o global.o progress_bar.o \
68 jpeg_misc.o rgb_image.o param_parser.o \
69 image.o rich_image.o \
71 labelled_image.o labelled_image_pool.o \
73 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
75 Makefile.depend: *.h *.cc Makefile
76 $(CC) -M *.cc > Makefile.depend
79 cd .. && tar zcvf folding-gpl.tgz folding/*.{cc,h,sh,txt} folding/Makefile folding/gpl-3.0.txt
82 \rm -f folding list_to_pool *.o Makefile.depend TAGS
84 -include Makefile.depend