summaryrefslogtreecommitdiff
path: root/glib/Makefile.am
blob: 6d81e7d15a3da6b6569aed9aa5e7d1750d589ca4 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) $(DBUS_GLIB_TOOL_CFLAGS) -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\"

lib_LTLIBRARIES=libdbus-glib-1.la

libdbus_glib_1_la_SOURCES = 			\
	dbus-glib.c				\
	dbus-gmain.c				\
	dbus-gmarshal.c				\
	dbus-gmarshal.h				\
	dbus-gobject.c				\
	dbus-gobject.h				\
	dbus-gproxy.c				\
	dbus-gtest.c				\
	dbus-gtest.h				\
	dbus-gthread.c				\
	dbus-gutils.c				\
	dbus-gutils.h				\
	dbus-gvalue.c				\
	dbus-gvalue.h

libdbus_glib_1_la_LIBADD= $(DBUS_GLIB_LIBS) $(top_builddir)/dbus/libdbus-1.la
## don't export symbols that start with "_" (we use this 
## convention for internal symbols)
libdbus_glib_1_la_LDFLAGS= -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

# convenience lib used here and by dbus-viewer
noinst_LTLIBRARIES=libdbus-gtool.la

libdbus_gtool_la_SOURCES =			\
	dbus-gidl.c				\
	dbus-gidl.h				\
	dbus-gloader-expat.c			\
	dbus-gparser.c				\
	dbus-gparser.h				\
	dbus-gutils.c				\
	dbus-gutils.h

libdbus_gtool_la_LIBADD = libdbus-glib-1.la

bin_PROGRAMS=dbus-binding-tool

dbus_binding_tool_SOURCES =			\
	dbus-binding-tool-glib.h		\
	dbus-binding-tool-glib.c		\
	dbus-glib-tool.h			\
	dbus-glib-tool.c

dbus_binding_tool_LDADD= -lexpat libdbus-gtool.la

## we just rebuilt these manually and check them into cvs; easier than
## convincing automake/make to do this properly
regenerate-built-sources:
	@GLIB_GENMARSHAL@ --prefix=_dbus_g_marshal dbus-gmarshal.list --header > dbus-gmarshal.h && \
	echo '#include "dbus-gmarshal.h"' > dbus-gmarshal.c &&					    \
        @GLIB_GENMARSHAL@ --prefix=_dbus_g_marshal dbus-gmarshal.list --body >> dbus-gmarshal.c

EXTRA_DIST=dbus-gmarshal.list

if DBUS_BUILD_TESTS

## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
## build even when not doing "make check"
noinst_PROGRAMS= $(TESTS)

## note that TESTS has special meaning (stuff to use in make check)
## so if adding tests not to be run in make check, don't add them to 
## TESTS
TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
TESTS=dbus-glib-test

## FIXME we aren't running dbus-glib-tool --self-test

dbus_glib_test_SOURCES=			\
	dbus-gtest-main.c

dbus_glib_test_LDADD= $(top_builddir)/glib/libdbus-glib-1.la

else
### not building tests
TESTS=

endif