1 # Copyright (C) 2006-2008 Joris Mooij [joris dot mooij at tuebingen dot mpg dot de]
2 # Radboud University Nijmegen, The Netherlands /
3 # Max Planck Institute for Biological Cybernetics, Germany
5 # This file is part of libDAI.
7 # libDAI is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # libDAI is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with libDAI; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 bipgraph$(OE) : $(SRC)/bipgraph.cpp $(HEADERS)
23 $(CC) $(CCFLAGS) -c $(SRC)/bipgraph.cpp
25 daialg$(OE) : $(SRC)/daialg.cpp $(HEADERS)
26 $(CC) $(CCFLAGS) -c $(SRC)/daialg.cpp
28 exactinf$(OE) : $(SRC)/exactinf.cpp $(INC)/exactinf.h $(HEADERS)
29 $(CC) $(CCFLAGS) -c $(SRC)/exactinf.cpp
31 bp$(OE) : $(SRC)/bp.cpp $(INC)/bp.h $(HEADERS)
32 $(CC) $(CCFLAGS) -c $(SRC)/bp.cpp
34 lc$(OE) : $(SRC)/lc.cpp $(INC)/lc.h $(HEADERS)
35 $(CC) $(CCFLAGS) -c $(SRC)/lc.cpp
37 mf$(OE) : $(SRC)/mf.cpp $(INC)/mf.h $(HEADERS)
38 $(CC) $(CCFLAGS) -c $(SRC)/mf.cpp
40 factorgraph$(OE) : $(SRC)/factorgraph.cpp $(INC)/factorgraph.h $(HEADERS)
41 $(CC) $(CCFLAGS) -c $(SRC)/factorgraph.cpp
43 util$(OE) : $(SRC)/util.cpp $(INC)/util.h $(HEADERS)
44 $(CC) $(CCFLAGS) -c $(SRC)/util.cpp
46 regiongraph$(OE) : $(SRC)/regiongraph.cpp $(INC)/regiongraph.h $(HEADERS)
47 $(CC) $(CCFLAGS) -c $(SRC)/regiongraph.cpp
49 hak$(OE) : $(SRC)/hak.cpp $(INC)/hak.h $(HEADERS) $(INC)/regiongraph.h
50 $(CC) $(CCFLAGS) -c $(SRC)/hak.cpp
52 clustergraph$(OE) : $(SRC)/clustergraph.cpp $(INC)/clustergraph.h $(HEADERS)
53 $(CC) $(CCFLAGS) -c $(SRC)/clustergraph.cpp
55 jtree$(OE) : $(SRC)/jtree.cpp $(INC)/jtree.h $(HEADERS) $(INC)/weightedgraph.h $(INC)/clustergraph.h $(INC)/regiongraph.h
56 $(CC) $(CCFLAGS) -c $(SRC)/jtree.cpp
58 treeep$(OE) : $(SRC)/treeep.cpp $(INC)/treeep.h $(HEADERS) $(INC)/weightedgraph.h $(INC)/clustergraph.h $(INC)/regiongraph.h $(INC)/jtree.h
59 $(CC) $(CCFLAGS) -c $(SRC)/treeep.cpp
61 weightedgraph$(OE) : $(SRC)/weightedgraph.cpp $(INC)/weightedgraph.h $(HEADERS)
62 $(CC) $(CCFLAGS) -c $(SRC)/weightedgraph.cpp
64 mr$(OE) : $(SRC)/mr.cpp $(INC)/mr.h $(HEADERS)
65 $(CC) $(CCFLAGS) -c $(SRC)/mr.cpp
67 properties$(OE) : $(SRC)/properties.cpp $(HEADERS)
68 $(CC) $(CCFLAGS) -c $(SRC)/properties.cpp
70 exceptions$(OE) : $(SRC)/exceptions.cpp $(HEADERS)
71 $(CC) $(CCFLAGS) -c $(SRC)/exceptions.cpp
73 alldai$(OE) : $(SRC)/alldai.cpp $(HEADERS)
74 $(CC) $(CCFLAGS) -c $(SRC)/alldai.cpp
80 example$(EE) : example.cpp $(HEADERS) $(LIB)/libdai$(LE)
81 $(CC) $(CCFLAGS) $(CCO) example$(EE) example.cpp $(LIBS)
87 tests/testdai$(EE) : tests/testdai.cpp $(HEADERS) $(LIB)/libdai$(LE)
88 $(CC) $(CCFLAGS) $(CCO) tests/testdai$(EE) tests/testdai.cpp $(LIBS) $(BOOSTLIBS)
94 matlab/dai.$(ME) : matlab/dai.cpp $(HEADERS) matlab/matlab$(OE) $(LIB)/libdai$(LE)
95 $(MEX) $(MEXFLAGS) -o matlab/dai matlab/dai.cpp matlab/matlab$(OE) $(LIB)/libdai$(LE)
97 matlab/dai_readfg.$(ME) : matlab/dai_readfg.cpp $(HEADERS) factorgraph$(OE) matlab/matlab$(OE) exceptions$(OE)
98 $(MEX) $(MEXFLAGS) -o matlab/dai_readfg matlab/dai_readfg.cpp factorgraph$(OE) matlab/matlab$(OE) exceptions$(OE)
100 matlab/dai_writefg.$(ME) : matlab/dai_writefg.cpp $(HEADERS) factorgraph$(OE) matlab/matlab$(OE) exceptions$(OE)
101 $(MEX) $(MEXFLAGS) -o matlab/dai_writefg matlab/dai_writefg.cpp factorgraph$(OE) matlab/matlab$(OE) exceptions$(OE)
103 matlab/dai_potstrength.$(ME) : matlab/dai_potstrength.cpp $(HEADERS) matlab/matlab$(OE) exceptions$(OE)
104 $(MEX) $(MEXFLAGS) -o matlab/dai_potstrength matlab/dai_potstrength.cpp matlab/matlab$(OE) exceptions$(OE)
106 matlab/matlab$(OE) : matlab/matlab.cpp matlab/matlab.h $(HEADERS)
107 $(MEX) $(MEXFLAGS) -outdir matlab -c matlab/matlab.cpp
113 utils/createfg$(EE) : utils/createfg.cpp $(HEADERS) $(LIB)/libdai$(LE)
114 $(CC) $(CCFLAGS) $(CCO) utils/createfg$(EE) utils/createfg.cpp $(LIBS) $(BOOSTLIBS)
116 utils/fg2dot$(EE) : utils/fg2dot.cpp $(HEADERS) $(LIB)/libdai$(LE)
117 $(CC) $(CCFLAGS) $(CCO) utils/fg2dot$(EE) utils/fg2dot.cpp $(LIBS)
119 utils/fginfo$(EE) : utils/fginfo.cpp $(HEADERS) $(LIB)/libdai$(LE)
120 $(CC) $(CCFLAGS) $(CCO) utils/fginfo$(EE) utils/fginfo.cpp $(LIBS)