d53450c196b0345d1decd3be1242ad8f929b5876
[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-defs.c \
87         modest-dimming-rule.c \
88         modest-dimming-rule.h \
89         modest-dimming-rules-group.c \
90         modest-dimming-rules-group.h \
91         modest-email-clipboard.h \
92         modest-email-clipboard.c \
93         modest-error.h \
94         modest-formatter.c \
95         modest-formatter.h \
96         modest-init.c \
97         modest-init.h \
98         modest-local-folder-info.c \
99         modest-local-folder-info.h \
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-progress-object.c \
114         modest-progress-object.h \
115         modest-protocol.c \
116         modest-protocol-registry.c \
117         modest-runtime-priv.h \
118         modest-runtime.c \
119         modest-runtime.h \
120         modest-search.c \
121         modest-search.h \
122         modest-signal-mgr.c \
123         modest-signal-mgr.h \
124         modest-singletons.c \
125         modest-singletons.h \
126         modest-server-account-settings.c \
127         modest-text-utils.c \
128         modest-tny-account-store.c \
129         modest-tny-account.c \
130         modest-tny-account.h \
131         modest-tny-folder.c \
132         modest-tny-folder.h \
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 -export-dynamic -no-undefined
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_UNWANTED = -export-dynamic -Wl,--export-dynamic
196 modest_LDADD = \
197         $(filter-out $(modest_UNWANTED),                \
198         $(MAEMO_LAUNCHER_LIBS)                          \
199         $(MODEST_GSTUFF_LIBS)                           \
200         $(MODEST_MOZEMBED_LIBS)                         \
201         $(MODEST_PLATFORM_LIBS)                         \
202         $(MODEST_TOOLKIT_LIBS)                          \
203         $(MODEST_HILDON_HELP_LIBS)                      \
204         $(MODEST_HILDON_NOTIFY_LIBS)                    \
205         $(MODEST_OGS_LIBS)                              \
206         ${easysetupmaybe}                               \
207         libmodest.la)
208
209 modest_LDFLAGS = -Wl,--version-script=export.map
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)