1 | # Below is all for the User Interface
|
---|
2 |
|
---|
3 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/UIElements
|
---|
4 |
|
---|
5 | AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl
|
---|
6 | AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
---|
7 |
|
---|
8 | VIEWSOURCE = \
|
---|
9 | Views/View.cpp \
|
---|
10 | Views/StringView.cpp \
|
---|
11 | Views/MethodStringView.cpp \
|
---|
12 | Views/StreamStringView.cpp
|
---|
13 | VIEWHEADER = \
|
---|
14 | Views/View.hpp \
|
---|
15 | Views/StringView.hpp \
|
---|
16 | Views/MethodStringView.hpp \
|
---|
17 | Views/StreamStringView.hpp
|
---|
18 |
|
---|
19 | MENUSOURCE = \
|
---|
20 | Menu/Menu.cpp \
|
---|
21 | Menu/MenuDescription.cpp \
|
---|
22 | Menu/MenuInterface.cpp
|
---|
23 |
|
---|
24 | MENUHEADER = \
|
---|
25 | Menu/Menu.hpp \
|
---|
26 | Menu/MenuDescription.hpp \
|
---|
27 | Menu/MenuInterface.hpp
|
---|
28 |
|
---|
29 | TEXTMENUSOURCE = \
|
---|
30 | Menu/TextMenu/TxMenu.cpp \
|
---|
31 | Menu/TextMenu/MenuItem.cpp \
|
---|
32 | Menu/TextMenu/SubMenuItem.cpp \
|
---|
33 | Menu/TextMenu/ActionMenuItem.cpp \
|
---|
34 | Menu/TextMenu/SeperatorItem.cpp \
|
---|
35 | Menu/TextMenu/DisplayMenuItem.cpp
|
---|
36 |
|
---|
37 | TEXTMENUHEADER = \
|
---|
38 | Menu/TextMenu/TextMenu.hpp \
|
---|
39 | Menu/TextMenu/TxMenu.hpp \
|
---|
40 | Menu/TextMenu/MenuItem.hpp \
|
---|
41 | Menu/TextMenu/SubMenuItem.hpp \
|
---|
42 | Menu/TextMenu/ActionMenuItem.hpp \
|
---|
43 | Menu/TextMenu/SeperatorItem.hpp \
|
---|
44 | Menu/TextMenu/DisplayMenuItem.hpp
|
---|
45 |
|
---|
46 | UISOURCE = \
|
---|
47 | ${ACTIONSSOURCE} \
|
---|
48 | ${COMMANDLINEUISOURCE} \
|
---|
49 | ${MENUSOURCE} \
|
---|
50 | ${TEXTMENUSOURCE} \
|
---|
51 | ${TEXTUISOURCE} \
|
---|
52 | ${VIEWSOURCE} \
|
---|
53 | Query/AtomQuery.cpp \
|
---|
54 | Query/AtomsQuery.cpp \
|
---|
55 | Query/BooleanQuery.cpp \
|
---|
56 | Query/BoxQuery.cpp \
|
---|
57 | Query/DoubleQuery.cpp \
|
---|
58 | Query/DoublesQuery.cpp \
|
---|
59 | Query/ElementQuery.cpp \
|
---|
60 | Query/ElementsQuery.cpp \
|
---|
61 | Query/EmptyQuery.cpp \
|
---|
62 | Query/FileQuery.cpp \
|
---|
63 | Query/IntQuery.cpp \
|
---|
64 | Query/IntsQuery.cpp \
|
---|
65 | Query/MoleculeQuery.cpp \
|
---|
66 | Query/MoleculesQuery.cpp \
|
---|
67 | Query/Query.cpp \
|
---|
68 | Query/StringQuery.cpp \
|
---|
69 | Query/StringsQuery.cpp \
|
---|
70 | Query/VectorQuery.cpp \
|
---|
71 | Query/VectorsQuery.cpp \
|
---|
72 | Dialog.cpp \
|
---|
73 | MainWindow.cpp
|
---|
74 |
|
---|
75 | UIHEADER = \
|
---|
76 | ${ACTIONSHEADER} \
|
---|
77 | ${COMMANDLINEUIHEADER} \
|
---|
78 | ${MENUHEADER} \
|
---|
79 | ${TEXTMENUHEADER} \
|
---|
80 | ${TEXTUIHEADER} \
|
---|
81 | ${VIEWHEADER} \
|
---|
82 | Dialog.hpp \
|
---|
83 | MainWindow.hpp
|
---|
84 |
|
---|
85 | TEXTUISOURCE = \
|
---|
86 | TextUI/Query/AtomsTextQuery.cpp \
|
---|
87 | TextUI/Query/AtomTextQuery.cpp \
|
---|
88 | TextUI/Query/BooleanTextQuery.cpp \
|
---|
89 | TextUI/Query/BoxTextQuery.cpp \
|
---|
90 | TextUI/Query/DoubleTextQuery.cpp \
|
---|
91 | TextUI/Query/DoublesTextQuery.cpp \
|
---|
92 | TextUI/Query/ElementTextQuery.cpp \
|
---|
93 | TextUI/Query/ElementsTextQuery.cpp \
|
---|
94 | TextUI/Query/EmptyTextQuery.cpp \
|
---|
95 | TextUI/Query/FileTextQuery.cpp \
|
---|
96 | TextUI/Query/IntTextQuery.cpp \
|
---|
97 | TextUI/Query/IntsTextQuery.cpp \
|
---|
98 | TextUI/Query/MoleculesTextQuery.cpp \
|
---|
99 | TextUI/Query/MoleculeTextQuery.cpp \
|
---|
100 | TextUI/Query/StringTextQuery.cpp \
|
---|
101 | TextUI/Query/StringsTextQuery.cpp \
|
---|
102 | TextUI/Query/VectorTextQuery.cpp \
|
---|
103 | TextUI/Query/VectorsTextQuery.cpp \
|
---|
104 | TextUI/TextDialog.cpp \
|
---|
105 | TextUI/TextStatusIndicator.cpp \
|
---|
106 | TextUI/TextUIFactory.cpp \
|
---|
107 | TextUI/TextWindow.cpp
|
---|
108 | TEXTUIHEADER = \
|
---|
109 | TextUI/TextDialog.hpp \
|
---|
110 | TextUI/TextStatusIndicator.hpp \
|
---|
111 | TextUI/TextUIFactory.hpp \
|
---|
112 | TextUI/TextWindow.hpp
|
---|
113 |
|
---|
114 | COMMANDLINEUISOURCE = \
|
---|
115 | CommandLineUI/Query/AtomCommandLineQuery.cpp \
|
---|
116 | CommandLineUI/Query/AtomsCommandLineQuery.cpp \
|
---|
117 | CommandLineUI/Query/BooleanCommandLineQuery.cpp \
|
---|
118 | CommandLineUI/Query/BoxCommandLineQuery.cpp \
|
---|
119 | CommandLineUI/Query/DoubleCommandLineQuery.cpp \
|
---|
120 | CommandLineUI/Query/DoublesCommandLineQuery.cpp \
|
---|
121 | CommandLineUI/Query/ElementCommandLineQuery.cpp \
|
---|
122 | CommandLineUI/Query/ElementsCommandLineQuery.cpp \
|
---|
123 | CommandLineUI/Query/EmptyCommandLineQuery.cpp \
|
---|
124 | CommandLineUI/Query/FileCommandLineQuery.cpp \
|
---|
125 | CommandLineUI/Query/IntCommandLineQuery.cpp \
|
---|
126 | CommandLineUI/Query/IntsCommandLineQuery.cpp \
|
---|
127 | CommandLineUI/Query/MoleculeCommandLineQuery.cpp \
|
---|
128 | CommandLineUI/Query/MoleculesCommandLineQuery.cpp \
|
---|
129 | CommandLineUI/Query/StringCommandLineQuery.cpp \
|
---|
130 | CommandLineUI/Query/StringsCommandLineQuery.cpp \
|
---|
131 | CommandLineUI/Query/VectorCommandLineQuery.cpp \
|
---|
132 | CommandLineUI/Query/VectorsCommandLineQuery.cpp \
|
---|
133 | CommandLineUI/CommandLineDialog.cpp \
|
---|
134 | CommandLineUI/CommandLineParser.cpp \
|
---|
135 | CommandLineUI/CommandLineStatusIndicator.cpp \
|
---|
136 | CommandLineUI/CommandLineUIFactory.cpp \
|
---|
137 | CommandLineUI/CommandLineWindow.cpp \
|
---|
138 | CommandLineUI/TypeEnumContainer.cpp
|
---|
139 |
|
---|
140 | COMMANDLINEUIHEADER = \
|
---|
141 | CommandLineUI/CommandLineDialog.hpp \
|
---|
142 | CommandLineUI/CommandLineParser.hpp \
|
---|
143 | CommandLineUI/CommandLineStatusIndicator.hpp \
|
---|
144 | CommandLineUI/CommandLineUIFactory.hpp \
|
---|
145 | CommandLineUI/CommandLineWindow.hpp \
|
---|
146 | CommandLineUI/TypeEnumContainer.cpp
|
---|
147 |
|
---|
148 | lib_LTLIBRARIES = libMolecuilderUI-@MOLECUILDER_API_VERSION@.la
|
---|
149 | libMolecuilderUI_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
---|
150 | libMolecuilderUI_LIBS = \
|
---|
151 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la
|
---|
152 |
|
---|
153 | nobase_libMolecuilderUI_include_HEADERS = ${UIHEADER}
|
---|
154 |
|
---|
155 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
156 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
157 | ## will therefore be treated as if it were literally part of the target name,
|
---|
158 | ## and the variable name derived from that.
|
---|
159 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
160 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
161 | ## from each source file. Note that it is not necessary to list header files
|
---|
162 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
163 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_SOURCES = ${UISOURCE}
|
---|
164 |
|
---|
165 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
166 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
167 | ## that all version information is kept in one place.
|
---|
168 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
169 |
|
---|
170 | ## The generated configuration header is installed in its own subdirectory of
|
---|
171 | ## $(libdir). The reason for this is that the configuration information put
|
---|
172 | ## into this header file describes the target platform the installed library
|
---|
173 | ## has been built for. Thus the file must not be installed into a location
|
---|
174 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
175 | ## Hierarchy Standard (FHS).
|
---|
176 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
177 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
178 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
179 | ## configuration header file is generated at configure time and should not be
|
---|
180 | ## shipped with the source tarball.
|
---|
181 | libMolecuilderUI_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
---|
182 | nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
183 |
|
---|
184 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
185 | ## architecture-dependent package configuration information. Occasionally,
|
---|
186 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
187 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
188 | pkgconfigdir = $(libdir)/pkgconfig
|
---|
189 | pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc
|
---|
190 |
|
---|
191 | unity.cpp:
|
---|
192 | echo "" > unity.cpp; \
|
---|
193 | list='$(UISOURCE)'; for file in $$list; do \
|
---|
194 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
195 | done;
|
---|
196 |
|
---|
197 | MOSTLYCLEANFILES = unity.cpp
|
---|