File: Makefile.am

package info (click to toggle)
dbus-glib 0.114-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,096 kB
  • sloc: ansic: 23,493; sh: 4,634; makefile: 630; xml: 441
file content (47 lines) | stat: -rw-r--r-- 1,518 bytes parent folder | download | duplicates (2)
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
AM_CPPFLAGS = \
	-I$(top_srcdir)				\
	-I$(top_builddir)			\
	-I$(top_builddir)/dbus			\
	$(DBUS_CFLAGS)				\
	$(GLIB_CFLAGS)				\
	$(DBUS_GTK_THREADS_CFLAGS)		\
	-DDBUS_COMPILATION

LDADD = $(top_builddir)/dbus/libdbus-glib-1.la \
	$(GLIB_LIBS)

## 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_client_SOURCES= statemachine-client.c sm-marshal.c statemachine.h
#statemachine_client_LDADD= $(LDADD) $(DBUS_GTK_THREADS_LIBS)

BUILT_SOURCES = statemachine-server-glue.h statemachine-glue.h

statemachine-server-glue.h: statemachine-server.xml
	$(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=sm_server --mode=glib-server --output=$@ $<

statemachine-glue.h: statemachine.xml
	$(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=sm_object --mode=glib-server --output=$@ $<

sm-marshal.c: Makefile sm-marshal.list
	echo "#include <config.h>" > $@.tmp
	echo "#include \"sm-marshal.h\"" >> $@.tmp
	$(GLIB_GENMARSHAL) --prefix=sm_marshal $(srcdir)/sm-marshal.list --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)