]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Drop EmpathyContactFactory
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -I$(top_builddir)                               \
5         -DDATADIR=\""$(datadir)"\"                      \
6         -DLOCALEDIR=\""$(datadir)/locale"\"             \
7         $(LIBEMPATHY_CFLAGS)                            \
8         $(WARN_CFLAGS)                                  \
9         $(DISABLE_DEPRECATED)
10
11 BUILT_SOURCES =                                         \
12         empathy-marshal.h                               \
13         empathy-marshal.c                               \
14         empathy-marshal.list                            \
15         empathy-enum-types.h                            \
16         empathy-enum-types.c
17
18 lib_LTLIBRARIES = libempathy.la
19
20 libempathy_la_SOURCES =                                 \
21         empathy-account-manager.c                       \
22         empathy-chatroom.c                              \
23         empathy-chatroom-manager.c                      \
24         empathy-call-factory.c                          \
25         empathy-call-handler.c                          \
26         empathy-contact.c                               \
27         empathy-contact-groups.c                        \
28         empathy-contact-list.c                          \
29         empathy-contact-manager.c                       \
30         empathy-contact-monitor.c                       \
31         empathy-debug.c                                 \
32         empathy-dispatcher.c                            \
33         empathy-dispatch-operation.c                    \
34         empathy-idle.c                                  \
35         empathy-irc-network.c                           \
36         empathy-irc-network-manager.c                   \
37         empathy-irc-server.c                            \
38         empathy-log-manager.c                           \
39         empathy-log-store.c                             \
40         empathy-log-store-empathy.c                     \
41         empathy-message.c                               \
42         empathy-status-presets.c                        \
43         empathy-time.c                                  \
44         empathy-tp-call.c                               \
45         empathy-tp-chat.c                               \
46         empathy-tp-contact-factory.c                    \
47         empathy-tp-contact-list.c                       \
48         empathy-tp-file.c                               \
49         empathy-tp-group.c                              \
50         empathy-tp-roomlist.c                           \
51         empathy-tp-tube.c                               \
52         empathy-tube-handler.c                          \
53         empathy-utils.c
54
55 # do not distribute generated files
56 nodist_libempathy_la_SOURCES =\
57         $(BUILT_SOURCES)
58
59 libempathy_la_LIBADD =          \
60         $(top_builddir)/extensions/libemp-extensions.la \
61         $(LIBEMPATHY_LIBS)
62
63 libempathy_la_LDFLAGS =         \
64        -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
65        -export-symbols-regex ^empathy_
66
67 libempathy_headers =                            \
68         empathy-account-manager.h               \
69         empathy-chatroom.h                      \
70         empathy-chatroom-manager.h              \
71         empathy-call-factory.h                  \
72         empathy-call-handler.h                  \
73         empathy-contact.h                       \
74         empathy-contact-groups.h                \
75         empathy-contact-list.h                  \
76         empathy-contact-manager.h               \
77         empathy-contact-monitor.h               \
78         empathy-debug.h                         \
79         empathy-dispatcher.h                    \
80         empathy-dispatch-operation.h            \
81         empathy-idle.h                          \
82         empathy-irc-network.h                   \
83         empathy-irc-network-manager.h           \
84         empathy-irc-server.h                    \
85         empathy-log-manager.h                   \
86         empathy-log-store.h                     \
87         empathy-log-store-empathy.h             \
88         empathy-message.h                       \
89         empathy-status-presets.h                \
90         empathy-time.h                          \
91         empathy-tp-call.h                       \
92         empathy-tp-chat.h                       \
93         empathy-tp-contact-factory.h            \
94         empathy-tp-contact-list.h               \
95         empathy-tp-file.h                       \
96         empathy-tp-group.h                      \
97         empathy-tp-roomlist.h                   \
98         empathy-tp-tube.h                       \
99         empathy-tube-handler.h                  \
100         empathy-types.h                         \
101         empathy-utils.h
102
103 libempathy_includedir = $(includedir)/libempathy/
104 libempathy_include_HEADERS =                    \
105         $(libempathy_headers)                   \
106         empathy-enum-types.h
107
108 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
109         ( cd $(srcdir) && \
110         sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
111         $(libempathy_la_SOURCES) ) \
112         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
113         if cmp -s $@.tmp $@; then \
114                 rm $@.tmp; \
115         else \
116                 mv $@.tmp $@; \
117         fi
118
119 %-marshal.h: %-marshal.list Makefile
120         $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
121
122 %-marshal.c: %-marshal.list Makefile
123         echo "#include \"empathy-marshal.h\"" > $@ && \
124         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
125
126 empathy-enum-types.h: stamp-empathy-enum-types.h
127         @true
128 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
129         (cd $(srcdir) \
130         && glib-mkenums \
131                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
132                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
133                         --fhead "#include <glib-object.h>\n\n" \
134                         --fhead "G_BEGIN_DECLS\n\n" \
135                         --ftail "G_END_DECLS\n\n" \
136                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
137                         --fprod "#include <libempathy/@filename@>\n" \
138                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
139                         --eprod "GType @enum_name@_get_type (void);\n" \
140                 $(libempathy_headers) ) > xgen-gth \
141         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
142         && rm -f xgen-gth \
143         && echo timestamp > $(@F)
144
145 empathy-enum-types.c: $(libempathy_headers) Makefile
146         (cd $(srcdir) \
147         && glib-mkenums \
148                         --fhead "#include <config.h>\n" \
149                         --fhead "#include <glib-object.h>\n" \
150                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
151                         --fprod "\n/* enumerations from \"@filename@\" */" \
152                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
153                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
154                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
155                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
156                         --vtail "  static GType type = 0;\n\n" \
157                         --vtail "  if (!type)\n" \
158                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
159                         --vtail "  return type;\n}\n\n" \
160                 $(libempathy_headers) ) > xgen-gtc \
161         && cp xgen-gtc $(@F) \
162         && rm -f xgen-gtc
163
164 dtddir = $(datadir)/empathy
165 dtd_DATA =                                      \
166         empathy-status-presets.dtd              \
167         empathy-contact-groups.dtd              \
168         empathy-chatroom-manager.dtd            \
169         empathy-irc-networks.dtd
170
171 stylesheetdir = $(datadir)/empathy
172 stylesheet_DATA =               \
173         empathy-log-manager.xsl
174
175 ircnetworksdir = $(datadir)/empathy
176 ircnetworks_DATA =              \
177         irc-networks.xml
178
179 pkgconfigdir = $(libdir)/pkgconfig
180 pkgconfig_DATA = libempathy.pc
181
182 EXTRA_DIST =                    \
183         empathy-marshal.list    \
184         $(stylesheet_DATA)      \
185         $(dtd_DATA)             \
186         $(ircnetworks_DATA)
187
188 CLEANFILES =                            \
189         $(BUILT_SOURCES)                \
190         stamp-empathy-enum-types.h