4 -DDATADIR=\""$(datadir)"\" \
11 empathy-enum-types.h \
12 empathy-enum-types.c \
13 empathy-filter-glue.h \
14 empathy-chandler-glue.h
16 lib_LTLIBRARIES = libempathy.la
18 libempathy_la_SOURCES = \
26 empathy-chatroom-manager.c \
29 empathy-contact-list.c \
30 empathy-contact-manager.c \
31 empathy-contact-factory.c \
33 empathy-tp-contact-list.c \
35 empathy-tp-chatroom.c \
36 empathy-tp-roomlist.c \
42 # do not distribute generated files
43 nodist_libempathy_la_SOURCES =\
46 libempathy_la_LIBADD = \
49 libempathy_la_LDFLAGS = \
50 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE}
52 libempathy_headers = \
60 empathy-chatroom-manager.h \
63 empathy-contact-list.h \
64 empathy-contact-manager.h \
65 empathy-contact-factory.h \
67 empathy-tp-contact-list.h \
69 empathy-tp-chatroom.h \
70 empathy-tp-roomlist.h \
76 libempathy_includedir = $(includedir)/libempathy/
77 libempathy_include_HEADERS = \
78 $(libempathy_headers) \
81 %-marshal.h: %-marshal.list Makefile.am
82 $(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
84 %-marshal.c: %-marshal.list Makefile.am
85 echo "#include \"empathy-marshal.h\"" > $@ && \
86 $(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< >> $*-marshal.c
88 %-marshal-main.c: %-marshal.c %-marshal.h
90 empathy-chandler-glue.h: empathy-chandler.xml
91 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
92 empathy-filter-glue.h: empathy-filter.xml
93 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
95 empathy-enum-types.h: stamp-empathy-enum-types.h
97 stamp-empathy-enum-types.h: Makefile $(libempathy_headers)
100 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
101 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
102 --fhead "#include <glib-object.h>\n\n" \
103 --fhead "G_BEGIN_DECLS\n\n" \
104 --ftail "G_END_DECLS\n\n" \
105 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
106 --fprod "#include <libempathy/@filename@>\n" \
107 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
108 --eprod "GType @enum_name@_get_type (void);\n" \
109 $(libempathy_headers) ) > xgen-gth \
110 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
112 && echo timestamp > $(@F)
114 empathy-enum-types.c: Makefile $(libempathy_headers)
117 --fhead "#include <config.h>\n" \
118 --fhead "#include <glib-object.h>\n" \
119 --fhead "#include \"empathy-enum-types.h\"\n\n" \
120 --fprod "\n/* enumerations from \"@filename@\" */" \
121 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
122 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
123 --vtail " { 0, NULL, NULL }\n};\n\n" \
124 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
125 --vtail " static GType type = 0;\n\n" \
126 --vtail " if (!type)\n" \
127 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
128 --vtail " return type;\n}\n\n" \
129 $(libempathy_headers) ) > xgen-gtc \
130 && cp xgen-gtc $(@F) \
133 dtddir = $(datadir)/empathy
135 empathy-chatroom-manager.dtd
137 stylesheetdir = $(datadir)/empathy
139 empathy-log-manager.xsl
141 pkgconfigdir = $(libdir)/pkgconfig
142 pkgconfig_DATA = libempathy.pc
145 empathy-marshal.list \
146 empathy-chandler.xml \
153 stamp-empathy-enum-types.h