aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/Makefile.am
blob: 269eef7ca9718f0bfbab5c7c14f3dc62d11186fc (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
142
143
144
145
146
147
148
149
SUBDIRS = . ename

eutilincludedir = $(privincludedir)/e-util
econdincludedir = $(privincludedir)/e-conduit
edb3includedir  = $(privincludedir)/e-db3util

INCLUDES =                              \
    -I$(top_srcdir)                         \
    -DEVOLUTION_IMAGES=\""$(imagesdir)"\"               \
    -DEVOLUTION_CATEGORY_ICONS=\""$(imagesdir)/categories"\"    \
    -DG_LOG_DOMAIN=\"e-utils\"                  \
    -DG_DISABLE_DEPRECATED                      \
    -DGTK_DISABLE_DEPRECATED                    \
    $(DB3_CFLAGS)                           \
    $(GNOME_PILOT_CFLAGS)                       \
    $(E_UTIL_CFLAGS)

privlib_LTLIBRARIES = libeutil.la libedb3util.la libeconduit.la
noinst_LTLIBRARIES = libeutil-static.la libeconduit-static.la

eutilinclude_HEADERS =              \
    e-account-list.h            \
    e-account.h             \
    e-categories-config.h           \
    e-categories-master-list-wombat.h   \
    e-component-listener.h          \
    e-config-listener.h         \
    e-corba-utils.h             \
    e-dialog-utils.h            \
    e-dialog-widgets.h          \
    e-gtk-utils.h               \
    e-gui-utils.h               \
    e-host-utils.h              \
    e-html-utils.h              \
    e-iterator.h                \
    e-lang-utils.h              \
    e-list-iterator.h           \
    e-list.h                \
    e-memory.h              \
    e-mktemp.h              \
    e-msgport.h             \
    e-passwords.h               \
    e-path.h                \
    e-proxy.h               \
    e-request.h             \
    e-sexp.h                \
    e-time-utils.h              \
    e-trie.h                \
    e-url.h                 \
    e-xml-hash-utils.h          \
    md5-utils.h

libeutil_la_SOURCES =               \
    $(eutilinclude_HEADERS)         \
    e-account-list.c            \
    e-account.c             \
    e-categories-config.c           \
    e-categories-master-list-wombat.c   \
    e-component-listener.c          \
    e-config-listener.c         \
    e-corba-utils.c             \
    e-dialog-utils.c            \
    e-dialog-widgets.c          \
    e-gtk-utils.c               \
    e-gui-utils.c               \
    e-host-utils.c              \
    e-html-utils.c              \
    e-iterator.c                \
    e-lang-utils.c              \
    e-list-iterator.c           \
    e-list.c                \
    e-memory.c              \
    e-mktemp.c              \
    e-msgport.c             \
    e-passwords.c               \
    e-path.c                \
    e-proxy.c               \
    e-request.c             \
    e-sexp.c                \
    e-time-utils.c              \
    e-trie.c                \
    e-url.c                 \
    e-util-marshal.c            \
    e-xml-hash-utils.c          \
    md5-utils.c

# GLib marshalling cruft

e-util-marshal.h: e-util-marshal.list
    ( @GLIB_GENMARSHAL@ --prefix=e_util_marshal e-util-marshal.list --header > e-util-marshal.h.tmp \
    && mv e-util-marshal.h.tmp e-util-marshal.h ) \
    || ( rm -f e-util-marshal.h.tmp && exit 1 )

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

MARSHAL_GENERATED = e-util-marshal.c e-util-marshal.h


# FIXME TODO
#   e-passwords.c
#       bonobo-factory-util.[ch]

libeutil_la_LIBADD = $(E_UTIL_LIBS)

libeutil_static_la_SOURCES = $(libeutil_la_SOURCES)
libeutil_static_la_LIBADD  = $(libeutil_la_LIBADD)
libeutil_static_la_LDFLAGS = -all-static
# Make sure libeutil.la and libeutil-static.la are not built in
# parallel when using a parallel make; libtool can't handle that.
libeutil_static_la_DEPENDENCIES = libeutil.la

econdinclude_HEADERS =      \
    e-pilot-map.h       \
    e-pilot-settings.h  \
    e-pilot-util.h

pilot_sources = \
    $(econdinclude_HEADERS) \
    e-pilot-map.c       \
    e-pilot-settings.c  \
    e-pilot-util.c

if ENABLE_PILOT_CONDUITS
pilot_compile = $(pilot_sources)
else
pilot_compile = 
endif

libeconduit_la_SOURCES = $(pilot_compile)

libeconduit_static_la_SOURCES = $(libeconduit_la_SOURCES)
libeconduit_static_la_LDFLAGS = -all-static

EXTRA_DIST = $(pilot_sources) e-util-marshal.list

edb3include_HEADERS =           \
    e-db3-utils.h           \
    e-dbhash.h

libedb3util_la_SOURCES =        \
    $(edb3include_HEADERS)      \
    e-db3-utils.c           \
    e-dbhash.c

BUILT_SOURCES = $(MARSHAL_GENERATED)
CLEANFILES    = $(BUILT_SOURCES)