aboutsummaryrefslogtreecommitdiffstats
path: root/composer/Makefile.am
blob: 106e03b62c2e7de635373b6defe55ce6c4744e72 (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
## CORBA stuff

IDLS =              \
    Evolution-Composer.idl  \
    Composer.idl

IDL_GENERATED =         \
    Composer.h      \
    Composer-common.c   \
    Composer-skels.c    \
    Composer-stubs.c

HTML_EDITOR_GENERATED =     \
    Editor.h        \
    Editor-common.c \
    Editor-skels.c  \
    Editor-stubs.c

selectnamesdir = $(top_srcdir)/addressbook/gui/component/select-names

$(IDL_GENERATED): $(IDLS) $(selectnamesdir)/Evolution-Addressbook-SelectNames.idl
    $(ORBIT_IDL) -I $(srcdir) -I $(datadir)/idl $(IDL_INCLUDES) \
        -I $(selectnamesdir)  $(srcdir)/Composer.idl

Editor-commmon.c: $(GTKHTML_DATADIR)/Editor.idl

$(HTML_EDITOR_GENERATED): $(GTKHTML_DATADIR)/Editor.idl
    $(ORBIT_IDL) -I $(srcdir) $(IDL_INCLUDES) -I $(GTKHTML_DATADIR)/gtkhtml $(GTKHTML_DATADIR)/Editor.idl

##

composer-marshal.h: composer-marshal.list
    ( @GLIB_GENMARSHAL@ --prefix=e_msg_composer_marshal composer-marshal.list --header > composer-marshal.tmp \
    && mv composer-marshal.tmp composer-marshal.h ) \
    || ( rm -f composer-marshal.tmp && exit 1 )
composer-marshal.c: composer-marshal.h
    ( @GLIB_GENMARSHAL@ --prefix=e_msg_composer_marshal composer-marshal.list --body > composer-marshal.tmp \
    && mv composer-marshal.tmp composer-marshal.c ) \
    || ( rm -f composer-marshal.tmp && exit 1 )

$(libcomposer_la_OBJECTS): composer-marshal.h

##

idl_DATA = $(IDLS)

gladedir = $(datadir)/evolution-$(BASE_VERSION)/glade
glade_DATA =                    \
    e-msg-composer-attachment.glade

iconsdir = $(datadir)/evolution-$(BASE_VERSION)/images

noinst_LIBRARIES = libcomposer.a

INCLUDES =                              \
    -I$(top_srcdir)                         \
    -I$(top_builddir)                       \
    -I$(top_srcdir)/widgets                     \
    -I$(top_builddir)/widgets                   \
    -I$(top_srcdir)/camel                       \
    -I$(top_builddir)/camel                     \
    -I$(top_srcdir)/addressbook/backend             \
    -I$(top_builddir)/addressbook/backend               \
    -I$(top_builddir)/addressbook/gui/component/select-names    \
    -I$(top_builddir)/shell                     \
    -I$(top_srcdir)/shell                       \
    -DEVOLUTION_DATADIR=\"$(datadir)\"              \
    -DEVOLUTION_ICONSDIR=\"$(iconsdir)\"                \
    -DEVOLUTION_UIDIR=\"$(evolutionuidir)\"             \
    -DE_GLADEDIR=\"$(gladedir)\"                    \
    -DG_LOG_DOMAIN=\"composer\"                 \
    -DG_DISABLE_DEPRECATED                      \
    -DGTK_DISABLE_DEPRECATED                    \
    $(EVOLUTION_MAIL_CFLAGS)

libcomposer_a_SOURCES =             \
    $(IDL_GENERATED)            \
    $(HTML_EDITOR_GENERATED)        \
    composer-marshal.c          \
    e-msg-composer-attachment-bar.c     \
    e-msg-composer-attachment-bar.h     \
    e-msg-composer-attachment.c     \
    e-msg-composer-attachment.h     \
    e-msg-composer-hdrs.c           \
    e-msg-composer-hdrs.h           \
    e-msg-composer-select-file.c        \
    e-msg-composer-select-file.h        \
    e-msg-composer.c            \
    e-msg-composer.h            \
    e-icon-list.c               \
    e-icon-list.h               \
    evolution-composer.c            \
    evolution-composer.h            \
    listener.c              \
    listener.h

EXTRA_DIST =                    \
    $(glade_DATA)               \
    $(IDLS)                 \
    composer-marshal.list           \
    bad-icon.xpm

BUILT_SOURCES = $(IDL_GENERATED) $(HTML_EDITOR_GENERATED)
CLEANFILES = $(BUILT_SOURCES)

dist-hook:
    cd $(distdir); rm -f $(BUILT_SOURCES)