Improved documentation...
[libdai.git] / Makefile.shared
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
4 #
5 # This file is part of libDAI.
6 #
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.
11 #
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.
16 #
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
20
21
22 bipgraph$(OE) : $(SRC)/bipgraph.cpp $(HEADERS)
23 $(CC) $(CCFLAGS) -c $(SRC)/bipgraph.cpp
24
25 daialg$(OE) : $(SRC)/daialg.cpp $(HEADERS)
26 $(CC) $(CCFLAGS) -c $(SRC)/daialg.cpp
27
28 exactinf$(OE) : $(SRC)/exactinf.cpp $(INC)/exactinf.h $(HEADERS)
29 $(CC) $(CCFLAGS) -c $(SRC)/exactinf.cpp
30
31 bp$(OE) : $(SRC)/bp.cpp $(INC)/bp.h $(HEADERS)
32 $(CC) $(CCFLAGS) -c $(SRC)/bp.cpp
33
34 lc$(OE) : $(SRC)/lc.cpp $(INC)/lc.h $(HEADERS)
35 $(CC) $(CCFLAGS) -c $(SRC)/lc.cpp
36
37 mf$(OE) : $(SRC)/mf.cpp $(INC)/mf.h $(HEADERS)
38 $(CC) $(CCFLAGS) -c $(SRC)/mf.cpp
39
40 factorgraph$(OE) : $(SRC)/factorgraph.cpp $(INC)/factorgraph.h $(HEADERS)
41 $(CC) $(CCFLAGS) -c $(SRC)/factorgraph.cpp
42
43 util$(OE) : $(SRC)/util.cpp $(INC)/util.h $(HEADERS)
44 $(CC) $(CCFLAGS) -c $(SRC)/util.cpp
45
46 regiongraph$(OE) : $(SRC)/regiongraph.cpp $(INC)/regiongraph.h $(HEADERS)
47 $(CC) $(CCFLAGS) -c $(SRC)/regiongraph.cpp
48
49 hak$(OE) : $(SRC)/hak.cpp $(INC)/hak.h $(HEADERS) $(INC)/regiongraph.h
50 $(CC) $(CCFLAGS) -c $(SRC)/hak.cpp
51
52 clustergraph$(OE) : $(SRC)/clustergraph.cpp $(INC)/clustergraph.h $(HEADERS)
53 $(CC) $(CCFLAGS) -c $(SRC)/clustergraph.cpp
54
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
57
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
60
61 weightedgraph$(OE) : $(SRC)/weightedgraph.cpp $(INC)/weightedgraph.h $(HEADERS)
62 $(CC) $(CCFLAGS) -c $(SRC)/weightedgraph.cpp
63
64 mr$(OE) : $(SRC)/mr.cpp $(INC)/mr.h $(HEADERS)
65 $(CC) $(CCFLAGS) -c $(SRC)/mr.cpp
66
67 properties$(OE) : $(SRC)/properties.cpp $(HEADERS)
68 $(CC) $(CCFLAGS) -c $(SRC)/properties.cpp
69
70 exceptions$(OE) : $(SRC)/exceptions.cpp $(HEADERS)
71 $(CC) $(CCFLAGS) -c $(SRC)/exceptions.cpp
72
73 alldai$(OE) : $(SRC)/alldai.cpp $(HEADERS)
74 $(CC) $(CCFLAGS) -c $(SRC)/alldai.cpp
75
76
77 # EXAMPLES
78 ###########
79
80 examples/example$(EE) : examples/example.cpp $(HEADERS) $(LIB)/libdai$(LE)
81 $(CC) $(CCFLAGS) $(CCO)examples/example$(EE) examples/example.cpp $(LIBS)
82
83 examples/example_bipgraph$(EE) : examples/example_bipgraph.cpp $(HEADERS) $(LIB)/libdai$(LE)
84 $(CC) $(CCFLAGS) $(CCO)examples/example_bipgraph$(EE) examples/example_bipgraph.cpp $(LIBS)
85
86 examples/example_varset$(EE) : examples/example_varset.cpp $(HEADERS) $(LIB)/libdai$(LE)
87 $(CC) $(CCFLAGS) $(CCO)examples/example_varset$(EE) examples/example_varset.cpp $(LIBS)
88
89
90 # TESTS
91 ########
92
93 tests/testdai$(EE) : tests/testdai.cpp $(HEADERS) $(LIB)/libdai$(LE)
94 $(CC) $(CCFLAGS) $(CCO)tests/testdai$(EE) tests/testdai.cpp $(LIBS) $(BOOSTLIBS)
95
96
97 # MATLAB INTERFACE
98 ###################
99
100 matlab/dai$(ME) : $(SRC)/matlab/dai.cpp $(HEADERS) matlab$(OE) $(LIB)/libdai$(LE)
101 $(MEX) $(MEXFLAGS) -o matlab/dai $(SRC)/matlab/dai.cpp matlab$(OE) $(LIB)/libdai$(LE)
102
103 matlab/dai_readfg$(ME) : $(SRC)/matlab/dai_readfg.cpp $(HEADERS) factorgraph$(OE) matlab$(OE) exceptions$(OE)
104 $(MEX) $(MEXFLAGS) -o matlab/dai_readfg $(SRC)/matlab/dai_readfg.cpp factorgraph$(OE) matlab$(OE) exceptions$(OE)
105
106 matlab/dai_writefg$(ME) : $(SRC)/matlab/dai_writefg.cpp $(HEADERS) factorgraph$(OE) matlab$(OE) exceptions$(OE)
107 $(MEX) $(MEXFLAGS) -o matlab/dai_writefg $(SRC)/matlab/dai_writefg.cpp factorgraph$(OE) matlab$(OE) exceptions$(OE)
108
109 matlab/dai_potstrength$(ME) : $(SRC)/matlab/dai_potstrength.cpp $(HEADERS) matlab$(OE) exceptions$(OE)
110 $(MEX) $(MEXFLAGS) -o matlab/dai_potstrength $(SRC)/matlab/dai_potstrength.cpp matlab$(OE) exceptions$(OE)
111
112 matlab$(OE) : $(SRC)/matlab/matlab.cpp $(INC)/matlab/matlab.h $(HEADERS)
113 $(MEX) $(MEXFLAGS) -c $(SRC)/matlab/matlab.cpp
114
115
116 # UTILS
117 ########
118
119 utils/createfg$(EE) : utils/createfg.cpp $(HEADERS) $(LIB)/libdai$(LE)
120 $(CC) $(CCFLAGS) $(CCO)utils/createfg$(EE) utils/createfg.cpp $(LIBS) $(BOOSTLIBS)
121
122 utils/fg2dot$(EE) : utils/fg2dot.cpp $(HEADERS) $(LIB)/libdai$(LE)
123 $(CC) $(CCFLAGS) $(CCO)utils/fg2dot$(EE) utils/fg2dot.cpp $(LIBS)
124
125 utils/fginfo$(EE) : utils/fginfo.cpp $(HEADERS) $(LIB)/libdai$(LE)
126 $(CC) $(CCFLAGS) $(CCO)utils/fginfo$(EE) utils/fginfo.cpp $(LIBS)