3 # Time-stamp: <2008-01-06 10:18:49 (djcb)>
5 SUBDIRS= $(MODEST_TOOLKIT_DIR) widgets $(dbus_api)
6 DIST_SUBDIRS = widgets gtk hildon2 dbus_api
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) \
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\"
28 BUILT_SOURCES = modest-marshal.c modest-marshal.h
30 modest-marshal.c: modest-marshal.list
31 glib-genmarshal --body --prefix=modest_marshal < modest-marshal.list > modest-marshal.c
33 modest-marshal.h: modest-marshal.list
34 glib-genmarshal --header --prefix=modest_marshal < modest-marshal.list > modest-marshal.h
36 noinst_LTLIBRARIES = libmodest.la
42 # NOTE: $(addressbook) will be modest-addressbook-dummy.c
43 # if no real addressbook has been defined (configure.ac)
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 \
54 modest-local-folder-info.h \
55 modest-mail-operation.h \
56 modest-mail-operation-queue.h \
60 modest-plugin-ui-actions.h \
62 modest-protocol-registry.h \
63 modest-server-account-settings.h \
66 modest-tny-account-store.h \
68 modest-tny-local-folders-account.h \
69 modest-tny-send-queue.h \
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 \
82 modest-count-stream.c \
83 modest-count-stream.h \
84 modest-datetime-formatter.c \
85 modest-datetime-formatter.h \
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 \
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 \
111 modest-plugin-factory.c \
112 modest-plugin-factory.h \
115 modest-progress-object.c \
116 modest-progress-object.h \
118 modest-protocol-registry.c \
119 modest-runtime-priv.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 \
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 \
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
164 if MODEST_USE_DUMMY_ADDRESS_BOOK
165 libmodest_la_SOURCES += modest-address-book-dummy.c
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) \
179 $(MODEST_LIBTIME_LIBS) \
181 widgets/libmodest-widgets.la \
182 $(MODEST_TOOLKIT_DIR)/libmodest-ui.la
183 libmodest_la_LDFLAGS = -rdynamic -no-undefined
185 if MODEST_HAVE_DBUS_API
186 libmodest_la_LIBADD += dbus_api/libmodest-dbus-api.la
190 modest_includedir = $(includedir)/modest-plugin-1.0/
191 modest_include_HEADERS = $(modest_public_headers)
193 modest_SOURCES = modest-main.c
195 modest_DEPENDENCIES = \
198 modest_CFLAGS = $(MAEMO_LAUNCHER_CFLAGS)
199 modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
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) \
210 $(MODEST_LIBTIME_LIBS) \
214 modest_LDFLAGS = $(MAEMO_LAUNCHER_MODEST_LDFLAGS) -Wl,--version-script=export.map
216 # modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
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)
225 PROVIDER_DATA_FILE=fallback-provider-data.keyfile
226 providerdatadir=$(datadir)/modest/provider-data
227 providerdata_DATA = $(PROVIDER_DATA_FILE)
229 EXTRA_DIST=modest-marshal.list \
230 $(MMC_MAPPING_FILE) \
231 $(PROVIDER_DATA_FILE)
233 pkgconfigdir = $(libdir)/pkgconfig
234 pkgconfig_DATA = modest-plugin-1.0.pc
236 DISTCLEANFILES = $(pkgconfig_DATA)