# Below is all for the User Interface INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/UIElements AM_LDFLAGS = -ldl AM_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} AM_CPPFLAGS = ${BOOST_CPPFLAGS} VIEWSOURCE = \ Views/View.cpp \ Views/StringView.cpp \ Views/MethodStringView.cpp \ Views/StreamStringView.cpp VIEWHEADER = \ Views/View.hpp \ Views/StringView.hpp \ Views/MethodStringView.hpp \ Views/StreamStringView.hpp MENUSOURCE = \ Menu/Menu.cpp \ Menu/MenuDescription.cpp \ Menu/MenuInterface.cpp MENUHEADER = \ Menu/Menu.hpp \ Menu/MenuDescription.hpp \ Menu/MenuInterface.hpp TEXTMENUSOURCE = \ Menu/TextMenu/TxMenuLeaveAction.cpp \ Menu/TextMenu/TxMenu.cpp \ Menu/TextMenu/MenuItem.cpp \ Menu/TextMenu/SubMenuItem.cpp \ Menu/TextMenu/ActionMenuItem.cpp \ Menu/TextMenu/SeparatorMenuItem.cpp \ Menu/TextMenu/DisplayMenuItem.cpp TEXTMENUHEADER = \ Menu/TextMenu/TextMenu.hpp \ Menu/TextMenu/TxMenu.hpp \ Menu/TextMenu/MenuItem.hpp \ Menu/TextMenu/SubMenuItem.hpp \ Menu/TextMenu/ActionMenuItem.hpp \ Menu/TextMenu/SeparatorMenuItem.hpp \ Menu/TextMenu/DisplayMenuItem.hpp UISOURCE = \ ${ACTIONSSOURCE} \ ${COMMANDLINEUISOURCE} \ ${MENUSOURCE} \ ${TEXTMENUSOURCE} \ ${TEXTUISOURCE} \ ${VIEWSOURCE} \ Query/AtomQuery.cpp \ Query/AtomsQuery.cpp \ Query/BooleanQuery.cpp \ Query/BoxQuery.cpp \ Query/DoubleQuery.cpp \ Query/DoublesQuery.cpp \ Query/ElementQuery.cpp \ Query/ElementsQuery.cpp \ Query/EmptyQuery.cpp \ Query/FileQuery.cpp \ Query/IntQuery.cpp \ Query/IntsQuery.cpp \ Query/MoleculeQuery.cpp \ Query/MoleculesQuery.cpp \ Query/Query.cpp \ Query/StringQuery.cpp \ Query/StringsQuery.cpp \ Query/VectorQuery.cpp \ Query/VectorsQuery.cpp \ Dialog.cpp \ MainWindow.cpp UIHEADER = \ ${ACTIONSHEADER} \ ${COMMANDLINEUIHEADER} \ ${MENUHEADER} \ ${TEXTMENUHEADER} \ ${TEXTUIHEADER} \ ${VIEWHEADER} \ Dialog.hpp \ MainWindow.hpp TEXTUISOURCE = \ TextUI/Query/AtomsTextQuery.cpp \ TextUI/Query/AtomTextQuery.cpp \ TextUI/Query/BooleanTextQuery.cpp \ TextUI/Query/BoxTextQuery.cpp \ TextUI/Query/DoubleTextQuery.cpp \ TextUI/Query/DoublesTextQuery.cpp \ TextUI/Query/ElementTextQuery.cpp \ TextUI/Query/ElementsTextQuery.cpp \ TextUI/Query/EmptyTextQuery.cpp \ TextUI/Query/FileTextQuery.cpp \ TextUI/Query/IntTextQuery.cpp \ TextUI/Query/IntsTextQuery.cpp \ TextUI/Query/MoleculesTextQuery.cpp \ TextUI/Query/MoleculeTextQuery.cpp \ TextUI/Query/StringTextQuery.cpp \ TextUI/Query/StringsTextQuery.cpp \ TextUI/Query/VectorTextQuery.cpp \ TextUI/Query/VectorsTextQuery.cpp \ TextUI/TextDialog.cpp \ TextUI/TextStatusIndicator.cpp \ TextUI/TextUIFactory.cpp \ TextUI/TextWindow.cpp TEXTUIHEADER = \ TextUI/Query/TextQuery.hpp \ TextUI/TextDialog.hpp \ TextUI/TextStatusIndicator.hpp \ TextUI/TextUIFactory.hpp \ TextUI/TextWindow.hpp COMMANDLINEUISOURCE = \ CommandLineUI/Query/AtomCommandLineQuery.cpp \ CommandLineUI/Query/AtomsCommandLineQuery.cpp \ CommandLineUI/Query/BooleanCommandLineQuery.cpp \ CommandLineUI/Query/BoxCommandLineQuery.cpp \ CommandLineUI/Query/DoubleCommandLineQuery.cpp \ CommandLineUI/Query/DoublesCommandLineQuery.cpp \ CommandLineUI/Query/ElementCommandLineQuery.cpp \ CommandLineUI/Query/ElementsCommandLineQuery.cpp \ CommandLineUI/Query/EmptyCommandLineQuery.cpp \ CommandLineUI/Query/FileCommandLineQuery.cpp \ CommandLineUI/Query/IntCommandLineQuery.cpp \ CommandLineUI/Query/IntsCommandLineQuery.cpp \ CommandLineUI/Query/MoleculeCommandLineQuery.cpp \ CommandLineUI/Query/MoleculesCommandLineQuery.cpp \ CommandLineUI/Query/StringCommandLineQuery.cpp \ CommandLineUI/Query/StringsCommandLineQuery.cpp \ CommandLineUI/Query/VectorCommandLineQuery.cpp \ CommandLineUI/Query/VectorsCommandLineQuery.cpp \ CommandLineUI/CommandLineDialog.cpp \ CommandLineUI/CommandLineParser.cpp \ CommandLineUI/CommandLineParser_validate.cpp \ CommandLineUI/CommandLineStatusIndicator.cpp \ CommandLineUI/CommandLineUIFactory.cpp \ CommandLineUI/CommandLineWindow.cpp \ CommandLineUI/TypeEnumContainer.cpp COMMANDLINEUIHEADER = \ CommandLineUI/Query/CommandLineQuery.hpp \ CommandLineUI/CommandLineDialog.hpp \ CommandLineUI/CommandLineParser.hpp \ CommandLineUI/CommandLineParser_validate.hpp \ CommandLineUI/CommandLineStatusIndicator.hpp \ CommandLineUI/CommandLineUIFactory.hpp \ CommandLineUI/CommandLineWindow.hpp \ CommandLineUI/TypeEnumContainer.cpp QTUIMOC_HEADER = \ Qt4/QtDialog.hpp \ Qt4/QtMainWindow.hpp \ Qt4/Pipe/AtomQtQueryPipe.hpp \ Qt4/Pipe/AtomsQtQueryPipe.hpp \ Qt4/Pipe/BooleanQtQueryPipe.hpp \ Qt4/Pipe/BoxQtQueryPipe.hpp \ Qt4/Pipe/DoubleQtQueryPipe.hpp \ Qt4/Pipe/ElementsQtQueryPipe.hpp \ Qt4/Pipe/EmptyQtQueryPipe.hpp \ Qt4/Pipe/ElementQtQueryPipe.hpp \ Qt4/Pipe/FileQtQueryPipe.hpp \ Qt4/Pipe/IntQtQueryPipe.hpp \ Qt4/Pipe/MoleculeQtQueryPipe.hpp \ Qt4/Pipe/MoleculesQtQueryPipe.hpp \ Qt4/Pipe/StringQtQueryPipe.hpp \ Qt4/Pipe/VectorQtQueryPipe.hpp \ Qt4/Pipe/VectorsQtQueryPipe.hpp \ Menu/Qt4/QtMenuPipe.hpp \ Views/Qt4/QtWorldView.hpp \ Views/Qt4/GLMoleculeView.hpp \ Views/Qt4/QtMoleculeView.hpp \ Views/Qt4/QtStatusBar.hpp QTUISOURCE = allmocs.moc.cpp \ Qt4/Pipe/AtomQtQueryPipe.cpp \ Qt4/Pipe/AtomsQtQueryPipe.cpp \ Qt4/Pipe/BooleanQtQueryPipe.cpp \ Qt4/Pipe/BoxQtQueryPipe.cpp \ Qt4/Pipe/DoubleQtQueryPipe.cpp \ Qt4/Pipe/ElementsQtQueryPipe.cpp \ Qt4/Pipe/EmptyQtQueryPipe.cpp \ Qt4/Pipe/ElementQtQueryPipe.cpp \ Qt4/Pipe/FileQtQueryPipe.cpp \ Qt4/Pipe/IntQtQueryPipe.cpp \ Qt4/Pipe/MoleculeQtQueryPipe.cpp \ Qt4/Pipe/MoleculesQtQueryPipe.cpp \ Qt4/Pipe/StringQtQueryPipe.cpp \ Qt4/Pipe/VectorQtQueryPipe.cpp \ Qt4/Pipe/VectorsQtQueryPipe.cpp \ Qt4/Query/AtomQtQuery.cpp \ Qt4/Query/AtomsQtQuery.cpp \ Qt4/Query/BooleanQtQuery.cpp \ Qt4/Query/BoxQtQuery.cpp \ Qt4/Query/DoubleQtQuery.cpp \ Qt4/Query/DoublesQtQuery.cpp \ Qt4/Query/ElementQtQuery.cpp \ Qt4/Query/ElementsQtQuery.cpp \ Qt4/Query/EmptyQtQuery.cpp \ Qt4/Query/FileQtQuery.cpp \ Qt4/Query/IntQtQuery.cpp \ Qt4/Query/IntsQtQuery.cpp \ Qt4/Query/MoleculeQtQuery.cpp \ Qt4/Query/MoleculesQtQuery.cpp \ Qt4/Query/StringQtQuery.cpp \ Qt4/Query/StringsQtQuery.cpp \ Qt4/Query/VectorQtQuery.cpp \ Qt4/Query/VectorsQtQuery.cpp \ Qt4/QtMainWindow.cpp \ Qt4/QtDialog.cpp \ Qt4/QtUIFactory.cpp \ Menu/Qt4/QtMenuPipe.cpp \ Views/Qt4/QtWorldView.cpp \ Views/Qt4/GLMoleculeView.cpp \ Views/Qt4/QtMoleculeView.cpp \ Views/Qt4/QtStatusBar.cpp QTUIHEADER = \ ${QTUIMOC_HEADER} \ Menu/Qt4/QtMenu.hpp \ Qt4/Query/QtQuery.hpp \ Qt4/QtUIFactory.hpp \ Qt4/Pipe/QtQueryListPipe.hpp QTUI_DEFS = GUI_LIBS = lib_LTLIBRARIES = libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \ libMolecuilderQtUI-@MOLECUILDER_API_VERSION@.la libMolecuilderUI_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/ libMolecuilderQtUI_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/ libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_LIBS = \ Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_LIBS = \ Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_LIBADD = ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS} ${QT_LDADD} nobase_libMolecuilderUI_include_HEADERS = ${UIHEADER} nobase_libMolecuilderQtUI_include_HEADERS = ${QTUIHEADER} ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la" ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and ## will therefore be treated as if it were literally part of the target name, ## and the variable name derived from that. ## The file extension .cc is recognized by Automake, and makes it produce ## rules which invoke the C++ compiler to produce a libtool object file (.lo) ## from each source file. Note that it is not necessary to list header files ## which are already listed elsewhere in a _HEADERS variable assignment. libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_SOURCES = ${UISOURCE} libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_SOURCES = ${QTUISOURCE} ## Instruct libtool to include ABI version information in the generated shared ## library file (.so). The library ABI version is defined in configure.ac, so ## that all version information is kept in one place. libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION) libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION) ## The generated configuration header is installed in its own subdirectory of ## $(libdir). The reason for this is that the configuration information put ## into this header file describes the target platform the installed library ## has been built for. Thus the file must not be installed into a location ## intended for architecture-independent files, as defined by the Filesystem ## Hierarchy Standard (FHS). ## The nodist_ prefix instructs Automake to not generate rules for including ## the listed files in the distribution on 'make dist'. Files that are listed ## in _HEADERS variables are normally included in the distribution, but the ## configuration header file is generated at configure time and should not be ## shipped with the source tarball. libMolecuilderUI_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include libMolecuilderQtUI_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h ## Install the generated pkg-config file (.pc) into the expected location for ## architecture-dependent package configuration information. Occasionally, ## pkg-config files are also used for architecture-independent data packages, ## in which case the correct install location would be $(datadir)/pkgconfig. pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc unity.cpp: echo "" > unity.cpp; \ list='$(UISOURCE)'; for file in $$list; do \ echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \ done; #Rules needed for Qt4 # UI-Files are scattered throughout several subdirectories # Therfore `%'-rules do not seem to work #Quick fix to get it done otherwise allmocs.moc.cpp: ${QTUIMOC_HEADER} echo "" > allmocs.moc.cpp;\ list='$(QTUIMOC_HEADER)'; for header in $$list; do \ echo "Making mocfile for $$header"; \ target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\ $(MOC) $(srcdir)/$$header -o $$target \ || eval $$failcom; \ echo "#include \"$$target\"" >> allmocs.moc.cpp; \ done; MOSTLYCLEANFILES = unity.cpp allmocs.moc.cpp