mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-01 21:08:18 +02:00
so distcheck doesn't fail * glib/examples/Makefile.am: Add example-service.xml and example-signal-emitter.xml to EXTRA_DIST so distcheck doesn't fail * glib/examples/statemachine/Makefile.am: Add statemachine.xml and statemachine-server.xml to EXTRA_DIST so distcheck doesn't fail * python/Makefile.am: Preprend $(srcdir)/ to source files so the compiler looks in the right places during distcheck
35 lines
1.4 KiB
Makefile
35 lines
1.4 KiB
Makefile
INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) $(DBUS_GTK_THREADS_CFLAGS) -DDBUS_COMPILATION
|
|
|
|
## Makefile.am bits for sample client/server pair
|
|
|
|
noinst_PROGRAMS= statemachine-server
|
|
|
|
if HAVE_GTK
|
|
noinst_PROGRAMS += statemachine-client
|
|
endif
|
|
|
|
EXTRA_DIST = statemachine.h statemachine-server.h sm-marshal.list statemachine-server.xml statemachine.xml
|
|
|
|
statemachine_server_SOURCES= statemachine-server.c sm-marshal.c statemachine.c
|
|
statemachine_server_LDADD= $(top_builddir)/glib/libdbus-glib-1.la
|
|
|
|
statemachine_client_SOURCES= statemachine-client.c sm-marshal.c statemachine.h
|
|
statemachine_client_LDADD= $(top_builddir)/glib/libdbus-glib-1.la $(DBUS_GTK_THREADS_LIBS)
|
|
|
|
BUILT_SOURCES = statemachine-server-glue.h statemachine-glue.h
|
|
|
|
statemachine-server-glue.h: statemachine-server.xml
|
|
libtool --mode=execute $(top_builddir)/glib/dbus-binding-tool --prefix=sm_server --mode=glib-server --output=$@ $<
|
|
|
|
statemachine-glue.h: statemachine.xml
|
|
libtool --mode=execute $(top_builddir)/glib/dbus-binding-tool --prefix=sm_object --mode=glib-server --output=$@ $<
|
|
|
|
sm-marshal.c: Makefile sm-marshal.list
|
|
@GLIB_GENMARSHAL@ --prefix=sm_marshal $(srcdir)/sm-marshal.list --header --body > $@.tmp && mv $@.tmp $@
|
|
|
|
sm-marshal.h: Makefile sm-marshal.list
|
|
@GLIB_GENMARSHAL@ --prefix=sm_marshal $(srcdir)/sm-marshal.list --header > $@.tmp && mv $@.tmp $@
|
|
|
|
BUILT_SOURCES += sm-marshal.c sm-marshal.h
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|