Commit a532afd1 authored by Lynn Garren's avatar Lynn Garren
Browse files

works for Linux and Windows

parent 1b7de449
......@@ -56,6 +56,8 @@ AC_SUBST(Vector_LIBS)
AC_SUBST(Vector_LDFLAGS)
AC_SUBST(COPY_P)
AC_SUBST(SRCLIB)
AC_SUBST(LIBEXTENSION)
# ----------------------------------------------------------------------
# Supply boilerplate for Vector/defs.h source header:
......@@ -187,6 +189,24 @@ powerpc-apple-darwin*)
esac;;
esac
# deal with libraries
case "$target" in
*-*-win32*)
case "$CXX" in
cl) SRCLIB="src/.libs";LIBEXTENSION=".lib";;
g++) SRCLIB="src";LIBEXTENSION=".la";;
c++) SRCLIB="src";LIBEXTENSION=".la"
esac;;
*-*-cygwin*)
case "$CXX" in
cl) SRCLIB="src/.libs";LIBEXTENSION=".lib";;
g++) SRCLIB="src";LIBEXTENSION=".la";;
c++) SRCLIB="src";LIBEXTENSION=".la"
esac;;
*-*-*)
SRCLIB="src";LIBEXTENSION=".la";;
esac
# ----------------------------------------------------------------------
# Set system-dependent options:
......
# Applicable to each test program:
INCLUDES = -I../
LDADD = -L${top_builddir}/src @Vector_LIBS@ # libraries to link, and whence
# libraries to link, and whence
LDADD = $(top_builddir)/@SRCLIB@/libCLHEP-@PACKAGE@-@VERSION@@LIBEXTENSION@
# Identify executables needed during testing:
check_PROGRAMS = \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment