ab62fb8af8443eaeac031d154084b67394e5a5c7
[modest] / src / Makefile.am
1 #
2 # Makefile.am
3 # Time-stamp: <2008-01-06 10:18:49 (djcb)>
4
5 SUBDIRS=$(MODEST_PLATFORM) widgets $(dbus_api)
6
7 DIST_SUBDIRS = widgets gnome maemo dbus_api
8
9 INCLUDES=\
10         $(MODEST_GSTUFF_CFLAGS)\
11         $(MODEST_PLATFORM_CFLAGS) \
12         $(MODEST_HILDON_WIDGETS_CFLAGS) \
13         $(MODEST_OGS_CFLAGS) \
14         $(MODEST_HILDON_HELP_CFLAGS) \
15         $(MODEST_LIBCONIC_CFLAGS) \
16         $(MODEST_HILDON_NOTIFY_CFLAGS) \
17         $(MODEST_MOZEMBED_CFLAGS) \
18         -I$(MODEST_PLATFORM) \
19         -DPREFIX=\"@prefix@\" \
20         -DMAEMO_CHANGES \
21         -DMODEST_LOCALEDIR=\"$(MODEST_LOCALEDIR)\" \
22         -DMODEST_PLATFORM=\"$(MODEST_PLATFORM)\" \
23         -DPIXMAP_PREFIX=\"${datadir}/pixmaps/modest/\" \
24         -DMODEST_UIDIR=\"$(datadir)/modest/ui/\"
25
26 BUILT_SOURCES = modest-marshal.c modest-marshal.h
27
28 modest-marshal.c: modest-marshal.list
29         glib-genmarshal --body --prefix=modest_marshal < modest-marshal.list > modest-marshal.c
30
31 modest-marshal.h: modest-marshal.list
32         glib-genmarshal --header --prefix=modest_marshal < modest-marshal.list > modest-marshal.h
33
34 bin_PROGRAMS=\
35         modest
36
37 #
38 # NOTE: $(addressbook) will be modest-addressbook-dummy.c
39 # if no real addressbook has been defined (configure.ac)
40 #
41 modest_SOURCES=\
42         modest-account-mgr-helpers.c \
43         modest-account-mgr-helpers.h \
44         modest-account-mgr-priv.h \
45         modest-account-mgr.c \
46         modest-account-mgr.h \
47         modest-account-settings.c \
48         modest-account-settings.h \
49         modest-address-book.h \
50         modest-cache-mgr.c \
51         modest-cache-mgr.h \
52         modest-conf.c \
53         modest-conf.h \
54         modest-count-stream.c \
55         modest-count-stream.h \
56         modest-defs.h \
57         modest-debug.h \
58         modest-dimming-rule.c \
59         modest-dimming-rule.h \
60         modest-dimming-rules-group.c \
61         modest-dimming-rules-group.h \
62         modest-email-clipboard.c \
63         modest-email-clipboard.h \
64         modest-error.h \
65         modest-formatter.c \
66         modest-formatter.h \
67         modest-init.c \
68         modest-init.h \
69         modest-local-folder-info.c \
70         modest-local-folder-info.h \
71         modest-mail-operation-queue.c \
72         modest-mail-operation-queue.h \
73         modest-mail-operation.c \
74         modest-mail-operation.h \
75         modest-main.c \
76         modest-marshal.c \
77         modest-marshal.h \
78         modest-pair.c \
79         modest-pair.h \
80         modest-platform.h \
81         modest-platform.h \
82         modest-progress-object.c \
83         modest-progress-object.h \
84         modest-protocol-info.c \
85         modest-protocol-info.h \
86         modest-runtime-priv.h \
87         modest-runtime.c \
88         modest-runtime.h \
89         modest-search.c \
90         modest-search.h \
91         modest-signal-mgr.c \
92         modest-signal-mgr.h \
93         modest-singletons.c \
94         modest-singletons.h \
95         modest-server-account-settings.c \
96         modest-server-account-settings.h \
97         modest-text-utils.c \
98         modest-text-utils.h \
99         modest-tny-account-store.c \
100         modest-tny-account-store.h \
101         modest-tny-account.c \
102         modest-tny-account.h \
103         modest-tny-folder.c \
104         modest-tny-folder.h \
105         modest-tny-local-folders-account.c \
106         modest-tny-local-folders-account.h \
107         modest-tny-mime-part.c \
108         modest-tny-mime-part.h \
109         modest-tny-msg.c \
110         modest-tny-msg.h \
111         modest-tny-outbox-account.c \
112         modest-tny-outbox-account.h \
113         modest-tny-platform-factory.c \
114         modest-tny-platform-factory.h \
115         modest-tny-send-queue.c \
116         modest-tny-send-queue.h \
117         modest-transport-account-decorator.c \
118         modest-transport-account-decorator.h \
119         modest-stream-text-to-html.c \
120         modest-stream-text-to-html.h \
121         modest-ui-actions.c \
122         modest-ui-actions.h \
123         modest-ui-dimming-manager.c \
124         modest-ui-dimming-manager.h \
125         modest-ui-dimming-rules.c \
126         modest-ui-dimming-rules.h \
127         modest-utils.c \
128         modest-utils.h \
129         modest-widget-memory-priv.h \
130         modest-widget-memory.c \
131         modest-widget-memory.h \
132         modest-default-connection-policy.c \
133         modest-default-connection-policy.h 
134
135 if MODEST_USE_DUMMY_ADDRESS_BOOK
136 modest_SOURCES += modest-address-book-dummy.c
137 endif 
138
139
140 modest_CFLAGS  = $(MAEMO_LAUNCHER_CFLAGS)
141 modest_LDFLAGS = -Wl,--version-script=export.map
142
143 modest_UNWANTED = -export-dynamic -Wl,--export-dynamic
144 modest_LDADD =                                          \
145         $(filter-out $(modest_UNWANTED),                \
146         $(MAEMO_LAUNCHER_LIBS)                          \
147         $(MODEST_GSTUFF_LIBS)                           \
148         $(MODEST_MOZEMBED_LIBS)                         \
149         $(MODEST_PLATFORM_LIBS)                         \
150         $(MODEST_HILDON_WIDGETS_LIBS)                   \
151         $(MODEST_HILDON_HELP_LIBS)                      \
152         $(MODEST_HILDON_NOTIFY_LIBS)                    \
153         $(MODEST_OGS_LIBS)                              \
154         ${easysetupmaybe}                               \
155         $(MODEST_PLATFORM)/libmodest-ui.la              \
156         widgets/libmodest-widgets.la)
157
158
159 if MODEST_HAVE_DBUS_API
160 modest_LDADD += dbus_api/libmodest-dbus-api.la
161 endif
162
163 EXTRA_DIST=modest-marshal.list