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 # ifeq ($(CURSES),yes)
40 # LDFLAGS=$(LDFLAGS) -lncurses
41 # CXXFLAGS = $(CXXFLAGS) -DWITH_CURSES
44 all: folding list_to_pool TAGS
47 etags --members -l c++ *.cc *.h
49 folding: misc.o interval.o gaussian.o fusion_sort.o global.o tools.o \
50 progress_bar.o chrono.o \
51 jpeg_misc.o rgb_image.o rgb_image_subpixel.o param_parser.o \
54 image.o rich_image.o \
56 labelled_image_pool.o labelled_image_pool_file.o labelled_image_pool_subset.o \
57 pose.o pose_cell.o pose_cell_set.o pose_cell_scored_set.o \
58 parsing.o parsing_pool.o \
59 pose_cell_hierarchy.o pose_cell_hierarchy_reader.o \
60 pi_referential.o pi_feature.o pi_feature_family.o \
63 classifier.o classifier_reader.o \
65 loss_machine.o decision_tree.o boosted_classifier.o \
69 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
71 list_to_pool: misc.o interval.o fusion_sort.o shared.o global.o progress_bar.o \
73 jpeg_misc.o rgb_image.o param_parser.o \
74 image.o rich_image.o \
76 labelled_image.o labelled_image_pool.o \
78 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
80 Makefile.depend: *.h *.cc Makefile
81 $(CC) -M *.cc > Makefile.depend
84 cd .. && tar zcvf folding-gpl.tgz folding/*.{cc,h,sh,txt} folding/Makefile folding/gpl-3.0.txt
87 \rm -f folding list_to_pool *.o Makefile.depend TAGS
89 -include Makefile.depend