source: src/Makefile.am@ 379b7e

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable
Last change on this file since 379b7e was 379b7e, checked in by Frederik Heber <heber@…>, 14 years ago

BUGFIX: Fixed wrong renaming of USE_GUI_QT to USE_GUI_Qt.

  • Property mode set to 100644
File size: 13.3 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4SUBDIRS = Actions Exceptions Helpers LinearAlgebra Parser UIElements
5
6ATOMSOURCE = \
7 atom.cpp \
8 AtomicInfo.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
17ATOMHEADER = \
18 atom.hpp \
19 AtomicInfo.hpp \
20 atom_atominfo.hpp \
21 atom_bondedparticle.hpp \
22 atom_bondedparticleinfo.hpp \
23 atom_graphnode.hpp \
24 atom_graphnodeinfo.hpp \
25 atom_particleinfo.hpp \
26 atom_trajectoryparticle.hpp \
27 atom_trajectoryparticleinfo.hpp
28
29ANALYSISSOURCE = \
30 analysis_bonds.cpp \
31 analysis_correlation.cpp
32ANALYSISHEADER = \
33 analysis_bonds.hpp \
34 analysis_correlation.hpp
35
36ACTIONSSOURCE = \
37 Actions/Action.cpp \
38 Actions/ActionHistory.cpp \
39 Actions/ActionRegistry.cpp \
40 Actions/ActionSequence.cpp \
41 Actions/ErrorAction.cpp \
42 Actions/MakroAction.cpp \
43 Actions/ManipulateAtomsProcess.cpp \
44 Actions/MethodAction.cpp \
45 Actions/Process.cpp
46
47ACTIONSHEADER = \
48 Actions/Action.hpp \
49 Actions/ActionHistory.hpp \
50 Actions/ActionRegistry.hpp \
51 Actions/ActionSequence.hpp \
52 Actions/Calculation.hpp \
53 Actions/Calculation_impl.hpp \
54 Actions/ErrorAction.hpp \
55 Actions/MakroAction.hpp \
56 Actions/ManipulateAtomsProcess.hpp \
57 Actions/MapOfActions.hpp \
58 Actions/MethodAction.hpp \
59 Actions/Process.hpp
60
61
62PATTERNSOURCE = \
63 Patterns/Observer.cpp
64PATTERNHEADER = \
65 Patterns/Cacheable.hpp \
66 Patterns/Observer.hpp \
67 Patterns/Singleton.hpp
68
69SHAPESOURCE = \
70 Shapes/BaseShapes.cpp \
71 Shapes/Shape.cpp \
72 Shapes/ShapeOps.cpp
73SHAPEHEADER = \
74 Shapes/BaseShapes.hpp \
75 Shapes/Shape.hpp \
76 Shapes/ShapeOps.hpp
77
78
79DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
80 Descriptors/AtomIdDescriptor.cpp \
81 Descriptors/AtomSelectionDescriptor.cpp \
82 Descriptors/AtomShapeDescriptor.cpp \
83 Descriptors/AtomTypeDescriptor.cpp \
84 Descriptors/MoleculeDescriptor.cpp \
85 Descriptors/MoleculeFormulaDescriptor.cpp \
86 Descriptors/MoleculeIdDescriptor.cpp \
87 Descriptors/MoleculeNameDescriptor.cpp \
88 Descriptors/MoleculePtrDescriptor.cpp \
89 Descriptors/MoleculeSelectionDescriptor.cpp
90
91
92DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
93 Descriptors/AtomIdDescriptor.hpp \
94 Descriptors/AtomSelectionDescriptor.hpp \
95 Descriptors/AtomShapeDescriptor.hpp \
96 Descriptors/AtomTypeDescriptor.hpp \
97 Descriptors/MoleculeDescriptor.hpp \
98 Descriptors/MoleculeFormulaDescriptor.hpp \
99 Descriptors/MoleculeIdDescriptor.hpp \
100 Descriptors/MoleculeNameDescriptor.hpp \
101 Descriptors/MoleculePtrDescriptor.hpp \
102 Descriptors/MoleculeSelectionDescriptor.cpp
103
104THERMOSTATSOURCE = \
105 Thermostats/Berendsen.cpp \
106 Thermostats/GaussianThermostat.cpp \
107 Thermostats/Langevin.cpp \
108 Thermostats/NoseHoover.cpp \
109 Thermostats/NoThermostat.cpp \
110 Thermostats/Thermostat.cpp \
111 Thermostats/Woodcock.cpp
112
113THERMOSTATHEADER = \
114 Thermostats/Berendsen.hpp \
115 Thermostats/GaussianThermostat.hpp \
116 Thermostats/Langevin.hpp \
117 Thermostats/NoseHoover.hpp \
118 Thermostats/NoThermostat.hpp \
119 Thermostats/Thermostat.hpp \
120 Thermostats/Woodcock.hpp
121
122QTUIMOC_HEADER = UIElements/Qt4/QtDialog.hpp \
123 UIElements/Qt4/QtMainWindow.hpp \
124 UIElements/Menu/Qt4/QtMenu.hpp \
125 UIElements/Views/Qt4/QtWorldView.hpp \
126 UIElements/Views/Qt4/GLMoleculeView.hpp \
127 UIElements/Views/Qt4/QtMoleculeView.hpp \
128 UIElements/Views/Qt4/QtStatusBar.hpp
129
130QTUISOURCE = allmocs.moc.cpp \
131 UIElements/Qt4/QtMainWindow.cpp \
132 UIElements/Qt4/QtDialog.cpp \
133 UIElements/Qt4/QtUIFactory.cpp \
134 UIElements/Menu/Qt4/QtMenu.cpp \
135 UIElements/Views/Qt4/QtWorldView.cpp \
136 UIElements/Views/Qt4/GLMoleculeView.cpp \
137 UIElements/Views/Qt4/QtMoleculeView.cpp \
138 UIElements/Views/Qt4/QtStatusBar.cpp
139
140QTUIHEADER = ${QTUIMOC_HEADER} UIElements/Qt4/QtUIFactory.hpp
141
142QTUI_DEFS =
143
144TESSELATIONSOURCE = \
145 BoundaryLineSet.cpp \
146 BoundaryPointSet.cpp \
147 BoundaryPolygonSet.cpp \
148 BoundaryTriangleSet.cpp \
149 CandidateForTesselation.cpp \
150 PointCloud.cpp \
151 tesselation.cpp \
152 tesselationhelpers.cpp \
153 TesselPoint.cpp
154
155TESSELATIONHEADER = \
156 BoundaryLineSet.hpp \
157 BoundaryPointSet.hpp \
158 BoundaryPolygonSet.hpp \
159 BoundaryTriangleSet.hpp \
160 CandidateForTesselation.hpp \
161 PointCloud.hpp \
162 tesselation.hpp \
163 tesselationhelpers.hpp \
164 TesselPoint.hpp
165
166MOLECUILDERSOURCE = \
167 ${ANALYSISSOURCE} \
168 ${ACTIONSSOURCE} \
169 ${ATOMSOURCE} \
170 ${PATTERNSOURCE} \
171 ${SHAPESOURCE} \
172 ${DESCRIPTORSOURCE} \
173 ${THERMOSTATSOURCE} \
174 ${TESSELATIONSOURCE} \
175 bond.cpp \
176 bondgraph.cpp \
177 boundary.cpp \
178 Box.cpp \
179 CommandLineParser.cpp \
180 config.cpp \
181 ConfigFileBuffer.cpp \
182 defs.cpp \
183 element.cpp \
184 elements_db.cpp \
185 ellipsoid.cpp \
186 Formula.cpp \
187 graph.cpp \
188 leastsquaremin.cpp \
189 linkedcell.cpp \
190 moleculelist.cpp \
191 molecule.cpp \
192 molecule_dynamics.cpp \
193 molecule_fragmentation.cpp \
194 molecule_geometry.cpp \
195 molecule_graph.cpp \
196 molecule_pointcloud.cpp \
197 parser.cpp \
198 periodentafel.cpp \
199 ThermoStatContainer.cpp \
200 triangleintersectionlist.cpp \
201 UIElements/UIFactory.cpp \
202 World.cpp
203
204MOLECUILDERHEADER = \
205 ${ANALYSISHEADER} \
206 ${ACTIONSHEADER} \
207 ${ATOMHEADER} \
208 ${PATTERNHEADER} \
209 ${SHAPEHEADER} \
210 ${DESCRIPTORHEADER} \
211 ${THERMOSTATHEADER} \
212 ${TESSELATIONHEADER} \
213 bond.hpp \
214 bondgraph.hpp \
215 boundary.hpp \
216 Box.hpp \
217 CommandLineParser.hpp \
218 config.hpp \
219 ConfigFileBuffer.hpp \
220 defs.hpp \
221 element.hpp \
222 elements_db.hpp \
223 ellipsoid.hpp \
224 Formula.hpp \
225 graph.hpp \
226 leastsquaremin.hpp \
227 linkedcell.hpp \
228 lists.hpp \
229 molecule.hpp \
230 parser.hpp \
231 periodentafel.hpp \
232 stackclass.hpp \
233 ThermoStatContainer.hpp \
234 triangleintersectionlist.hpp \
235 UIElements/UIFactory.hpp \
236 World.hpp
237
238lib_LTLIBRARIES = libMolecuilder-@MOLECUILDER_API_VERSION@.la
239libMolecuilder_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
240libMolecuilder_LIBS = \
241 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
242 ${BOOST_PROGRAM_OPTIONS_LIB}
243
244# UIElements/libMolecuilderUI.a \
245 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
246 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
247 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
248 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
249 $(BOOST_LIB) \
250 ${BOOST_THREAD_LIB}
251
252nobase_libMolecuilder_include_HEADERS = ${MOLECUILDERHEADER}
253
254## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
255## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
256## will therefore be treated as if it were literally part of the target name,
257## and the variable name derived from that.
258## The file extension .cc is recognized by Automake, and makes it produce
259## rules which invoke the C++ compiler to produce a libtool object file (.lo)
260## from each source file. Note that it is not necessary to list header files
261## which are already listed elsewhere in a _HEADERS variable assignment.
262libMolecuilder_@MOLECUILDER_API_VERSION@_la_SOURCES = ${MOLECUILDERSOURCE} $(srcdir)/version.c
263
264## Instruct libtool to include ABI version information in the generated shared
265## library file (.so). The library ABI version is defined in configure.ac, so
266## that all version information is kept in one place.
267libMolecuilder_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
268
269## The generated configuration header is installed in its own subdirectory of
270## $(libdir). The reason for this is that the configuration information put
271## into this header file describes the target platform the installed library
272## has been built for. Thus the file must not be installed into a location
273## intended for architecture-independent files, as defined by the Filesystem
274## Hierarchy Standard (FHS).
275## The nodist_ prefix instructs Automake to not generate rules for including
276## the listed files in the distribution on 'make dist'. Files that are listed
277## in _HEADERS variables are normally included in the distribution, but the
278## configuration header file is generated at configure time and should not be
279## shipped with the source tarball.
280libMolecuilder_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
281nodist_libMolecuilder_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
282
283## Install the generated pkg-config file (.pc) into the expected location for
284## architecture-dependent package configuration information. Occasionally,
285## pkg-config files are also used for architecture-independent data packages,
286## in which case the correct install location would be $(datadir)/pkgconfig.
287pkgconfigdir = $(libdir)/pkgconfig
288pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc
289
290
291BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_THREAD_LIB)
292GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}
293INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
294
295noinst_LIBRARIES = libmenu.a
296bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
297EXTRA_PROGRAMS = unity
298
299molecuilderdir = ${bindir}
300
301libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
302
303molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
304
305molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)
306#molecuilder_CXXFLAGS += -DNO_CACHING
307molecuilder_LDFLAGS = $(BOOST_LIB)
308molecuilder_SOURCES = builder.cpp
309molecuilder_LDADD = \
310 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
311 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
312 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
313 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
314 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
315 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
316 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
317 $(BOOST_LIB)
318
319#Stuff for building the GUI using Qt
320molecuildergui_SOURCES = ${QTUISOURCE} builder.cpp
321molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
322molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
323
324unity_SOURCES = unity.cpp
325unity_LDADD = $(BOOST_LIB)
326
327molecuildergui_LDADD = \
328 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
329 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
330 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
331 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
332 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
333 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
334 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
335 $(BOOST_LIB) \
336 ${GUI_LIBS}
337
338joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp
339joiner_LDADD = \
340 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
341 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
342 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
343 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
344 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
345 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
346 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
347 $(BOOST_LIB)
348
349analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp
350analyzer_LDADD = \
351 UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
352 Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
353 libMolecuilder-@MOLECUILDER_API_VERSION@.la \
354 Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la \
355 LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
356 Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
357 Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
358 $(BOOST_LIB)
359
360#Rules needed for Qt4
361# UI-Files are scattered throughout several subdirectories
362# Therfore `%'-rules do not seem to work
363#Quick fix to get it done otherwise
364allmocs.moc.cpp: ${QTUIMOC_HEADER}
365 echo "" > allmocs.moc.cpp;\
366 list='$(QTUIMOC_HEADER)'; for header in $$list; do \
367 echo "Making mocfile for $$header"; \
368 target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
369 $(MOC) $(srcdir)/$$header -o $$target \
370 || eval $$failcom; \
371 echo "#include \"$$target\"" >> allmocs.moc.cpp; \
372 done;
373
374#EXTRA_DIST = ${molecuilder_DATA}
375
376FORCE:
377$(srcdir)/.git-version: FORCE
378 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
379 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
380 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
381 mv -f .git-version-t $(srcdir)/.git-version; \
382 else \
383 rm -f .git-version-t; \
384 fi
385
386EXTRA_DIST = $(srcdir)/.git-version
387
388$(srcdir)/version.c: $(srcdir)/.git-version
389 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
390
391
392unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
393 echo "#include \"$(srcdir)/Helpers/MemDebug.cpp\"" > unity.cpp; \
394 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
395 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
396 done; \
397 subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
398 olddir=$$PWD;\
399 cd $$directory && make unity.cpp;\
400 cd $$olddir;\
401 echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
402 done;\
403 echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
404 echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
405
406MOSTLYCLEANFILES = allmocs.moc.cpp unity.cpp
407
Note: See TracBrowser for help on using the repository browser.