source: src/UIElements/Views/Qt4/Plotting/Makefile.am

Candidate_v1.6.1
Last change on this file was 0ee9cb3, checked in by Frederik Heber <heber@…>, 8 years ago

FIX: Removed multiple instances of libmolecuilder_config.h in .._libinclude_HEADERS.

  • this also prevented linking with multiple threads, as each tried to write to the same file.
  • Property mode set to 100644
File size: 4.5 KB
Line 
1# Below is all for the User Interface
2
3if CONDQWT
4QWTSOURCE = \
5 UIElements/Views/Qt4/Plotting/QScrollZoomer/ScrollBar.cpp \
6 UIElements/Views/Qt4/Plotting/QScrollZoomer/ScrollZoomer.cpp \
7 UIElements/Views/Qt4/Plotting/XMLParser/QSeisXMLParser_plotcurve.cpp \
8 UIElements/Views/Qt4/Plotting/XMLParser/QSeisXMLParser_plottype.cpp \
9 UIElements/Views/Qt4/Plotting/XMLParser/QSeisXMLParser.cpp \
10 UIElements/Views/Qt4/Plotting/QListWidgetCurveItem.cpp \
11 UIElements/Views/Qt4/Plotting/QSeisCurveRegistry.cpp \
12 UIElements/Views/Qt4/Plotting/QSeisData.cpp \
13 UIElements/Views/Qt4/Plotting/QSeisPageRegistry.cpp \
14 UIElements/Views/Qt4/Plotting/QSeisPlot.cpp \
15 UIElements/Views/Qt4/Plotting/QSeisPlotCurve.cpp \
16 UIElements/Views/Qt4/Plotting/QSeisPlotPage.cpp
17
18QWTMOC_HEADER = \
19 UIElements/Views/Qt4/Plotting/QScrollZoomer/ScrollBar.hpp \
20 UIElements/Views/Qt4/Plotting/QScrollZoomer/ScrollZoomer.hpp \
21 UIElements/Views/Qt4/Plotting/XMLParser/QSeisXMLParser_plotcurve.hpp \
22 UIElements/Views/Qt4/Plotting/XMLParser/QSeisXMLParser_plottype.hpp \
23 UIElements/Views/Qt4/Plotting/XMLParser/QSeisXMLParser.hpp \
24 UIElements/Views/Qt4/Plotting/QListWidgetCurveItem.hpp \
25 UIElements/Views/Qt4/Plotting/QSeisCurveRegistry.hpp \
26 UIElements/Views/Qt4/Plotting/QSeisData.hpp \
27 UIElements/Views/Qt4/Plotting/QSeisPageRegistry.hpp \
28 UIElements/Views/Qt4/Plotting/QSeisPlot.hpp \
29 UIElements/Views/Qt4/Plotting/QSeisPlotCurve.hpp \
30 UIElements/Views/Qt4/Plotting/QSeisPlotPage.hpp
31
32QWTHEADER = \
33 $(QWTMOC_HEADER)
34
35if CONDQTGUI
36lib_LTLIBRARIES += libMolecuilderQwtUI.la
37
38libMolecuilderQwtUI_la_includedir = $(includedir)/MoleCuilder/
39libMolecuilderQwtUI_la_CPPFLAGS = $(AM_CPPFLAGS) ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} $(mol_ac_qwt_cxxflags)
40libMolecuilderQwtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(mol_ac_qwt_ldflags)
41
42libMolecuilderQwtUI_la_LIBADD = \
43 $(mol_ac_qwt_libs)
44
45nobase_libMolecuilderQwtUI_la_include_HEADERS = ${QWTHEADER}
46
47## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
48## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
49## will therefore be treated as if it were literally part of the target name,
50## and the variable name derived from that.
51## The file extension .cc is recognized by Automake, and makes it produce
52## rules which invoke the C++ compiler to produce a libtool object file (.lo)
53## from each source file. Note that it is not necessary to list header files
54## which are already listed elsewhere in a _HEADERS variable assignment.
55libMolecuilderQwtUI_la_SOURCES = ${QWTSOURCE}
56nodist_libMolecuilderQwtUI_la_SOURCES =
57nodist_libMolecuilderQwtUI_la_SOURCES += allqwtmocs.moc.cpp
58
59## Instruct libtool to include ABI version information in the generated shared
60## library file (.so). The library ABI version is defined in configure.ac, so
61## that all version information is kept in one place.
62libMolecuilderQwtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
63
64## The generated configuration header is installed in its own subdirectory of
65## $(libdir). The reason for this is that the configuration information put
66## into this header file describes the target platform the installed library
67## has been built for. Thus the file must not be installed into a location
68## intended for architecture-independent files, as defined by the Filesystem
69## Hierarchy Standard (FHS).
70## The nodist_ prefix instructs Automake to not generate rules for including
71## the listed files in the distribution on 'make dist'. Files that are listed
72## in _HEADERS variables are normally included in the distribution, but the
73## configuration header file is generated at configure time and should not be
74## shipped with the source tarball.
75libMolecuilderQwtUI_libincludedir = $(libdir)/MoleCuilder/include
76#nodist_libMolecuilderQwtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
77
78
79#Rules needed for Qt4
80# UI-Files are scattered throughout several subdirectories
81# Therfore `%'-rules do not seem to work
82#Quick fix to get it done otherwise
83allqwtmocs.moc.cpp: ${QWTMOC_HEADER}
84 echo "" > allqwtmocs.moc.cpp;\
85 list='${QWTMOC_HEADER}'; for header in $$list; do \
86 echo "Making mocfile for $$header"; \
87 target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
88 $(QT_MOC) $(srcdir)/$$header -o $$target \
89 || eval $$failcom; \
90 echo "#include \"$$target\"" >> allqwtmocs.moc.cpp; \
91 done;
92
93MOSTLYCLEANFILES += \
94 *.moc.cpp \
95 moc_*.cpp \
96 ui_*.h
97
98endif
99endif
Note: See TracBrowser for help on using the repository browser.