@@ -10,6 +10,7 @@ SUBDIRS = profiling
1010
1111SUBDIRS += iodemo
1212
13+ if HAVE_TEST_APPS
1314noinst_PROGRAMS = \
1415 test_ucp_dlopen \
1516 test_ucp_config \
@@ -20,23 +21,23 @@ noinst_PROGRAMS = \
2021 test_memtrack_limit \
2122 test_hooks
2223
23- objdir = $(shell sed -n -e 's/^objdir=\(.* \) $$/\1/p' $(LIBTOOL ) )
24+ objdir_apps = $(shell sed -n -e 's/^objdir=\(.* \) $$/\1/p' $(LIBTOOL ) )
2425
2526test_hooks_SOURCES = test_hooks.c
2627test_hooks_CPPFLAGS = $(BASE_CPPFLAGS ) \
27- -DLIB_PATH=$(abs_top_builddir ) /src/ucs/$(objdir ) /libucs.so
28+ -DLIB_PATH=$(abs_top_builddir ) /src/ucs/$(objdir_apps ) /libucs.so
2829test_hooks_CFLAGS = $(BASE_CFLAGS )
2930test_hooks_LDADD = -ldl
3031
3132test_ucs_dlopen_SOURCES = test_ucs_dlopen.c
3233test_ucs_dlopen_CPPFLAGS = $(BASE_CPPFLAGS ) \
33- -DLIB_PATH=$(abs_top_builddir ) /src/ucs/$(objdir ) /libucs.so
34+ -DLIB_PATH=$(abs_top_builddir ) /src/ucs/$(objdir_apps ) /libucs.so
3435test_ucs_dlopen_CFLAGS = $(BASE_CFLAGS )
3536test_ucs_dlopen_LDADD = -ldl
3637
3738test_ucp_dlopen_SOURCES = test_ucp_dlopen.c
3839test_ucp_dlopen_CPPFLAGS = $(BASE_CPPFLAGS ) \
39- -DLIB_PATH=$(abs_top_builddir ) /src/ucp/$(objdir ) /libucp.so
40+ -DLIB_PATH=$(abs_top_builddir ) /src/ucp/$(objdir_apps ) /libucp.so
4041test_ucp_dlopen_CFLAGS = $(BASE_CFLAGS )
4142test_ucp_dlopen_LDADD = -ldl
4243
@@ -57,8 +58,8 @@ test_link_map_LDADD = -ldl $(top_builddir)/src/ucp/libucp.la
5758
5859test_dlopen_cfg_print_SOURCES = test_dlopen_cfg_print.c
5960test_dlopen_cfg_print_CPPFLAGS = $(BASE_CPPFLAGS ) -g \
60- -DUCS_LIB_PATH=$(abs_top_builddir ) /src/ucs/$(objdir ) /libucs.so \
61- -DUCT_LIB_PATH=$(abs_top_builddir ) /src/uct/$(objdir ) /libuct.so
61+ -DUCS_LIB_PATH=$(abs_top_builddir ) /src/ucs/$(objdir_apps ) /libucs.so \
62+ -DUCT_LIB_PATH=$(abs_top_builddir ) /src/uct/$(objdir_apps ) /libuct.so
6263test_dlopen_cfg_print_CFLAGS = $(BASE_CFLAGS )
6364test_dlopen_cfg_print_LDADD = -ldl
6465
@@ -124,3 +125,5 @@ test_tcmalloc_CFLAGS = $(BASE_CFLAGS)
124125test_tcmalloc_LDADD = -ldl $(TCMALLOC_LIB ) \
125126 $(top_builddir ) /src/ucp/libucp.la
126127endif
128+
129+ endif
0 commit comments