Commit 1bc5785f authored by Karl Wette's avatar Karl Wette
Browse files

Set LDADD in ./configure to LAL libraries, to be available in all Makefiles

Original: c316ed1f9a1b96b67e2d55b458e9e52e3ea0bf51
parent 9fabb1d0
...@@ -345,6 +345,9 @@ AM_CONDITIONAL([QTHREAD],[test x$qthread = xtrue]) ...@@ -345,6 +345,9 @@ AM_CONDITIONAL([QTHREAD],[test x$qthread = xtrue])
# add gcc specific flags --- must be done at end or tests will break! # add gcc specific flags --- must be done at end or tests will break!
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LAL and LALSupport libraries
AC_SUBST([LDADD], ["\$(top_builddir)/lib/lal/liblal.la \$(top_builddir)/lib/lalsupport/src/liblalsupport.la"])
# add extra preprocessor flags # add extra preprocessor flags
AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}" AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}"
AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}" AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}"
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
ConfigFileTest \ ConfigFileTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
TestJulianDay\ TestJulianDay\
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
noinst_HEADERS = \ noinst_HEADERS = \
ArrayFactoriesTest_source.c \ ArrayFactoriesTest_source.c \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
ComplexFFTTest \ ComplexFFTTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
GeocentricGeodeticTest \ GeocentricGeodeticTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
NoisePSDTest NoisePSDTest
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
LALMomentTest \ LALMomentTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
LALConstantsTest \ LALConstantsTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
BandPassTest \ BandPassTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
CoherentEstimationTest \ CoherentEstimationTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
CCoarseGrainFrequencySeriesTest \ CCoarseGrainFrequencySeriesTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = \
$(top_builddir)/lib/lal/liblal.la \
$(top_builddir)/lib/lalsupport/src/liblalsupport.la
check_PROGRAMS = \ check_PROGRAMS = \
VectorOpsTest \ VectorOpsTest \
......
include $(top_srcdir)/gnuscripts/lallibs_header_links.am include $(top_srcdir)/gnuscripts/lallibs_header_links.am
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = $(top_builddir)/lib/lal/liblal.la -lm
check_PROGRAMS = WindowTest check_PROGRAMS = WindowTest
......
...@@ -406,6 +406,9 @@ fi ...@@ -406,6 +406,9 @@ fi
# add gcc specific flags # add gcc specific flags
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LALApps library
AC_SUBST([LDADD], ["\$(top_builddir)/src/lalapps/liblalapps.la"])
# add extra preprocessor flags # add extra preprocessor flags
AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}" AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}"
AM_CPPFLAGS="-I\$(top_builddir)/src/lalapps ${AM_CPPFLAGS}" AM_CPPFLAGS="-I\$(top_builddir)/src/lalapps ${AM_CPPFLAGS}"
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
LDADD =
BUILT_SOURCES = BUILT_SOURCES =
include $(top_srcdir)/gnuscripts/lalapps.am include $(top_srcdir)/gnuscripts/lalapps.am
......
...@@ -134,6 +134,9 @@ LALSUITE_USE_SWIG ...@@ -134,6 +134,9 @@ LALSUITE_USE_SWIG
# add gcc specific flags # add gcc specific flags
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LALBurst library
AC_SUBST([LDADD], ["\$(top_builddir)/src/liblalburst.la"])
# add extra preprocessor flags # add extra preprocessor flags
AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}" AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}"
AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}" AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}"
......
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = $(top_builddir)/src/liblalburst.la
check_PROGRAMS = \ check_PROGRAMS = \
CLRTest \ CLRTest \
......
...@@ -121,6 +121,9 @@ LALSUITE_USE_SWIG ...@@ -121,6 +121,9 @@ LALSUITE_USE_SWIG
# add gcc specific flags # add gcc specific flags
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LALDetChar library
AC_SUBST([LDADD], ["\$(top_builddir)/src/liblaldetchar.la"])
# add extra preprocessor flags # add extra preprocessor flags
AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}" AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}"
AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}" AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}"
......
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = $(top_builddir)/src/liblaldetchar.la
check_PROGRAMS = check_PROGRAMS =
TESTS = $(check_PROGRAMS) TESTS = $(check_PROGRAMS)
......
...@@ -147,6 +147,9 @@ LALSUITE_USE_SWIG ...@@ -147,6 +147,9 @@ LALSUITE_USE_SWIG
# add gcc specific flags # add gcc specific flags
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LALFrame library
AC_SUBST([LDADD], ["\$(top_builddir)/src/liblalframe.la"])
# add extra preprocessor flags # add extra preprocessor flags
AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}" AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}"
AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}" AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}"
......
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = $(top_builddir)/src/liblalframe.la
FRAMEFILES = \ FRAMEFILES = \
F-TEST-600000000-60.gwf \ F-TEST-600000000-60.gwf \
......
...@@ -193,6 +193,9 @@ AS_IF( ...@@ -193,6 +193,9 @@ AS_IF(
# add gcc specific flags # add gcc specific flags
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LALInference library
AC_SUBST([LDADD], ["\$(top_builddir)/src/liblalinference.la"])
# add extra preprocessor flags # add extra preprocessor flags
AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}" AM_CPPFLAGS="\$(TEST_CPPFLAGS) ${AM_CPPFLAGS}"
AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}" AM_CPPFLAGS="-DPKG_DATA_DIR='\"\$(pkgdatadir)/\"' ${AM_CPPFLAGS}"
......
SUBDIRS = baseline_images SUBDIRS = baseline_images
TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' TEST_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"'
LDADD = $(top_builddir)/src/liblalinference.la
if LALXML if LALXML
......
...@@ -138,6 +138,9 @@ fi ...@@ -138,6 +138,9 @@ fi
# add gcc specific flags # add gcc specific flags
LALSUITE_ADD_GCC_FLAGS LALSUITE_ADD_GCC_FLAGS
# link any executables against LALInspiral library