Hamlib/c++/Makefile.am
Nate Bargmann 81775bc03d Add library paths for tests.
Richard Sahw, KF5OIM, reported a failure in the C++ test when attempting
to build an RPM package in a clean environment.  This patch amends the
LD_LIBRARY_PATH in the generated shell scripts in the c++ and tests
directories.
2015-09-03 12:03:53 -05:00

23 lines
577 B
Makefile

lib_LTLIBRARIES = libhamlib++.la
libhamlib___la_SOURCES = rigclass.cc rotclass.cc
libhamlib___la_LDFLAGS = -no-undefined -version-info $(ABI_VERSION):$(ABI_REVISION):$(ABI_AGE)
libhamlib___la_LIBADD = $(top_builddir)/src/libhamlib.la
check_PROGRAMS = testcpp
testcpp_SOURCES = testcpp.cc
testcpp_LDADD = libhamlib++.la
testcpp_DEPENDENCIES = libhamlib++.la
check_SCRIPTS = testcpp.sh
TESTS = $(check_SCRIPTS)
testcpp.sh:
echo 'LD_LIBRARY_PATH=$(top_builddir)/c++/.libs:$(top_builddir)/dummy/.libs ./testcpp' > testcpp.sh
chmod +x ./testcpp.sh
CLEANFILES = testcpp.sh