This is a manual merge of branch drop split view intro trunk.
[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-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-text-utils.h \
66         modest-tny-account-store.h \
67         modest-tny-local-folders-account.h \
68         modest-utils.h
69
70 libmodest_la_SOURCES=\
71         $(modest_public_headers) \
72         modest-account-mgr-helpers.c \
73         modest-account-mgr-priv.h \
74         modest-account-mgr.c \
75         modest-account-protocol.c \
76         modest-account-settings.c \
77         modest-address-book.h \
78         modest-cache-mgr.c \
79         modest-conf.c \
80         modest-count-stream.c \
81         modest-count-stream.h \
82         modest-datetime-formatter.c \
83         modest-datetime-formatter.h \
84         modest-debug.h \
85         modest-defs.h \
86         modest-dimming-rule.c \
87         modest-dimming-rule.h \
88         modest-dimming-rules-group.c \
89         modest-dimming-rules-group.h \
90         modest-email-clipboard.h \
91         modest-email-clipboard.c \
92         modest-error.h \
93         modest-formatter.c \
94         modest-formatter.h \
95         modest-init.c \
96         modest-init.h \
97         modest-local-folder-info.c \
98         modest-local-folder-info.h \
99         modest-mail-operation-queue.c \
100         modest-mail-operation-queue.h \
101         modest-mail-operation.c \
102         modest-mail-operation.h \
103         modest-main.c \
104         modest-marshal.c \
105         modest-marshal.h \
106         modest-module.c \
107         modest-module.h \
108         modest-pair.c \
109         modest-plugin.c \
110         modest-plugin-factory.c \
111         modest-plugin-factory.h \
112         modest-progress-object.c \
113         modest-progress-object.h \
114         modest-protocol.c \
115         modest-protocol-registry.c \
116         modest-runtime-priv.h \
117         modest-runtime.c \
118         modest-runtime.h \
119         modest-search.c \
120         modest-search.h \
121         modest-signal-mgr.c \
122         modest-signal-mgr.h \
123         modest-singletons.c \
124         modest-singletons.h \
125         modest-server-account-settings.c \
126         modest-text-utils.c \
127         modest-tny-account-store.c \
128         modest-tny-account.c \
129         modest-tny-account.h \
130         modest-tny-folder.c \
131         modest-tny-folder.h \
132         modest-tny-local-folders-account.c \
133         modest-tny-mime-part.c \
134         modest-tny-mime-part.h \
135         modest-tny-msg.c \
136         modest-tny-msg.h \
137         modest-tny-outbox-account.c \
138         modest-tny-outbox-account.h \
139         modest-tny-platform-factory.c \
140         modest-tny-platform-factory.h \
141         modest-tny-send-queue.c \
142         modest-tny-send-queue.h \
143         modest-transport-account-decorator.c \
144         modest-transport-account-decorator.h \
145         modest-stream-text-to-html.c \
146         modest-stream-text-to-html.h \
147         modest-ui-actions.c \
148         modest-ui-actions.h \
149         modest-ui-dimming-manager.c \
150         modest-ui-dimming-manager.h \
151         modest-ui-dimming-rules.c \
152         modest-ui-dimming-rules.h \
153         modest-utils.c \
154         modest-widget-memory-priv.h \
155         modest-widget-memory.c \
156         modest-widget-memory.h \
157         modest-default-connection-policy.c \
158         modest-default-connection-policy.h 
159
160 if MODEST_USE_DUMMY_ADDRESS_BOOK
161 libmodest_la_SOURCES += modest-address-book-dummy.c
162 endif
163
164
165 libmodest_la_CFLAGS  = $(MAEMO_LAUNCHER_CFLAGS)
166 libmodest_la_LIBADD =                                           \
167         $(MAEMO_LAUNCHER_LIBS)                          \
168         $(MODEST_GSTUFF_LIBS)                           \
169         $(MODEST_MOZEMBED_LIBS)                         \
170         $(MODEST_PLATFORM_LIBS)                         \
171         $(MODEST_TOOLKIT_LIBS)                  \
172         $(MODEST_HILDON_HELP_LIBS)                      \
173         $(MODEST_HILDON_NOTIFY_LIBS)                    \
174         $(MODEST_OGS_LIBS)                              \
175         ${easysetupmaybe} \
176         widgets/libmodest-widgets.la                    \
177         $(MODEST_TOOLKIT_DIR)/libmodest-ui.la           
178 libmodest_la_LDFLAGS = -rdynamic -export-dynamic -no-undefined -Wl,--version-script=export.map
179
180 if MODEST_HAVE_DBUS_API
181 libmodest_la_LIBADD +=  dbus_api/libmodest-dbus-api.la
182 endif
183
184
185 modest_includedir = $(includedir)/modest-plugin-1.0/
186 modest_include_HEADERS = $(modest_public_headers)
187
188 modest_SOURCES = modest-main.c
189
190 modest_DEPENDENCIES = \
191         libmodest.la
192
193 modest_CFLAGS = $(MAEMO_LAUNCHER_CFLAGS)
194 modest_LDADD = \
195         $(MAEMO_LAUNCHER_LIBS)                          \
196         $(MODEST_GSTUFF_LIBS)                           \
197         $(MODEST_MOZEMBED_LIBS)                         \
198         $(MODEST_PLATFORM_LIBS)                         \
199         $(MODEST_TOOLKIT_LIBS)                  \
200         $(MODEST_HILDON_HELP_LIBS)                      \
201         $(MODEST_HILDON_NOTIFY_LIBS)                    \
202         $(MODEST_OGS_LIBS)                              \
203         ${easysetupmaybe}                               \
204         libmodest.la
205
206 modest_LDFLAGS = -rdynamic -export-dynamic -no-undefined -Wl,--version-script=export.map
207
208 # modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
209
210
211 EXTRA_DIST=modest-marshal.list
212
213 pkgconfigdir = $(libdir)/pkgconfig
214 pkgconfig_DATA = modest-plugin-1.0.pc
215
216 DISTCLEANFILES = $(pkgconfig_DATA)