Trying to tie the same startup handler into different plugin libraries did not work quite well.
Therefore, a new library is built and the plugins link to that one. This new library at the moment only contains the startup handler, however, finally it might serve as well for other routines that are used by different plugins.
This commit is contained in:
parent
653fcdcec8
commit
2d2cf448db
@ -490,6 +490,12 @@ AC_SUBST(PMUSR_LIBS)
|
|||||||
AC_SUBST(PMUSR_CFLAGS)
|
AC_SUBST(PMUSR_CFLAGS)
|
||||||
|
|
||||||
if test "${BUILD_BMW_LIBS}" = "1"; then
|
if test "${BUILD_BMW_LIBS}" = "1"; then
|
||||||
|
BMWSTARTUP_SRCDIR="${SRCDIR}/external/BMWStartupHandler"
|
||||||
|
BMWSTARTUP_LIBS="${BMWSTARTUP_SRCDIR}/libBMWstartup.la"
|
||||||
|
BMWSTARTUP_CFLAGS="-I${BMWSTARTUP_SRCDIR}"
|
||||||
|
AC_SUBST(BMWSTARTUP_LIBS)
|
||||||
|
AC_SUBST(BMWSTARTUP_CFLAGS)
|
||||||
|
|
||||||
TFITPOFB_SRCDIR="${SRCDIR}/external/TFitPofB-lib"
|
TFITPOFB_SRCDIR="${SRCDIR}/external/TFitPofB-lib"
|
||||||
TFITPOFB_LIBS="${TFITPOFB_SRCDIR}/classes/libTFitPofB.la"
|
TFITPOFB_LIBS="${TFITPOFB_SRCDIR}/classes/libTFitPofB.la"
|
||||||
TFITPOFB_CFLAGS="-I${TFITPOFB_SRCDIR}/include"
|
TFITPOFB_CFLAGS="-I${TFITPOFB_SRCDIR}/include"
|
||||||
@ -627,6 +633,7 @@ AC_CONFIG_FILES([Makefile \
|
|||||||
src/external/libCuba/Makefile \
|
src/external/libCuba/Makefile \
|
||||||
src/external/libCuba/src/Makefile \
|
src/external/libCuba/src/Makefile \
|
||||||
src/external/libCuba/src/cuba.pc \
|
src/external/libCuba/src/cuba.pc \
|
||||||
|
src/external/BMWStartupHandler/Makefile \
|
||||||
src/external/TFitPofB-lib/Makefile \
|
src/external/TFitPofB-lib/Makefile \
|
||||||
src/external/TFitPofB-lib/classes/Makefile \
|
src/external/TFitPofB-lib/classes/Makefile \
|
||||||
src/external/libLFRelaxation/Makefile \
|
src/external/libLFRelaxation/Makefile \
|
||||||
|
56
src/external/BMWStartupHandler/Makefile.am
vendored
Normal file
56
src/external/BMWStartupHandler/Makefile.am
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
## Process this file with automake to create Makefile.in
|
||||||
|
|
||||||
|
h_sources = \
|
||||||
|
BMWStartupHandler.h
|
||||||
|
|
||||||
|
h_linkdef = \
|
||||||
|
BMWStartupHandlerLinkDef.h
|
||||||
|
|
||||||
|
dict_h_sources = \
|
||||||
|
BMWStartupHandlerDict.h
|
||||||
|
|
||||||
|
cpp_sources = \
|
||||||
|
BMWStartupHandler.cpp
|
||||||
|
|
||||||
|
dict_cpp_sources = \
|
||||||
|
BMWStartupHandlerDict.cpp
|
||||||
|
|
||||||
|
include_HEADERS = $(h_sources)
|
||||||
|
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
||||||
|
|
||||||
|
INCLUDES = -I$(top_srcdir)/src/include $(LEM_CFLAGS) $(PMUSR_CFLAGS) $(ROOT_CFLAGS)
|
||||||
|
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 = libBMWstartup.la
|
||||||
|
|
||||||
|
libBMWstartup_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
||||||
|
libBMWstartup_la_LIBADD = $(ROOT_LIBS)
|
||||||
|
libBMWstartup_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
||||||
|
|
||||||
|
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
||||||
|
## pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
## pkgconfig_DATA = PTFitPofB.pc
|
||||||
|
|
||||||
|
## 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) $(libdir)/libBMWstartup.dylib $(libdir)/libBMWstartup.so
|
||||||
|
uninstall-hook:
|
||||||
|
rm -f $(libdir)/libBMWstartup.so
|
||||||
|
endif
|
||||||
|
|
||||||
|
if IS_CYGWIN
|
||||||
|
install-exec-hook:
|
||||||
|
$(LN_S) $(bindir)/cygBMWstartup-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libBMWstartup.so
|
||||||
|
uninstall-hook:
|
||||||
|
rm -f $(libdir)/libBMWstartup.so
|
||||||
|
endif
|
3
src/external/Makefile.am
vendored
3
src/external/Makefile.am
vendored
@ -8,7 +8,8 @@ if BUILD_CUBALIB
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_BMWLIBS
|
if BUILD_BMWLIBS
|
||||||
BMWDIRS = TFitPofB-lib \
|
BMWDIRS = BMWStartupHandler \
|
||||||
|
TFitPofB-lib \
|
||||||
libLFRelaxation \
|
libLFRelaxation \
|
||||||
libGapIntegrals \
|
libGapIntegrals \
|
||||||
libCalcMeanFieldsLEM
|
libCalcMeanFieldsLEM
|
||||||
|
17
src/external/TFitPofB-lib/classes/Makefile.am
vendored
17
src/external/TFitPofB-lib/classes/Makefile.am
vendored
@ -1,9 +1,6 @@
|
|||||||
## Process this file with automake to create Makefile.in
|
## Process this file with automake to create Makefile.in
|
||||||
|
|
||||||
startup_path = ../../BMWStartupHandler
|
|
||||||
|
|
||||||
h_sources = \
|
h_sources = \
|
||||||
$(startup_path)/BMWStartupHandler.h \
|
|
||||||
../include/TBofZCalc.h \
|
../include/TBofZCalc.h \
|
||||||
../include/TBulkTriVortexFieldCalc.h \
|
../include/TBulkTriVortexFieldCalc.h \
|
||||||
../include/TLondon1D.h \
|
../include/TLondon1D.h \
|
||||||
@ -14,19 +11,16 @@ h_sources = \
|
|||||||
../include/TVortex.h
|
../include/TVortex.h
|
||||||
|
|
||||||
h_linkdef = \
|
h_linkdef = \
|
||||||
$(startup_path)/BMWStartupHandlerLinkDef.h \
|
|
||||||
../include/TLondon1DLinkDef.h \
|
../include/TLondon1DLinkDef.h \
|
||||||
../include/TVortexLinkDef.h \
|
../include/TVortexLinkDef.h \
|
||||||
../include/TSkewedGssLinkDef.h
|
../include/TSkewedGssLinkDef.h
|
||||||
|
|
||||||
dict_h_sources = \
|
dict_h_sources = \
|
||||||
$(startup_path)/BMWStartupHandlerDict.h \
|
|
||||||
TLondon1DDict.h \
|
TLondon1DDict.h \
|
||||||
TSkewedGssDict.h \
|
TSkewedGssDict.h \
|
||||||
TVortexDict.h
|
TVortexDict.h
|
||||||
|
|
||||||
cpp_sources = \
|
cpp_sources = \
|
||||||
$(startup_path)/BMWStartupHandler.cpp \
|
|
||||||
TBulkTriVortexFieldCalc.cpp \
|
TBulkTriVortexFieldCalc.cpp \
|
||||||
TBofZCalc.cpp \
|
TBofZCalc.cpp \
|
||||||
TLondon1D.cpp \
|
TLondon1D.cpp \
|
||||||
@ -37,7 +31,6 @@ cpp_sources = \
|
|||||||
TVortex.cpp
|
TVortex.cpp
|
||||||
|
|
||||||
dict_cpp_sources = \
|
dict_cpp_sources = \
|
||||||
$(startup_path)/BMWStartupHandlerDict.cpp \
|
|
||||||
TLondon1DDict.cpp \
|
TLondon1DDict.cpp \
|
||||||
TSkewedGssDict.cpp \
|
TSkewedGssDict.cpp \
|
||||||
TVortexDict.cpp
|
TVortexDict.cpp
|
||||||
@ -45,16 +38,12 @@ dict_cpp_sources = \
|
|||||||
include_HEADERS = $(h_sources)
|
include_HEADERS = $(h_sources)
|
||||||
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/include -I../include -I$(startup_path) $(LEM_CFLAGS) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) $(ROOT_CFLAGS)
|
INCLUDES = -I$(top_srcdir)/src/include -I../include $(BMWSTARTUP_CFLAGS) $(LEM_CFLAGS) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) $(ROOT_CFLAGS)
|
||||||
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
||||||
|
|
||||||
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
||||||
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
|
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
|
||||||
CLEANFILES = $(startup_path)/*Dict.cpp $(startup_path)/*Dict.h $(startup_path)/*~ \
|
CLEANFILES = *Dict.cpp *Dict.h *~ core
|
||||||
*Dict.cpp *Dict.h *~ core
|
|
||||||
|
|
||||||
$(startup_path)/BMWStartupHandlerDict.cpp $(startup_path)/BMWStartupHandlerDict.h: $(startup_path)/BMWStartupHandler.h $(startup_path)/BMWStartupHandlerLinkDef.h
|
|
||||||
@ROOTCINT@ -v -f $(startup_path)/BMWStartupHandlerDict.cpp -c -p $(INCLUDES) $^
|
|
||||||
|
|
||||||
%Dict.cpp %Dict.h: ../include/%.h ../include/%LinkDef.h
|
%Dict.cpp %Dict.h: ../include/%.h ../include/%LinkDef.h
|
||||||
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^
|
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^
|
||||||
@ -62,7 +51,7 @@ $(startup_path)/BMWStartupHandlerDict.cpp $(startup_path)/BMWStartupHandlerDict.
|
|||||||
lib_LTLIBRARIES = libTFitPofB.la
|
lib_LTLIBRARIES = libTFitPofB.la
|
||||||
|
|
||||||
libTFitPofB_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
libTFitPofB_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
||||||
libTFitPofB_la_LIBADD = $(LEM_LIBS) $(PMUSR_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS)
|
libTFitPofB_la_LIBADD = $(BMWSTARTUP_LIBS) $(LEM_LIBS) $(PMUSR_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS)
|
||||||
libTFitPofB_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
libTFitPofB_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
||||||
|
|
||||||
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
||||||
|
@ -18,7 +18,7 @@ dict_cpp_sources = \
|
|||||||
include_HEADERS = $(h_sources)
|
include_HEADERS = $(h_sources)
|
||||||
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/include -I../BMWStartupHandler $(TFITPOFB_CFLAGS) $(PMUSR_CFLAGS) $(ROOT_CFLAGS) $(FFTW3_CFLAGS)
|
INCLUDES = -I$(top_srcdir)/src/include $(BMWSTARTUP_CFLAGS) $(TFITPOFB_CFLAGS) $(PMUSR_CFLAGS) $(ROOT_CFLAGS) $(FFTW3_CFLAGS)
|
||||||
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
||||||
|
|
||||||
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
||||||
@ -31,7 +31,7 @@ CLEANFILES = *Dict.cpp *Dict.h *~ core
|
|||||||
lib_LTLIBRARIES = libCalcMeanFieldsLEM.la
|
lib_LTLIBRARIES = libCalcMeanFieldsLEM.la
|
||||||
|
|
||||||
libCalcMeanFieldsLEM_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
libCalcMeanFieldsLEM_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
||||||
libCalcMeanFieldsLEM_la_LIBADD = $(TFITPOFB_LIBS) $(PMUSR_LIBS) $(ROOT_LIBS)
|
libCalcMeanFieldsLEM_la_LIBADD = $(BMWSTARTUP_LIBS) $(TFITPOFB_LIBS) $(PMUSR_LIBS) $(ROOT_LIBS)
|
||||||
libCalcMeanFieldsLEM_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
libCalcMeanFieldsLEM_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
||||||
|
|
||||||
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
||||||
|
19
src/external/libLFRelaxation/Makefile.am
vendored
19
src/external/libLFRelaxation/Makefile.am
vendored
@ -1,40 +1,33 @@
|
|||||||
## Process this file with automake to create Makefile.in
|
## Process this file with automake to create Makefile.in
|
||||||
|
|
||||||
startup_path = ../BMWStartupHandler
|
|
||||||
integrator_path = ../BMWIntegrator
|
integrator_path = ../BMWIntegrator
|
||||||
|
|
||||||
h_sources = \
|
h_sources = \
|
||||||
TLFRelaxation.h \
|
TLFRelaxation.h \
|
||||||
$(startup_path)/BMWStartupHandler.h \
|
|
||||||
$(integrator_path)/BMWIntegrator.h
|
$(integrator_path)/BMWIntegrator.h
|
||||||
|
|
||||||
h_linkdef = \
|
h_linkdef = \
|
||||||
TLFRelaxationLinkDef.h \
|
TLFRelaxationLinkDef.h
|
||||||
$(startup_path)/BMWStartupHandlerLinkDef.h
|
|
||||||
|
|
||||||
dict_h_sources = \
|
dict_h_sources = \
|
||||||
TLFRelaxationDict.h \
|
TLFRelaxationDict.h
|
||||||
$(startup_path)/BMWStartupHandlerDict.h
|
|
||||||
|
|
||||||
cpp_sources = \
|
cpp_sources = \
|
||||||
TLFRelaxation.cpp \
|
TLFRelaxation.cpp \
|
||||||
$(startup_path)/BMWStartupHandler.cpp \
|
|
||||||
$(integrator_path)/BMWIntegrator.cpp
|
$(integrator_path)/BMWIntegrator.cpp
|
||||||
|
|
||||||
dict_cpp_sources = \
|
dict_cpp_sources = \
|
||||||
TLFRelaxationDict.cpp \
|
TLFRelaxationDict.cpp
|
||||||
$(startup_path)/BMWStartupHandlerDict.cpp
|
|
||||||
|
|
||||||
include_HEADERS = $(h_sources)
|
include_HEADERS = $(h_sources)
|
||||||
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/include -I$(startup_path) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) $(GSL_CFLAGS) $(ROOT_CFLAGS) $(CUBA_CFLAGS)
|
INCLUDES = -I$(top_srcdir)/src/include $(BMWSTARTUP_CFLAGS) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) $(GSL_CFLAGS) $(ROOT_CFLAGS) $(CUBA_CFLAGS)
|
||||||
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
|
||||||
|
|
||||||
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
|
||||||
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
|
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
|
||||||
CLEANFILES = $(startup_path)/*Dict.cpp $(startup_path)/*Dict.h $(startup_path)/*~ \
|
CLEANFILES = $(integrator_path)/*~ *Dict.cpp *Dict.h *~ core
|
||||||
$(integrator_path)/*~ *Dict.cpp *Dict.h *~ core
|
|
||||||
|
|
||||||
%Dict.cpp %Dict.h: %.h %LinkDef.h
|
%Dict.cpp %Dict.h: %.h %LinkDef.h
|
||||||
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^
|
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^
|
||||||
@ -42,7 +35,7 @@ CLEANFILES = $(startup_path)/*Dict.cpp $(startup_path)/*Dict.h $(startup_path)/*
|
|||||||
lib_LTLIBRARIES = libLFRelaxation.la
|
lib_LTLIBRARIES = libLFRelaxation.la
|
||||||
|
|
||||||
libLFRelaxation_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
libLFRelaxation_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources)
|
||||||
libLFRelaxation_la_LIBADD = $(PMUSR_LIBS) $(FFTW3_LIBS) $(GSL_LIBS) $(ROOT_LIBS) $(CUBA_LIBS)
|
libLFRelaxation_la_LIBADD = $(BMWSTARTUP_LIBS) $(PMUSR_LIBS) $(FFTW3_LIBS) $(GSL_LIBS) $(ROOT_LIBS) $(CUBA_LIBS)
|
||||||
libLFRelaxation_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
libLFRelaxation_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS)
|
||||||
|
|
||||||
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
## For the moment do not build pkgconfig files for musrfit plug-ins...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user