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