1c73b8771ff1fd1d01674a3394fbdf1927a89bc1
[platform/upstream/dbus.git] / test / name-test / Makefile.am
1 INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) $(DBUS_TEST_CFLAGS) -DDBUS_COMPILATION
2
3 ## note that TESTS has special meaning (stuff to use in make check)
4 ## so if adding tests not to be run in make check, don't add them to 
5 ## TESTS
6 if DBUS_BUILD_TESTS
7 TESTS_ENVIRONMENT=DBUS_TOP_BUILDDIR=@abs_top_builddir@ DBUS_TOP_SRCDIR=@abs_top_srcdir@
8 TESTS=run-test.sh run-test-systemserver.sh
9 else
10 TESTS=
11 endif
12
13 EXTRA_DIST=run-test.sh run-test-systemserver.sh test-wait-for-echo.py
14
15 if DBUS_BUILD_TESTS
16
17 ## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
18 ## build even when not doing "make check"
19 noinst_PROGRAMS=test-names test-pending-call-dispatch test-pending-call-timeout test-threads-init test-ids test-shutdown test-privserver test-privserver-client
20
21 test_names_SOURCES=                             \
22         test-names.c
23
24 test_names_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_TEST_LIBS)
25 test_names_LDFLAGS=@R_DYNAMIC_LDFLAG@
26
27 test_pending_call_dispatch_SOURCES =            \
28         test-pending-call-dispatch.c
29
30 test_pending_call_dispatch_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_TEST_LIBS)
31 test_pending_call_dispatch_LDFLAGS=@R_DYNAMIC_LDFLAG@
32
33 test_pending_call_timeout_SOURCES =             \
34         test-pending-call-timeout.c
35
36 test_pending_call_timeout_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_TEST_LIBS)
37 test_pending_call_timeout_LDFLAGS=@R_DYNAMIC_LDFLAG@
38
39 test_threads_init_SOURCES =            \
40         test-threads-init.c
41
42 test_threads_init_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_TEST_LIBS)
43 test_threads_init_LDFLAGS=@R_DYNAMIC_LDFLAG@
44
45 test_ids_SOURCES =            \
46         test-ids.c
47
48 test_ids_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_TEST_LIBS)
49 test_ids_LDFLAGS=@R_DYNAMIC_LDFLAG@
50
51 test_shutdown_SOURCES =            \
52         test-shutdown.c
53
54 test_shutdown_CFLAGS=
55 test_shutdown_LDADD=$(top_builddir)/dbus/libdbus-convenience.la ../libdbus-testutils.la $(DBUS_TEST_LIBS)
56 test_shutdown_LDFLAGS=@R_DYNAMIC_LDFLAG@
57
58 test_privserver_SOURCES =            \
59         test-privserver.c
60
61 test_privserver_CFLAGS=
62 test_privserver_LDADD=$(top_builddir)/dbus/libdbus-convenience.la ../libdbus-testutils.la $(DBUS_TEST_LIBS)
63 test_privserver_LDFLAGS=@R_DYNAMIC_LDFLAG@
64
65 test_privserver_client_SOURCES =            \
66         test-privserver-client.c
67
68 test_privserver_client_CFLAGS=
69 test_privserver_client_LDADD=$(top_builddir)/dbus/libdbus-convenience.la ../libdbus-testutils.la $(DBUS_TEST_LIBS)
70 test_privserver_client_LDFLAGS=@R_DYNAMIC_LDFLAG@
71
72 endif