Refactor part of ModestWindow and ModestHildon2Window
[modest] / src / Makefile.am
1 #
2 # Makefile.am
3 # Time-stamp: <2008-01-06 10:18:49 (djcb)>
4
5 SUBDIRS= $(MODEST_TOOLKIT_DIR) widgets $(dbus_api)
6 DIST_SUBDIRS = widgets gnome maemo hildon2 dbus_api
7
8 INCLUDES=\
9         $(MODEST_GSTUFF_CFLAGS)                                 \
10         $(MODEST_PLATFORM_CFLAGS)                               \
11         $(MODEST_TOOLKIT_CFLAGS)                                \
12         $(MODEST_PLUGIN_DEFINES)                                \
13         $(MODEST_OGS_CFLAGS)                                    \
14         $(MODEST_HILDON_HELP_CFLAGS)                            \
15         $(MODEST_LIBCONIC_CFLAGS)                               \
16         $(MODEST_HILDON_NOTIFY_CFLAGS)                          \
17         $(MODEST_MOZEMBED_CFLAGS)                               \
18         -fPIC                                                   \
19         -I$(MODEST_TOOLKIT_DIR)                                 \
20         -DPREFIX=\"@prefix@\"                                   \
21         -DMODEST_LOCALEDIR=\"$(MODEST_LOCALEDIR)\"              \
22         -DMODEST_PLATFORM=\"$(MODEST_PLATFORM)\"                \
23         -DMODEST_TOOLKIT=\"$(MODEST_TOOLKIT)\"          \
24         -DPIXMAP_PREFIX=\"${datadir}/pixmaps/modest/\"          \
25         -DMODEST_UIDIR=\"$(datadir)/modest/ui/\"                \
26         -DMODEST_MAILPLUGINDIR=\"$(libdir)/modest/mail-plugins\"
27
28 BUILT_SOURCES = modest-marshal.c modest-marshal.h
29
30 modest-marshal.c: modest-marshal.list
31         glib-genmarshal --body --prefix=modest_marshal < modest-marshal.list > modest-marshal.c
32
33 modest-marshal.h: modest-marshal.list
34         glib-genmarshal --header --prefix=modest_marshal < modest-marshal.list > modest-marshal.h
35
36 noinst_LTLIBRARIES = libmodest.la
37
38 bin_PROGRAMS=\
39         modest
40
41 #
42 # NOTE: $(addressbook) will be modest-addressbook-dummy.c
43 # if no real addressbook has been defined (configure.ac)
44 #
45
46 modest_public_headers = \
47         modest-account-mgr.h \
48         modest-account-mgr-helpers.h \
49         modest-account-protocol.h \
50         modest-account-settings.h \
51         modest-cache-mgr.h \
52         modest-conf.h \
53         modest-defs.h \
54         modest-local-folder-info.h \
55         modest-mail-operation.h \
56         modest-mail-operation-queue.h \
57         modest-pair.h \
58         modest-platform.h \
59         modest-plugin.h \
60         modest-plugin-ui-actions.h \
61         modest-protocol.h \
62         modest-protocol-registry.h \
63         modest-server-account-settings.h \
64         modest-signal-mgr.h \
65         modest-text-utils.h \
66         modest-tny-account-store.h \
67         modest-tny-folder.h \
68         modest-tny-local-folders-account.h \
69         modest-tny-send-queue.h \
70         modest-utils.h
71
72 libmodest_la_SOURCES=\
73         $(modest_public_headers) \
74         modest-account-mgr-helpers.c \
75         modest-account-mgr-priv.h \
76         modest-account-mgr.c \
77         modest-account-protocol.c \
78         modest-account-settings.c \
79         modest-address-book.h \
80         modest-cache-mgr.c \
81         modest-conf.c \
82         modest-count-stream.c \
83         modest-count-stream.h \
84         modest-datetime-formatter.c \
85         modest-datetime-formatter.h \
86         modest-debug.h \
87         modest-defs.c \
88         modest-dimming-rule.c \
89         modest-dimming-rule.h \
90         modest-dimming-rules-group.c \
91         modest-dimming-rules-group.h \
92         modest-email-clipboard.h \
93         modest-email-clipboard.c \
94         modest-error.h \
95         modest-formatter.c \
96         modest-formatter.h \
97         modest-init.c \
98         modest-init.h \
99         modest-local-folder-info.c \
100         modest-mail-operation-queue.c \
101         modest-mail-operation-queue.h \
102         modest-mail-operation.c \
103         modest-mail-operation.h \
104         modest-main.c \
105         modest-marshal.c \
106         modest-marshal.h \
107         modest-module.c \
108         modest-module.h \
109         modest-pair.c \
110         modest-plugin.c \
111         modest-plugin-factory.c \
112         modest-plugin-factory.h \
113         modest-presets.c \
114         modest-presets.h \
115         modest-progress-object.c \
116         modest-progress-object.h \
117         modest-protocol.c \
118         modest-protocol-registry.c \
119         modest-runtime-priv.h \
120         modest-runtime.c \
121         modest-runtime.h \
122         modest-search.c \
123         modest-search.h \
124         modest-signal-mgr.c \
125         modest-signal-mgr.h \
126         modest-singletons.c \
127         modest-singletons.h \
128         modest-server-account-settings.c \
129         modest-text-utils.c \
130         modest-tny-account-store.c \
131         modest-tny-account.c \
132         modest-tny-account.h \
133         modest-tny-folder.c \
134         modest-tny-local-folders-account.c \
135         modest-tny-mime-part.c \
136         modest-tny-mime-part.h \
137         modest-tny-msg.c \
138         modest-tny-msg.h \
139         modest-tny-outbox-account.c \
140         modest-tny-outbox-account.h \
141         modest-tny-platform-factory.c \
142         modest-tny-platform-factory.h \
143         modest-tny-send-queue.c \
144         modest-tny-send-queue.h \
145         modest-transport-account-decorator.c \
146         modest-transport-account-decorator.h \
147         modest-stream-text-to-html.c \
148         modest-stream-text-to-html.h \
149         modest-stream-html-to-text.c \
150         modest-stream-html-to-text.h \
151         modest-ui-actions.c \
152         modest-ui-actions.h \
153         modest-ui-dimming-manager.c \
154         modest-ui-dimming-manager.h \
155         modest-ui-dimming-rules.c \
156         modest-ui-dimming-rules.h \
157         modest-utils.c \
158         modest-widget-memory-priv.h \
159         modest-widget-memory.c \
160         modest-widget-memory.h \
161         modest-default-connection-policy.c \
162         modest-default-connection-policy.h 
163
164 if MODEST_USE_DUMMY_ADDRESS_BOOK
165 libmodest_la_SOURCES += modest-address-book-dummy.c
166 endif
167
168
169 libmodest_la_CFLAGS  = $(MAEMO_LAUNCHER_CFLAGS)
170 libmodest_la_LIBADD =                                           \
171         $(MAEMO_LAUNCHER_LIBS)                          \
172         $(MODEST_GSTUFF_LIBS)                           \
173         $(MODEST_MOZEMBED_LIBS)                         \
174         $(MODEST_PLATFORM_LIBS)                         \
175         $(MODEST_TOOLKIT_LIBS)                  \
176         $(MODEST_HILDON_HELP_LIBS)                      \
177         $(MODEST_HILDON_NOTIFY_LIBS)                    \
178         $(MODEST_OGS_LIBS)                              \
179         $(MODEST_LIBTIME_LIBS)                          \
180         ${easysetupmaybe} \
181         widgets/libmodest-widgets.la                    \
182         $(MODEST_TOOLKIT_DIR)/libmodest-ui.la
183 libmodest_la_LDFLAGS = -rdynamic -no-undefined
184
185 if MODEST_HAVE_DBUS_API
186 libmodest_la_LIBADD +=  dbus_api/libmodest-dbus-api.la
187 endif
188
189
190 modest_includedir = $(includedir)/modest-plugin-1.0/
191 modest_include_HEADERS = $(modest_public_headers)
192
193 modest_SOURCES = modest-main.c
194
195 modest_DEPENDENCIES = \
196         libmodest.la
197
198 modest_CFLAGS = $(MAEMO_LAUNCHER_CFLAGS)
199 modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
200 modest_LDADD = \
201         $(filter-out $(modest_UNWANTED), \
202         $(MAEMO_LAUNCHER_LIBS)                          \
203         $(MODEST_GSTUFF_LIBS)                           \
204         $(MODEST_MOZEMBED_LIBS)                         \
205         $(MODEST_PLATFORM_LIBS)                         \
206         $(MODEST_TOOLKIT_LIBS)                  \
207         $(MODEST_HILDON_HELP_LIBS)                      \
208         $(MODEST_HILDON_NOTIFY_LIBS)                    \
209         $(MODEST_OGS_LIBS)                              \
210         $(MODEST_LIBTIME_LIBS)                          \
211         ${easysetupmaybe}                               \
212         libmodest.la)
213
214 modest_LDFLAGS = $(MAEMO_LAUNCHER_MODEST_LDFLAGS) -Wl,--version-script=export.map
215
216 # modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
217
218
219 # mcc_mapping may be provided by the operator-wizard-settings package:
220 # the one here is a copy, as that package is not available in chinook
221 MMC_MAPPING_FILE=mcc_mapping
222 mmccmappingdir=$(datadir)/modest/provider-data
223 mmccmapping_DATA = $(MMC_MAPPING_FILE)
224
225 PROVIDER_DATA_FILE=fallback-provider-data.keyfile
226 providerdatadir=$(datadir)/modest/provider-data
227 providerdata_DATA = $(PROVIDER_DATA_FILE)
228
229 EXTRA_DIST=modest-marshal.list \
230         $(MMC_MAPPING_FILE) \
231         $(PROVIDER_DATA_FILE)
232
233 pkgconfigdir = $(libdir)/pkgconfig
234 pkgconfig_DATA = modest-plugin-1.0.pc
235
236 DISTCLEANFILES = $(pkgconfig_DATA)