source: src/Makefile.am@ 6b5657

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 6b5657 was b0b086, checked in by Frederik Heber <heber@…>, 15 years ago

BUGFIX: Fixed unity target.

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