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/TextMenu.cpp \
|
---|
22 | Menu/MenuItem.cpp \
|
---|
23 | Menu/SubMenuItem.cpp \
|
---|
24 | Menu/ActionMenuItem.cpp \
|
---|
25 | Menu/SeperatorItem.cpp \
|
---|
26 | Menu/DisplayMenuItem.cpp
|
---|
27 |
|
---|
28 | MENUHEADER = \
|
---|
29 | Menu/Menu.hpp \
|
---|
30 | Menu/TextMenu.hpp \
|
---|
31 | Menu/MenuItem.hpp \
|
---|
32 | Menu/SubMenuItem.hpp \
|
---|
33 | Menu/ActionMenuItem.hpp \
|
---|
34 | Menu/SeperatorItem.hpp \
|
---|
35 | Menu/DisplayMenuItem.hpp
|
---|
36 |
|
---|
37 | UISOURCE = \
|
---|
38 | ${ACTIONSSOURCE} \
|
---|
39 | ${COMMANDLINEUISOURCE} \
|
---|
40 | ${MENUSOURCE} \
|
---|
41 | ${TEXTUISOURCE} \
|
---|
42 | ${VIEWSOURCE} \
|
---|
43 | Dialog.cpp \
|
---|
44 | MainWindow.cpp
|
---|
45 |
|
---|
46 | UIHEADER = \
|
---|
47 | ${ACTIONSHEADER} \
|
---|
48 | ${COMMANDLINEUIHEADER} \
|
---|
49 | ${MENUHEADER} \
|
---|
50 | ${TEXTUIHEADER} \
|
---|
51 | ${VIEWHEADER} \
|
---|
52 | Dialog.hpp \
|
---|
53 | MainWindow.hpp
|
---|
54 |
|
---|
55 | TEXTUISOURCE = \
|
---|
56 | TextUI/TextDialog.cpp \
|
---|
57 | TextUI/TextStatusIndicator.cpp \
|
---|
58 | TextUI/TextUIFactory.cpp \
|
---|
59 | TextUI/TextWindow.cpp
|
---|
60 | TEXTUIHEADER = \
|
---|
61 | TextUI/TextDialog.hpp \
|
---|
62 | TextUI/TextStatusIndicator.hpp \
|
---|
63 | TextUI/TextUIFactory.hpp \
|
---|
64 | TextUI/TextWindow.hpp
|
---|
65 |
|
---|
66 | COMMANDLINEUISOURCE = \
|
---|
67 | CommandLineUI/CommandLineDialog.cpp \
|
---|
68 | CommandLineUI/CommandLineStatusIndicator.cpp \
|
---|
69 | CommandLineUI/CommandLineUIFactory.cpp \
|
---|
70 | CommandLineUI/CommandLineWindow.cpp
|
---|
71 | COMMANDLINEUIHEADER = \
|
---|
72 | CommandLineUI/CommandLineDialog.hpp \
|
---|
73 | CommandLineUI/CommandLineStatusIndicator.hpp \
|
---|
74 | CommandLineUI/CommandLineUIFactory.hpp \
|
---|
75 | CommandLineUI/CommandLineWindow.hpp
|
---|
76 |
|
---|
77 | lib_LTLIBRARIES = libMolecuilderUI-@MOLECUILDER_API_VERSION@.la
|
---|
78 | libMolecuilderUI_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
---|
79 | libMolecuilderUI_LIBS = \
|
---|
80 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la
|
---|
81 |
|
---|
82 | nobase_libMolecuilderUI_include_HEADERS = ${UIHEADER}
|
---|
83 |
|
---|
84 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
85 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
86 | ## will therefore be treated as if it were literally part of the target name,
|
---|
87 | ## and the variable name derived from that.
|
---|
88 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
89 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
90 | ## from each source file. Note that it is not necessary to list header files
|
---|
91 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
92 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_SOURCES = ${UISOURCE}
|
---|
93 |
|
---|
94 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
95 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
96 | ## that all version information is kept in one place.
|
---|
97 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
98 |
|
---|
99 | ## The generated configuration header is installed in its own subdirectory of
|
---|
100 | ## $(libdir). The reason for this is that the configuration information put
|
---|
101 | ## into this header file describes the target platform the installed library
|
---|
102 | ## has been built for. Thus the file must not be installed into a location
|
---|
103 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
104 | ## Hierarchy Standard (FHS).
|
---|
105 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
106 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
107 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
108 | ## configuration header file is generated at configure time and should not be
|
---|
109 | ## shipped with the source tarball.
|
---|
110 | libMolecuilderUI_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
---|
111 | nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
112 |
|
---|
113 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
114 | ## architecture-dependent package configuration information. Occasionally,
|
---|
115 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
116 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
117 | pkgconfigdir = $(libdir)/pkgconfig
|
---|
118 | pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc
|
---|
119 |
|
---|
120 | unity.cpp:
|
---|
121 | echo "" > unity.cpp; \
|
---|
122 | list='$(UISOURCE)'; for file in $$list; do \
|
---|
123 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
124 | done;
|
---|
125 |
|
---|
126 | MOSTLYCLEANFILES = unity.cpp
|
---|