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