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