aboutsummaryrefslogtreecommitdiffstats
path: root/mail/Makefile.am
blob: a1aee01a84ff95f4e13c62ecc930f62696a75b7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
bin_PROGRAMS =  evolution-mail

noinst_PROGRAMS = test-mail #test-thread

providerdir = $(libdir)/evolution/camel-providers/$(VERSION)

INCLUDES = \
    -I$(top_srcdir)/widgets             \
    -I$(top_srcdir)/widgets/e-text          \
    -I$(top_srcdir)                 \
    -I$(top_srcdir)/camel               \
    -I$(top_builddir)/shell             \
    -I$(top_srcdir)/shell               \
    $(BONOBO_HTML_GNOME_CFLAGS)         \
    $(GNOME_VFS_CFLAGS)             \
    $(UNICODE_CFLAGS)               \
    $(GTKHTML_CFLAGS)               \
    -DEVOLUTION_VERSION=\""$(VERSION)"\"        \
    -DEVOLUTION_GLADEDIR=\""$(gladedir)"\"      \
    -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\"      \
    -DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\"   \
    -DEVOLUTION_DATADIR=\""$(datadir)"\"            \
    -DCAMEL_PROVIDERDIR=\""$(providerdir)"\"    \
    -DG_LOG_DOMAIN=\"evolution-mail\"       \
    $(THREADS_CFLAGS)

EVOLUTION_MAIL_CORBA_GENERATED = \
    Mail.h          \
    Mail-common.c       \
    Mail-skels.c        \
    Mail-stubs.c

# FIXME Is there any way around having to do this?
CAMEL_OBJS_EXTRA =                  \
    $(top_builddir)/camel/providers/vee/libcamelvee.la

evolution_mail_SOURCES =        \
    $(EVOLUTION_MAIL_CORBA_GENERATED)   \
    component-factory.c     \
    component-factory.h     \
    folder-browser.c        \
    folder-browser.h        \
    folder-browser-factory.c    \
    folder-browser-factory.h    \
    mail-autofilter.c       \
    mail-autofilter.h       \
    mail-callbacks.c        \
    mail-config.c           \
    mail-config.h           \
    mail-config-gui.c       \
    mail-config-gui.h       \
    mail-crypto.c           \
    mail-display.c          \
    mail-display.h          \
    mail-format.c           \
    mail-identify.c         \
    mail-local.c            \
    mail-local.h            \
    mail-local-storage.c        \
    mail-local-storage.h        \
    mail-mlist-magic.c      \
    mail-mlist-magic.h      \
    mail-ops.c          \
    mail-ops.h          \
    mail-threads.c          \
    mail-threads.h          \
    mail-tools.c            \
    mail-tools.h            \
    mail-types.h            \
    mail-vfolder.c          \
    mail-vfolder.h          \
    mail-view.c         \
    main.c              \
    message-list.c          \
    message-list.h          \
    message-thread.c        \
    message-thread.h        \
    session.c           \
    mail.h

evolution_mail_LDADD =                  \
    $(top_builddir)/shell/libeshell.a       \
    $(top_builddir)/composer/libcomposer.la     \
    $(top_builddir)/widgets/e-paned/libepaned.a \
    $(top_builddir)/widgets/misc/libemiscwidgets.a  \
    $(top_builddir)/widgets/e-table/libetable.a \
    $(top_builddir)/widgets/e-text/libetext.a   \
    $(CAMEL_OBJS_EXTRA)             \
    $(top_builddir)/camel/libcamel.la       \
    $(top_builddir)/e-util/libeutil.la      \
    $(top_builddir)/libibex/libibex.la      \
    $(top_builddir)/filter/libfilter.la     \
    $(BONOBO_VFS_GNOME_LIBS)            \
    $(GTKHTML_LIBS)                 \
    $(THREADS_LIBS)                 \
    $(UNICODE_LIBS)

test_mail_SOURCES = \
    test-mail.c

test_mail_LDADD = \
    $(BONOBO_HTML_GNOME_LIBS)

#test_thread_SOURCES =  \
#   mail-threads.c  \
#   mail-threads.h  \
#   test-thread.c
#
#test_thread_LDADD =                \
#   $(top_builddir)/camel/libcamel.la   \
#   $(top_builddir)/e-util/libeutil.la  \
#   $(top_builddir)/libibex/libibex.la  \
#   $(BONOBO_HTML_GNOME_LIBS)       \
#   $(UNICODE_LIBS)             \
#   $(THREADS_LIBS)
#
#test_thread_CFLAGS = -g $(THREADS_CFLAGS)

oafdir = $(datadir)/oaf
oaf_DATA = evolution-mail.oafinfo

gladedir   = $(datadir)/evolution/glade
glade_DATA = mail-config.glade mail-config-druid.glade local-config.glade

iconsdir = $(datadir)/images/evolution

$(EVOLUTION_MAIL_CORBA_GENERATED): Mail.idl 
    $(ORBIT_IDL) -I$(datadir)/idl -I`$(GNOME_CONFIG) --cflags idl` -I`$(GNOME_CONFIG) --datadir`/idl -I$(srcdir) $(srcdir)/Mail.idl

EXTRA_DIST = Mail.idl $(glade_DATA) $(oaf_DATA)

if ENABLE_PURIFY
PLINK = $(LIBTOOL) --mode=link $(PURIFY) $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@

all-local: evolution-mail.pure

evolution-mail.pure: evolution-mail
    @rm -f evolution-mail.pure
    $(PLINK) $(evolution_mail_LDFLAGS) $(evolution_mail_OBJECTS) $(evolution_mail_LDADD) $(LIBS)

endif