* make osso-addressbook (libosso-abook-dev) optional; if it's
[modest] / src / Makefile.am
1 #
2 # Makefile.am
3 # Time-stamp: <2007-10-26 12:47:06 (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_HILDON_NOTIFY_CFLAGS) \
16         $(MODEST_MOZEMBED_CFLAGS) \
17         -I$(MODEST_PLATFORM) \
18         -DPREFIX=\"@prefix@\" \
19         -DMAEMO_CHANGES \
20         -DMODEST_LOCALEDIR=\"$(MODEST_LOCALEDIR)\" \
21         -DMODEST_PLATFORM=\"$(MODEST_PLATFORM)\" \
22         -DPIXMAP_PREFIX=\"${datadir}/pixmaps/modest/\" \
23         -DMODEST_UIDIR=\"$(datadir)/modest/ui/\"
24
25 BUILT_SOURCES = modest-marshal.c modest-marshal.h
26
27 modest-marshal.c: modest-marshal.list
28         glib-genmarshal --body --prefix=modest_marshal < modest-marshal.list > modest-marshal.c
29
30 modest-marshal.h: modest-marshal.list
31         glib-genmarshal --header --prefix=modest_marshal < modest-marshal.list > modest-marshal.h
32
33 bin_PROGRAMS=\
34         modest
35
36 #
37 # NOTE: $(addressbook) will be modest-addressbook-dummy.c
38 # if no real addressbook has been defined (configure.ac)
39 #
40 modest_SOURCES=\
41         modest-account-mgr-helpers.c \
42         modest-account-mgr-helpers.h \
43         modest-account-mgr-priv.h \
44         modest-account-mgr.c \
45         modest-account-mgr.h \
46         modest-address-book.h \
47         modest-cache-mgr.c \
48         modest-cache-mgr.h \
49         modest-conf.c \
50         modest-conf.h \
51         modest-defs.h \
52         modest-dimming-rule.c \
53         modest-dimming-rule.h \
54         modest-dimming-rules-group.c \
55         modest-dimming-rules-group.h \
56         modest-email-clipboard.c \
57         modest-email-clipboard.h \
58         modest-error.h \
59         modest-formatter.c \
60         modest-formatter.h \
61         modest-init.c \
62         modest-init.h \
63         modest-local-folder-info.c \
64         modest-local-folder-info.h \
65         modest-mail-operation-queue.c \
66         modest-mail-operation-queue.h \
67         modest-mail-operation.c \
68         modest-mail-operation.h \
69         modest-main.c \
70         modest-marshal.c \
71         modest-marshal.h \
72         modest-pair.c \
73         modest-pair.h \
74         modest-platform.h \
75         modest-platform.h \
76         modest-progress-object.c \
77         modest-progress-object.h \
78         modest-protocol-info.c \
79         modest-protocol-info.h \
80         modest-runtime-priv.h \
81         modest-runtime.c \
82         modest-runtime.h \
83         modest-search.c \
84         modest-search.h \
85         modest-signal-mgr.c \
86         modest-signal-mgr.h \
87         modest-singletons.c \
88         modest-singletons.h \
89         modest-text-utils.c \
90         modest-text-utils.h \
91         modest-tny-account-store.c \
92         modest-tny-account-store.h \
93         modest-tny-account.c \
94         modest-tny-account.h \
95         modest-tny-folder.c \
96         modest-tny-folder.h \
97         modest-tny-local-folders-account.c \
98         modest-tny-local-folders-account.h \
99         modest-tny-msg.c \
100         modest-tny-msg.h \
101         modest-tny-outbox-account.c \
102         modest-tny-outbox-account.h \
103         modest-tny-platform-factory.c \
104         modest-tny-platform-factory.h \
105         modest-tny-send-queue.c \
106         modest-tny-send-queue.h \
107         modest-ui-actions.c \
108         modest-ui-actions.h \
109         modest-ui-dimming-manager.c \
110         modest-ui-dimming-manager.h \
111         modest-ui-dimming-rules.c \
112         modest-ui-dimming-rules.h \
113         modest-widget-memory-priv.h \
114         modest-widget-memory.c \
115         modest-widget-memory.h 
116
117 if MODEST_USE_DUMMY_ADDRESS_BOOK
118 modest_SOURCES += modest-address-book-dummy.c
119 endif 
120
121
122 modest_CFLAGS  = $(MAEMO_LAUNCHER_CFLAGS)
123 modest_LDFLAGS = $(MAEMO_LAUNCHER_LDFLAGS)
124
125 modest_LDADD =                                          \
126         $(MODEST_GSTUFF_LIBS)                           \
127         $(MODEST_MOZEMBED_LIBS)                                 \
128         $(MODEST_PLATFORM_LIBS)                         \
129         $(MODEST_HILDON_WIDGETS_LIBS)                   \
130         $(MODEST_HILDON_HELP_LIBS)                      \
131         $(MODEST_HILDON_NOTIFY_LIBS)                    \
132         $(MODEST_OGS_LIBS)                              \
133         ${easysetupmaybe}                               \
134         $(MODEST_PLATFORM)/libmodest-ui.la              \
135         widgets/libmodest-widgets.la \
136         dbus_api/libmodest-dbus-api.la
137
138 EXTRA_DIST=modest-marshal.list