[35302b] | 1 | # Below is all for the User Interface
|
---|
| 2 |
|
---|
| 3 | if CONDQWT
|
---|
| 4 | QWTSOURCE = \
|
---|
| 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 |
|
---|
| 18 | QWTMOC_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 |
|
---|
[6497a3] | 32 | QWTHEADER = \
|
---|
[35302b] | 33 | $(QWTMOC_HEADER)
|
---|
| 34 |
|
---|
| 35 | if CONDQTGUI
|
---|
| 36 | lib_LTLIBRARIES += libMolecuilderQwtUI.la
|
---|
| 37 |
|
---|
| 38 | libMolecuilderQwtUI_la_includedir = $(includedir)/MoleCuilder/
|
---|
[3b35e7] | 39 | libMolecuilderQwtUI_la_CPPFLAGS = $(AM_CPPFLAGS) ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} $(mol_ac_qwt_cxxflags)
|
---|
[35302b] | 40 | libMolecuilderQwtUI_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 |
|
---|
| 42 | libMolecuilderQwtUI_la_LIBADD = \
|
---|
| 43 | $(mol_ac_qwt_libs)
|
---|
| 44 |
|
---|
| 45 | nobase_libMolecuilderQwtUI_la_include_HEADERS = ${QWTHEADER}
|
---|
[c20839] | 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.
|
---|
[35302b] | 55 | libMolecuilderQwtUI_la_SOURCES = ${QWTSOURCE}
|
---|
| 56 | nodist_libMolecuilderQwtUI_la_SOURCES =
|
---|
[c20839] | 57 | nodist_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.
|
---|
[35302b] | 62 | libMolecuilderQwtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
|
---|
| 63 |
|
---|
[c20839] | 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.
|
---|
| 75 | libMolecuilderQwtUI_libincludedir = $(libdir)/MoleCuilder/include
|
---|
| 76 | nodist_libMolecuilderQwtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
[35302b] | 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
|
---|
| 83 | allqwtmocs.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 |
|
---|
| 93 | MOSTLYCLEANFILES += \
|
---|
| 94 | *.moc.cpp \
|
---|
| 95 | moc_*.cpp \
|
---|
| 96 | ui_*.h
|
---|
| 97 |
|
---|
| 98 | endif
|
---|
| 99 | endif
|
---|