Code review: check return value of run account setup wizard
[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 to_remove=\
43         modest-testplugin-protocol.c \
44         modest-testplugin-protocol.h
45
46 #
47 # NOTE: $(addressbook) will be modest-addressbook-dummy.c
48 # if no real addressbook has been defined (configure.ac)
49 #
50
51 modest_public_headers = \
52         modest-account-mgr.h \
53         modest-account-mgr-helpers.h \
54         modest-account-protocol.h \
55         modest-account-settings.h \
56         modest-cache-mgr.h \
57         modest-conf.h \
58         modest-defs.h \
59         modest-local-folder-info.h \
60         modest-pair.h \
61         modest-platform.h \
62         modest-plugin.h \
63         modest-plugin-ui-actions.h \
64         modest-protocol.h \
65         modest-protocol-registry.h \
66         modest-server-account-settings.h \
67         modest-text-utils.h \
68         modest-tny-account-store.h \
69         modest-tny-folder.h \
70         modest-tny-local-folders-account.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-progress-object.c \
115         modest-progress-object.h \
116         modest-protocol.c \
117         modest-protocol-registry.c \
118         modest-runtime-priv.h \
119         modest-runtime.c \
120         modest-runtime.h \
121         modest-search.c \
122         modest-search.h \
123         modest-signal-mgr.c \
124         modest-signal-mgr.h \
125         modest-singletons.c \
126         modest-singletons.h \
127         modest-server-account-settings.c \
128         modest-text-utils.c \
129         modest-tny-account-store.c \
130         modest-tny-account.c \
131         modest-tny-account.h \
132         modest-tny-folder.c \
133         modest-tny-local-folders-account.c \
134         modest-tny-mime-part.c \
135         modest-tny-mime-part.h \
136         modest-tny-msg.c \
137         modest-tny-msg.h \
138         modest-tny-outbox-account.c \
139         modest-tny-outbox-account.h \
140         modest-tny-platform-factory.c \
141         modest-tny-platform-factory.h \
142         modest-tny-send-queue.c \
143         modest-tny-send-queue.h \
144         modest-transport-account-decorator.c \
145         modest-transport-account-decorator.h \
146         modest-stream-text-to-html.c \
147         modest-stream-text-to-html.h \
148         modest-ui-actions.c \
149         modest-ui-actions.h \
150         modest-ui-dimming-manager.c \
151         modest-ui-dimming-manager.h \
152         modest-ui-dimming-rules.c \
153         modest-ui-dimming-rules.h \
154         modest-utils.c \
155         modest-widget-memory-priv.h \
156         modest-widget-memory.c \
157         modest-widget-memory.h \
158         modest-default-connection-policy.c \
159         modest-default-connection-policy.h 
160
161 if MODEST_USE_DUMMY_ADDRESS_BOOK
162 libmodest_la_SOURCES += modest-address-book-dummy.c
163 endif
164
165
166 libmodest_la_CFLAGS  = $(MAEMO_LAUNCHER_CFLAGS)
167 libmodest_la_LIBADD =                                           \
168         $(MAEMO_LAUNCHER_LIBS)                          \
169         $(MODEST_GSTUFF_LIBS)                           \
170         $(MODEST_MOZEMBED_LIBS)                         \
171         $(MODEST_PLATFORM_LIBS)                         \
172         $(MODEST_TOOLKIT_LIBS)                  \
173         $(MODEST_HILDON_HELP_LIBS)                      \
174         $(MODEST_HILDON_NOTIFY_LIBS)                    \
175         $(MODEST_OGS_LIBS)                              \
176         ${easysetupmaybe} \
177         widgets/libmodest-widgets.la                    \
178         $(MODEST_TOOLKIT_DIR)/libmodest-ui.la
179 libmodest_la_LDFLAGS = -rdynamic -no-undefined -Wl,--version-script=export.map
180
181 if MODEST_HAVE_DBUS_API
182 libmodest_la_LIBADD +=  dbus_api/libmodest-dbus-api.la
183 endif
184
185
186 modest_includedir = $(includedir)/modest-plugin-1.0/
187 modest_include_HEADERS = $(modest_public_headers)
188
189 modest_SOURCES = modest-main.c
190
191 modest_DEPENDENCIES = \
192         libmodest.la
193
194 modest_CFLAGS = $(MAEMO_LAUNCHER_CFLAGS)
195 modest_LDADD = \
196         $(MAEMO_LAUNCHER_LIBS)                          \
197         $(MODEST_GSTUFF_LIBS)                           \
198         $(MODEST_MOZEMBED_LIBS)                         \
199         $(MODEST_PLATFORM_LIBS)                         \
200         $(MODEST_TOOLKIT_LIBS)                  \
201         $(MODEST_HILDON_HELP_LIBS)                      \
202         $(MODEST_HILDON_NOTIFY_LIBS)                    \
203         $(MODEST_OGS_LIBS)                              \
204         ${easysetupmaybe}                               \
205         libmodest.la
206
207 modest_LDFLAGS = -rdynamic -no-undefined -Wl,--version-script=export.map
208
209 # modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
210
211
212 EXTRA_DIST=modest-marshal.list
213
214 pkgconfigdir = $(libdir)/pkgconfig
215 pkgconfig_DATA = modest-plugin-1.0.pc
216
217 DISTCLEANFILES = $(pkgconfig_DATA)