X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fname-test%2FMakefile.am;h=6aaf1783502524050e4097f367297da5f6a2bbd0;hb=bf3d8259ac89ee4fe86b3f9e6df71f6e71e07fd2;hp=45c21d46d09f3c8ea7f519280f55d3a1eadd015f;hpb=bdfec550544d353e60228b0553534467cbb36a06;p=platform%2Fupstream%2Fdbus.git diff --git a/test/name-test/Makefile.am b/test/name-test/Makefile.am index 45c21d4..6aaf178 100644 --- a/test/name-test/Makefile.am +++ b/test/name-test/Makefile.am @@ -1,4 +1,12 @@ -INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) $(DBUS_TEST_CFLAGS) -DDBUS_COMPILATION +# Everything in this directory is statically-linked to libdbus-internal +AM_CPPFLAGS = \ + -I$(top_srcdir) \ + -DDBUS_COMPILATION \ + -DDBUS_STATIC_BUILD \ + $(NULL) + +# if assertions are enabled, improve backtraces +AM_LDFLAGS = @R_DYNAMIC_LDFLAG@ ## note that TESTS has special meaning (stuff to use in make check) ## so if adding tests not to be run in make check, don't add them to @@ -18,57 +26,14 @@ if DBUS_BUILD_TESTS ## build even when not doing "make check" noinst_PROGRAMS=test-pending-call-dispatch test-pending-call-timeout test-threads-init test-ids test-shutdown test-privserver test-privserver-client test-autolaunch -AM_CPPFLAGS = -DDBUS_STATIC_BUILD -test_pending_call_dispatch_SOURCES = \ - test-pending-call-dispatch.c - -test_pending_call_dispatch_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) -test_pending_call_dispatch_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_pending_call_timeout_SOURCES = \ - test-pending-call-timeout.c - -test_pending_call_timeout_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) -test_pending_call_timeout_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_threads_init_SOURCES = \ - test-threads-init.c - -test_threads_init_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) -test_threads_init_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_ids_SOURCES = \ - test-ids.c - -test_ids_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_TEST_LIBS) -test_ids_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_shutdown_SOURCES = \ - test-shutdown.c - -test_shutdown_CFLAGS= -test_shutdown_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) -test_shutdown_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_privserver_SOURCES = \ - test-privserver.c - -test_privserver_CFLAGS= -test_privserver_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) -test_privserver_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_privserver_client_SOURCES = \ - test-privserver-client.c - -test_privserver_client_CFLAGS= -test_privserver_client_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) -test_privserver_client_LDFLAGS=@R_DYNAMIC_LDFLAG@ - -test_autolaunch_SOURCES = \ - test-autolaunch.c +test_pending_call_dispatch_LDADD=$(top_builddir)/dbus/libdbus-internal.la +test_pending_call_timeout_LDADD=$(top_builddir)/dbus/libdbus-internal.la +test_threads_init_LDADD=$(top_builddir)/dbus/libdbus-internal.la +test_ids_LDADD=$(top_builddir)/dbus/libdbus-internal.la -test_autolaunch_CFLAGS= -test_autolaunch_LDADD=$(top_builddir)/dbus/libdbus-internal.la ../libdbus-testutils.la $(DBUS_TEST_LIBS) -test_autolaunch_LDFLAGS=@R_DYNAMIC_LDFLAG@ +test_shutdown_LDADD=../libdbus-testutils.la +test_privserver_LDADD=../libdbus-testutils.la +test_privserver_client_LDADD=../libdbus-testutils.la +test_autolaunch_LDADD=../libdbus-testutils.la endif