2003-09-30 02:43:21 +00:00
|
|
|
INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_GLIB_CFLAGS) -I$(top_srcdir)/glib
|
|
|
|
|
|
2003-10-12 05:59:39 +00:00
|
|
|
## 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
|
|
|
|
|
## TESTS
|
|
|
|
|
if DBUS_BUILD_TESTS
|
2004-04-13 11:39:41 +00:00
|
|
|
TESTS_ENVIRONMENT=DBUS_TOP_BUILDDIR=$(ABSOLUTE_TOP_BUILDDIR)
|
2003-10-12 05:59:39 +00:00
|
|
|
TESTS=run-test.sh
|
|
|
|
|
else
|
|
|
|
|
TESTS=
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST=run-test.sh
|
|
|
|
|
|
2003-09-30 02:43:21 +00:00
|
|
|
if DBUS_BUILD_TESTS
|
|
|
|
|
|
|
|
|
|
if HAVE_GLIB_THREADS
|
|
|
|
|
THREAD_APPS=test-thread-server test-thread-client test-profile
|
|
|
|
|
|
|
|
|
|
test_thread_server_SOURCES= \
|
|
|
|
|
test-thread-server.c \
|
|
|
|
|
test-thread.h
|
|
|
|
|
|
|
|
|
|
test_thread_server_LDADD= $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/glib/libdbus-glib-1.la
|
|
|
|
|
|
|
|
|
|
test_thread_client_SOURCES= \
|
|
|
|
|
test-thread-client.c \
|
|
|
|
|
test-thread.h
|
|
|
|
|
|
|
|
|
|
test_thread_client_LDADD= $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/glib/libdbus-glib-1.la
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
|
|
|
|
|
## build even when not doing "make check"
|
2003-10-21 05:46:52 +00:00
|
|
|
noinst_PROGRAMS= test-dbus-glib test-service-glib $(THREAD_APPS)
|
2003-09-30 02:43:21 +00:00
|
|
|
|
|
|
|
|
test_dbus_glib_SOURCES= \
|
|
|
|
|
test-dbus-glib.c
|
|
|
|
|
|
|
|
|
|
test_dbus_glib_LDADD= $(top_builddir)/glib/libdbus-glib-1.la
|
|
|
|
|
|
2003-10-21 05:46:52 +00:00
|
|
|
test_service_glib_SOURCES= \
|
|
|
|
|
test-service-glib.c
|
|
|
|
|
|
|
|
|
|
test_service_glib_LDADD= $(top_builddir)/glib/libdbus-glib-1.la
|
|
|
|
|
|
2003-09-30 02:43:21 +00:00
|
|
|
else
|
|
|
|
|
### not building tests
|
|
|
|
|
|
|
|
|
|
if HAVE_GLIB_THREADS
|
|
|
|
|
noinst_PROGRAMS=test-profile
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if HAVE_GLIB_THREADS
|
|
|
|
|
test_profile_SOURCES= \
|
|
|
|
|
test-profile.c
|
|
|
|
|
|
|
|
|
|
test_profile_LDADD= $(DBUS_GLIB_THREADS_LIBS) $(top_builddir)/glib/libdbus-glib-1.la
|
|
|
|
|
endif
|