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