Include libBNMR in standard configuration and automake (still not fully working).
This commit is contained in:
parent
acb5a1af09
commit
b7bd3c286e
12
configure.ac
12
configure.ac
@ -733,6 +733,12 @@ dnl -----------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE([ASlibs], [AS_HELP_STRING([--enable-ASlibs],[build optional AS plug-ins [default=no]])],[BUILD_AS_LIBS=1], [BUILD_AS_LIBS=0])
|
||||
|
||||
dnl -----------------------------------------------
|
||||
dnl Ask user if BNMRlibs should be built
|
||||
dnl -----------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE([BNMRlibs], [AS_HELP_STRING([--enable-BNMRlibs],[build optional BNMR plug-ins [default=no]])],[BUILD_BNMR_LIBS=1], [BUILD_BNMR_LIBS=0])
|
||||
|
||||
dnl -----------------------------------------------
|
||||
dnl Set some paths and flags for PMusr, MusrRoot, TLemRunHeader, Class_MuSR_PSI, mud, NeXus (if enabled), etc.
|
||||
dnl -----------------------------------------------
|
||||
@ -1111,6 +1117,7 @@ AM_CONDITIONAL([PNEXUS_ENABLED], [test "${PNEXUS_ENABLED}" = "1"])
|
||||
AM_CONDITIONAL([BUILD_CUBALIB], [test "${BUILD_CUBA}" = "1"])
|
||||
AM_CONDITIONAL([BUILD_BMWLIBS], [test "${BUILD_BMW_LIBS}" = "1"])
|
||||
AM_CONDITIONAL([BUILD_ASLIBS], [test "${BUILD_AS_LIBS}" = "1"])
|
||||
AM_CONDITIONAL([BUILD_BNMRLIBS], [test "${BUILD_BNMR_LIBS}" = "1"])
|
||||
|
||||
AC_CONFIG_FILES([Makefile \
|
||||
src/Makefile \
|
||||
@ -1270,6 +1277,11 @@ if test "${BUILD_AS_LIBS}" -eq 1; then
|
||||
else
|
||||
echo " ASlibs: no"
|
||||
fi
|
||||
if test "${BUILD_BNMR_LIBS}" -eq 1; then
|
||||
echo " BNMRlibs: yes"
|
||||
else
|
||||
echo " BNMRlibs: no"
|
||||
fi
|
||||
if test "${BUILD_BMW_LIBS}" -eq 1; then
|
||||
echo " BMWlibs: yes"
|
||||
else
|
||||
|
52
src/external/libBNMR/Makefile.am
vendored
Normal file
52
src/external/libBNMR/Makefile.am
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
## Process this file with automake to create Makefile.in
|
||||
|
||||
h_sources = \
|
||||
TBNMR.h
|
||||
|
||||
h_linkdef = \
|
||||
TBNMRLinkDef.h
|
||||
|
||||
dict_h_sources = \
|
||||
TBNMRDict.h
|
||||
|
||||
cpp_sources = \
|
||||
TBNMR.cpp
|
||||
|
||||
dict_cpp_sources = \
|
||||
TBNMRDict.cpp
|
||||
|
||||
include_HEADERS = $(h_sources)
|
||||
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LEM_CFLAGS) $(PMUSR_CFLAGS) $(CUBA_CFLAGS) -I$(ROOTINCDIR)
|
||||
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
||||
|
||||
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
||||
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
|
||||
CLEANFILES = *Dict.cpp *Dict.h *~ core
|
||||
|
||||
%Dict.cpp %Dict.h: %.h %LinkDef.h
|
||||
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^
|
||||
|
||||
lib_LTLIBRARIES = libBNMR.la
|
||||
|
||||
libBNMR_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
||||
libBNMR_la_LIBADD = $(CUBA_LIBS) $(ROOT_LIBS)
|
||||
libBNMR_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
||||
|
||||
## However, create some symbolic links to the shared library
|
||||
## in order to unify the function call on different operating systems
|
||||
|
||||
if IS_DARWIN
|
||||
install-exec-hook:
|
||||
$(LN_S) -f $(libdir)/libBNMR.dylib $(libdir)/libBNMR.so
|
||||
uninstall-hook:
|
||||
rm -f $(libdir)/libBNMR.so
|
||||
endif
|
||||
|
||||
if IS_CYGWIN
|
||||
install-exec-hook:
|
||||
$(LN_S) -f $(bindir)/cygBNMR-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libBNMR.so
|
||||
uninstall-hook:
|
||||
rm -f $(libdir)/libBNMR.so
|
||||
endif
|
Loading…
x
Reference in New Issue
Block a user