source: src/Makefile.am@ 8f3f40

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 8f3f40 was b59da6, checked in by Frederik Heber <heber@…>, 14 years ago

Refactoring of Menu structure for Qt and Text UI done.

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