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 test-activation-forking.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-pending-call-dispatch test-pending-call-timeout test-threads-init test-ids test-shutdown test-privserver test-privserver-client 20 21 AM_CPPFLAGS = -DDBUS_STATIC_BUILD 22 test_pending_call_dispatch_SOURCES = \ 23 test-pending-call-dispatch.c 24 25 test_pending_call_dispatch_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) 26 test_pending_call_dispatch_LDFLAGS=@R_DYNAMIC_LDFLAG@ 27 28 test_pending_call_timeout_SOURCES = \ 29 test-pending-call-timeout.c 30 31 test_pending_call_timeout_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) 32 test_pending_call_timeout_LDFLAGS=@R_DYNAMIC_LDFLAG@ 33 34 test_threads_init_SOURCES = \ 35 test-threads-init.c 36 37 test_threads_init_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) 38 test_threads_init_LDFLAGS=@R_DYNAMIC_LDFLAG@ 39 40 test_ids_SOURCES = \ 41 test-ids.c 42 43 test_ids_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) 44 test_ids_LDFLAGS=@R_DYNAMIC_LDFLAG@ 45 46 test_shutdown_SOURCES = \ 47 test-shutdown.c 48 49 test_shutdown_CFLAGS= 50 test_shutdown_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) 51 test_shutdown_LDFLAGS=@R_DYNAMIC_LDFLAG@ 52 53 test_privserver_SOURCES = \ 54 test-privserver.c 55 56 test_privserver_CFLAGS= 57 test_privserver_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) 58 test_privserver_LDFLAGS=@R_DYNAMIC_LDFLAG@ 59 60 test_privserver_client_SOURCES = \ 61 test-privserver-client.c 62 63 test_privserver_client_CFLAGS= 64 test_privserver_client_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) 65 test_privserver_client_LDFLAGS=@R_DYNAMIC_LDFLAG@ 66 67 endif 68