hexchat/src/common/dbus/Makefile.am

36 lines
940 B
Makefile
Raw Permalink Normal View History

noinst_LIBRARIES = libhexchatdbus.a
libhexchatdbus_a_SOURCES = \
2011-02-23 22:14:30 -05:00
dbus-plugin.c \
dbus-plugin.h \
dbus-client.c \
dbus-client.h
EXTRA_DIST = \
remote-object.xml \
example.py \
2014-01-20 02:38:32 -05:00
org.hexchat.service.service.in
2011-02-23 22:14:30 -05:00
BUILT_SOURCES = \
remote-object-glue.h
CLEANFILES = $(BUILT_SOURCES)
2014-09-06 10:44:52 -04:00
AM_CPPFLAGS = $(COMMON_CFLAGS) $(DBUS_CFLAGS) -I$(top_srcdir)/src/common
2011-02-23 22:14:30 -05:00
noinst_PROGRAMS = example
example_SOURCES = example.c
2011-02-23 22:14:30 -05:00
example_LDADD = $(DBUS_LIBS) $(GLIB_LIBS)
remote-object-glue.h: remote-object.xml
2014-01-14 01:18:15 -05:00
$(AM_V_GEN) $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=remote_object --mode=glib-server --output=$@ $<
2011-02-23 22:14:30 -05:00
# Dbus service file
servicedir = $(DBUS_SERVICES_DIR)
service_in_files = org.hexchat.service.service.in
2011-02-23 22:14:30 -05:00
service_DATA = $(service_in_files:.service.in=.service)
# Rule to make the service file with bindir expanded
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|\@bindir\@|$(bindir)|" $< > $@