2003-08-14 Havoc Pennington <hp@redhat.com>
[platform/upstream/dbus.git] / glib / Makefile.am
1 INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) -DDBUS_COMPILATION=1
2
3 dbusincludedir=$(includedir)/dbus-1.0/dbus
4
5 lib_LTLIBRARIES=libdbus-glib-1.la
6
7 dbusinclude_HEADERS=                            \
8         dbus-glib.h                             \
9         dbus-gproxy.h
10
11 libdbus_glib_1_la_SOURCES =                     \
12         dbus-gmain.c                            \
13         dbus-gproxy.c                           \
14         dbus-gthread.c
15
16 libdbus_glib_1_la_LIBADD= $(DBUS_GLIB_LIBS) $(top_builddir)/dbus/libdbus-1.la
17
18 bin_PROGRAMS=dbus-glib-compiler
19
20 dbus_glib_compiler_SOURCES =                    \
21         dbus-gidl.c                             \
22         dbus-gidl.h                             \
23         dbus-compiler-main.c
24
25 dbus_glib_compiler_LDADD= libdbus-glib-1.la $(DBUS_GLIB_LIBS) $(top_builddir)/dbus/libdbus-1.la
26
27 if DBUS_BUILD_TESTS
28
29 if HAVE_GLIB_THREADS
30 THREAD_APPS=test-thread-server test-thread-client test-profile
31
32 test_thread_server_SOURCES=                             \
33         test-thread-server.c                            \
34         test-thread.h
35
36 test_thread_server_LDADD= $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/glib/libdbus-glib-1.la 
37
38 test_thread_client_SOURCES=                             \
39         test-thread-client.c                            \
40         test-thread.h
41
42 test_thread_client_LDADD= $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/glib/libdbus-glib-1.la 
43 endif
44
45 noinst_PROGRAMS= test-dbus-glib $(THREAD_APPS)
46
47 test_dbus_glib_SOURCES=                         \
48         test-dbus-glib.c
49
50 test_dbus_glib_LDADD= $(top_builddir)/glib/libdbus-glib-1.la
51
52 else
53 ### not building tests
54
55 if HAVE_GLIB_THREADS
56 noinst_PROGRAMS=test-profile
57 endif
58
59 endif
60
61 if HAVE_GLIB_THREADS
62 test_profile_SOURCES=                           \
63         test-profile.c
64
65 test_profile_LDADD= $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/glib/libdbus-glib-1.la 
66 endif