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