1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | SUBDIRS = Actions Exceptions Helpers LinearAlgebra Parser UIElements
|
---|
5 |
|
---|
6 |
|
---|
7 | ATOMSOURCE = \
|
---|
8 | atom.cpp \
|
---|
9 | atom_atominfo.cpp \
|
---|
10 | atom_bondedparticle.cpp \
|
---|
11 | atom_bondedparticleinfo.cpp \
|
---|
12 | atom_graphnode.cpp \
|
---|
13 | atom_graphnodeinfo.cpp \
|
---|
14 | atom_particleinfo.cpp \
|
---|
15 | atom_trajectoryparticle.cpp \
|
---|
16 | atom_trajectoryparticleinfo.cpp
|
---|
17 | ATOMHEADER = \
|
---|
18 | atom.hpp \
|
---|
19 | atom_atominfo.hpp \
|
---|
20 | atom_bondedparticle.hpp \
|
---|
21 | atom_bondedparticleinfo.hpp \
|
---|
22 | atom_graphnode.hpp \
|
---|
23 | atom_graphnodeinfo.hpp \
|
---|
24 | atom_particleinfo.hpp \
|
---|
25 | atom_trajectoryparticle.hpp \
|
---|
26 | atom_trajectoryparticleinfo.hpp
|
---|
27 |
|
---|
28 | ANALYSISSOURCE = \
|
---|
29 | analysis_bonds.cpp \
|
---|
30 | analysis_correlation.cpp
|
---|
31 | ANALYSISHEADER = \
|
---|
32 | analysis_bonds.hpp \
|
---|
33 | analysis_correlation.hpp
|
---|
34 |
|
---|
35 | ACTIONSSOURCE = \
|
---|
36 | Actions/Action.cpp \
|
---|
37 | Actions/ActionHistory.cpp \
|
---|
38 | Actions/ActionRegistry.cpp \
|
---|
39 | Actions/ActionSequence.cpp \
|
---|
40 | Actions/ErrorAction.cpp \
|
---|
41 | Actions/MakroAction.cpp \
|
---|
42 | Actions/ManipulateAtomsProcess.cpp \
|
---|
43 | Actions/MethodAction.cpp \
|
---|
44 | Actions/Process.cpp
|
---|
45 |
|
---|
46 | ACTIONSHEADER = \
|
---|
47 | Actions/Action.hpp \
|
---|
48 | Actions/ActionHistory.hpp \
|
---|
49 | Actions/ActionRegistry.hpp \
|
---|
50 | Actions/ActionSequence.hpp \
|
---|
51 | Actions/Calculation.hpp \
|
---|
52 | Actions/Calculation_impl.hpp \
|
---|
53 | Actions/ErrorAction.hpp \
|
---|
54 | Actions/MakroAction.hpp \
|
---|
55 | Actions/ManipulateAtomsProcess.hpp \
|
---|
56 | Actions/MapOfActions.hpp \
|
---|
57 | Actions/MethodAction.hpp \
|
---|
58 | Actions/Process.hpp
|
---|
59 |
|
---|
60 | PATTERNSOURCE = \
|
---|
61 | Patterns/Observer.cpp
|
---|
62 | PATTERNHEADER = \
|
---|
63 | Patterns/Cacheable.hpp \
|
---|
64 | Patterns/Observer.hpp \
|
---|
65 | Patterns/Singleton.hpp
|
---|
66 |
|
---|
67 | SHAPESOURCE = \
|
---|
68 | Shapes/BaseShapes.cpp \
|
---|
69 | Shapes/Shape.cpp \
|
---|
70 | Shapes/ShapeOps.cpp
|
---|
71 | SHAPEHEADER = \
|
---|
72 | Shapes/BaseShapes.hpp \
|
---|
73 | Shapes/Shape.hpp \
|
---|
74 | Shapes/ShapeOps.hpp
|
---|
75 |
|
---|
76 |
|
---|
77 | QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \
|
---|
78 | UIElements/QT4/QTMainWindow.hpp \
|
---|
79 | UIElements/Menu/QT4/QTMenu.hpp \
|
---|
80 | UIElements/Views/QT4/QTWorldView.hpp \
|
---|
81 | UIElements/Views/QT4/GLMoleculeView.hpp \
|
---|
82 | UIElements/Views/QT4/QTMoleculeView.hpp \
|
---|
83 | UIElements/Views/QT4/QTStatusBar.hpp
|
---|
84 |
|
---|
85 | QTUIMOC_TARGETS = QTMainWindow.moc.cpp \
|
---|
86 | QTMenu.moc.cpp\
|
---|
87 | QTDialog.moc.cpp \
|
---|
88 | QTWorldView.moc.cpp \
|
---|
89 | GLMoleculeView.moc.cpp \
|
---|
90 | QTMoleculeView.moc.cpp \
|
---|
91 | QTStatusBar.moc.cpp
|
---|
92 |
|
---|
93 | DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
|
---|
94 | Descriptors/AtomIdDescriptor.cpp \
|
---|
95 | Descriptors/AtomSelectionDescriptor.cpp \
|
---|
96 | Descriptors/AtomTypeDescriptor.cpp \
|
---|
97 | Descriptors/MoleculeDescriptor.cpp \
|
---|
98 | Descriptors/MoleculeFormulaDescriptor.cpp \
|
---|
99 | Descriptors/MoleculeIdDescriptor.cpp \
|
---|
100 | Descriptors/MoleculeNameDescriptor.cpp \
|
---|
101 | Descriptors/MoleculePtrDescriptor.cpp \
|
---|
102 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
103 |
|
---|
104 |
|
---|
105 | DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
|
---|
106 | Descriptors/AtomIdDescriptor.hpp \
|
---|
107 | Descriptors/AtomSelectionDescriptor.hpp \
|
---|
108 | Descriptors/AtomTypeDescriptor.hpp \
|
---|
109 | Descriptors/MoleculeDescriptor.hpp \
|
---|
110 | Descriptors/MoleculeFormulaDescriptor.hpp \
|
---|
111 | Descriptors/MoleculeIdDescriptor.hpp \
|
---|
112 | Descriptors/MoleculeNameDescriptor.hpp \
|
---|
113 | Descriptors/MoleculePtrDescriptor.hpp \
|
---|
114 | Descriptors/MoleculeSelectionDescriptor.cpp
|
---|
115 |
|
---|
116 | QTUISOURCE = ${QTUIMOC_TARGETS} \
|
---|
117 | UIElements/QT4/QTMainWindow.cpp \
|
---|
118 | UIElements/QT4/QTDialog.cpp \
|
---|
119 | UIElements/QT4/QTUIFactory.cpp \
|
---|
120 | UIElements/Menu/QT4/QTMenu.cpp \
|
---|
121 | UIElements/Views/QT4/QTWorldView.cpp \
|
---|
122 | UIElements/Views/QT4/GLMoleculeView.cpp \
|
---|
123 | UIElements/Views/QT4/QTMoleculeView.cpp \
|
---|
124 | UIElements/Views/QT4/QTStatusBar.cpp
|
---|
125 |
|
---|
126 | QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp
|
---|
127 |
|
---|
128 | QTUI_DEFS =
|
---|
129 |
|
---|
130 | SOURCE = \
|
---|
131 | ${ANALYSISSOURCE} \
|
---|
132 | ${ACTIONSSOURCE} \
|
---|
133 | ${ATOMSOURCE} \
|
---|
134 | ${PATTERNSOURCE} \
|
---|
135 | ${PARSERSOURCE} \
|
---|
136 | ${SHAPESOURCE} \
|
---|
137 | ${DESCRIPTORSOURCE} \
|
---|
138 | ${HELPERSOURCE} \
|
---|
139 | bond.cpp \
|
---|
140 | bondgraph.cpp \
|
---|
141 | boundary.cpp \
|
---|
142 | Box.cpp \
|
---|
143 | CommandLineParser.cpp \
|
---|
144 | config.cpp \
|
---|
145 | ConfigFileBuffer.cpp \
|
---|
146 | element.cpp \
|
---|
147 | elements_db.cpp \
|
---|
148 | ellipsoid.cpp \
|
---|
149 | Formula.cpp \
|
---|
150 | graph.cpp \
|
---|
151 | leastsquaremin.cpp \
|
---|
152 | linkedcell.cpp \
|
---|
153 | moleculelist.cpp \
|
---|
154 | molecule.cpp \
|
---|
155 | molecule_dynamics.cpp \
|
---|
156 | molecule_fragmentation.cpp \
|
---|
157 | molecule_geometry.cpp \
|
---|
158 | molecule_graph.cpp \
|
---|
159 | molecule_pointcloud.cpp \
|
---|
160 | parser.cpp \
|
---|
161 | periodentafel.cpp \
|
---|
162 | tesselation.cpp \
|
---|
163 | tesselationhelpers.cpp \
|
---|
164 | ThermoStatContainer.cpp \
|
---|
165 | triangleintersectionlist.cpp \
|
---|
166 | UIElements/UIFactory.cpp \
|
---|
167 | vector_ops.cpp \
|
---|
168 | World.cpp
|
---|
169 |
|
---|
170 | HEADER = \
|
---|
171 | ${ANALYSISHEADER} \
|
---|
172 | ${ACTIONSHEADER} \
|
---|
173 | ${ATOMHEADER} \
|
---|
174 | ${PARSERHEADER} \
|
---|
175 | ${PATTERNHEADER} \
|
---|
176 | ${SHAPEHEADER} \
|
---|
177 | ${DESCRIPTORHEADER} \
|
---|
178 | bond.hpp \
|
---|
179 | bondgraph.hpp \
|
---|
180 | boundary.hpp \
|
---|
181 | Box.hpp \
|
---|
182 | CommandLineParser.hpp \
|
---|
183 | config.hpp \
|
---|
184 | ConfigFileBuffer.hpp \
|
---|
185 | defs.hpp \
|
---|
186 | element.hpp \
|
---|
187 | elements_db.hpp \
|
---|
188 | ellipsoid.hpp \
|
---|
189 | Formula.hpp \
|
---|
190 | graph.hpp \
|
---|
191 | leastsquaremin.hpp \
|
---|
192 | linkedcell.hpp \
|
---|
193 | lists.hpp \
|
---|
194 | molecule.hpp \
|
---|
195 | molecule_template.hpp \
|
---|
196 | parser.hpp \
|
---|
197 | periodentafel.hpp \
|
---|
198 | stackclass.hpp \
|
---|
199 | tesselation.hpp \
|
---|
200 | tesselationhelpers.hpp \
|
---|
201 | ThermoStatContainer.hpp \
|
---|
202 | triangleintersectionlist.hpp \
|
---|
203 | UIElements/UIFactory.hpp \
|
---|
204 | vector_ops.hpp \
|
---|
205 | World.hpp
|
---|
206 |
|
---|
207 | # the following files are no longer used:
|
---|
208 | # memoryallocator.hpp \
|
---|
209 | # memoryallocator.cpp \
|
---|
210 | # memoryusageobserver.hpp \
|
---|
211 | # memoryusageobserver.cpp
|
---|
212 |
|
---|
213 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
|
---|
214 | GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
|
---|
215 | INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
|
---|
216 |
|
---|
217 | noinst_LIBRARIES = libmolecuilder.a libmenu.a
|
---|
218 | bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
|
---|
219 |
|
---|
220 | molecuilderdir = ${bindir}
|
---|
221 |
|
---|
222 | libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER} $(srcdir)/version.c
|
---|
223 |
|
---|
224 | libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
|
---|
225 |
|
---|
226 | molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
|
---|
227 |
|
---|
228 | molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
|
---|
229 | #molecuilder_CXXFLAGS += -DNO_CACHING
|
---|
230 | molecuilder_LDFLAGS = $(BOOST_LIB)
|
---|
231 | molecuilder_SOURCES = builder.cpp
|
---|
232 | molecuilder_LDADD = \
|
---|
233 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
234 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
235 | libmolecuilder.a \
|
---|
236 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
237 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
238 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
239 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
240 | $(BOOST_LIB) \
|
---|
241 | ${BOOST_THREAD_LIB} \
|
---|
242 | ${BOOST_PROGRAM_OPTIONS_LIB}
|
---|
243 |
|
---|
244 |
|
---|
245 | #Stuff for building the GUI using QT
|
---|
246 | molecuildergui_SOURCES = ${QTUISOURCE} builder.cpp
|
---|
247 | molecuildergui_SOURCES += $(srcdir)/version.c
|
---|
248 | molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
|
---|
249 | molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
|
---|
250 | molecuildergui_LDADD = \
|
---|
251 | UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
252 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
|
---|
253 | libmolecuilder.a \
|
---|
254 | Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
|
---|
255 | LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
|
---|
256 | Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
|
---|
257 | Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
|
---|
258 | $(BOOST_LIB) \
|
---|
259 | ${BOOST_THREAD_LIB} \
|
---|
260 | ${BOOST_PROGRAM_OPTIONS_LIB} \
|
---|
261 | ${GUI_LIBS}
|
---|
262 |
|
---|
263 | joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
|
---|
264 | joiner_LDADD = libmolecuilder.a Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
265 |
|
---|
266 | analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
|
---|
267 | analyzer_LDADD = libmolecuilder.a Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la $(BOOST_LIB) ${BOOST_THREAD_LIB}
|
---|
268 |
|
---|
269 | #Rules needed for QT4
|
---|
270 | # UI-Files are scattered throughout several subdirectories
|
---|
271 | # Therfore `%'-rules do not seem to work
|
---|
272 | #Quick fix to get it done otherwise
|
---|
273 | ${QTUIMOC_TARGETS}: ${QTUIMOC_HEADER}
|
---|
274 | list='$(QTUIMOC_HEADER)'; for header in $$list; do \
|
---|
275 | echo "Making mocfile for $$header"; \
|
---|
276 | target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
|
---|
277 | $(MOC) $(srcdir)/$$header -o $$target \
|
---|
278 | || eval $$failcom; \
|
---|
279 | done;
|
---|
280 |
|
---|
281 | MOSTLYCLEANFILES = ${QTUIMOC_TARGETS}
|
---|
282 |
|
---|
283 | #EXTRA_DIST = ${molecuilder_DATA}
|
---|
284 |
|
---|
285 | FORCE:
|
---|
286 | $(srcdir)/.git-version: FORCE
|
---|
287 | @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
|
---|
288 | && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
|
---|
289 | && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
|
---|
290 | mv -f .git-version-t $(srcdir)/.git-version; \
|
---|
291 | else \
|
---|
292 | rm -f .git-version-t; \
|
---|
293 | fi
|
---|
294 |
|
---|
295 | EXTRA_DIST = $(srcdir)/.git-version
|
---|
296 |
|
---|
297 | $(srcdir)/version.c: $(srcdir)/.git-version
|
---|
298 | echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@
|
---|
299 |
|
---|
300 |
|
---|