Superv_ok=no
+SUPERV_LDFLAGS=""
+SUPERV_CXXFLAGS=""
+
AC_ARG_WITH(superv,
--with-superv=DIR root directory path of SUPERV installation,
SUPERV_DIR="$withval",SUPERV_DIR="")
SUPERV_ROOT_DIR=${SUPERV_DIR}
fi
AC_SUBST(SUPERV_ROOT_DIR)
+
+ SUPERV_LDFLAGS=-L${SUPERV_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
+ SUPERV_CXXFLAGS=-I${SUPERV_DIR}/include/salome
+
+ AC_SUBST(SUPERV_LDFLAGS)
+ AC_SUBST(SUPERV_CXXFLAGS)
+
else
AC_MSG_WARN("Cannot find compiled SUPERV distribution")
fi
HAVE_SSTREAM=@HAVE_SSTREAM@
-
LIBS=@LIBS@
LIBSFORBIN=@LIBS@
-LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
-LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib/salome
+LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
+LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
# add libstdc++ to link c++ library with libtool !
LDFLAGS+= -lstdc++
LDFLAGSFORBIN+= -lstdc++
PYTHON_INCLUDES = @PYTHON_INCLUDES@
PYTHON_LIBS = @PYTHON_LIBS@
PYTHON_VERSION = @PYTHON_VERSION@
-PYTHON_SITE = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages
-PYTHON_SITE_INSTALL = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome
+PYTHON_SITE = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages
+PYTHON_SITE_INSTALL = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome
# QT
QT_ROOT = @QT_ROOT@
# create a symbolic link (or a copie ?)
LN_S=@LN_S@
+KERNEL_ROOT_DIR=@KERNEL_ROOT_DIR@
+KERNEL_SITE_DIR=@KERNEL_SITE_DIR@
+
+KERNEL_LDFLAGS=@KERNEL_LDFLAGS@
+KERNEL_CXXFLAGS=@KERNEL_CXXFLAGS@
+
+GUI_ROOT_DIR=@GUI_ROOT_DIR@
+GUI_LDFLAGS=@GUI_LDFLAGS@
+GUI_CXXFLAGS=@GUI_CXXFLAGS@
+
## Installation points
prefix=@prefix@
exec_prefix=@exec_prefix@
-bindir=@bindir@/salome
-libdir=@libdir@/salome
+bindir=@exec_prefix@/bin/salome
+libdir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/salome
# warning : if user give this path in configure we could have salome/salome :-(
includedir=@includedir@/salome
datadir=@datadir@/salome
idldir=${prefix}/idl/salome
-sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
+sharedpydir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
incmakedir=${prefix}/salome_adm/unix
docdir=${prefix}/doc/salome
fi
# make other build directories
-for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources idl
+for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources idl
do
# if test ! -d $rep ; then
# eval mkdir $rep
lib: pyidl
-PYTHON_BUILD_SITE=$(top_builddir)/lib/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
+PYTHON_BUILD_SITE=$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/@PACKAGE@
pyidl: $(PYTHON_BUILD_SITE) $(IDL_FILES:%.idl=$(PYTHON_BUILD_SITE)/%_idl.py)
top_builddir=../..
srcdir=@srcdir@
VPATH=.:@srcdir@:@top_srcdir@/idl
-
+# KERNEL_CXXFLAGS=@KERNEL_CXXFLAGS@
@COMMENCE@
EXPORT_HEADERS = \
- DataFlowBase_Base.hxx \
- DataFlowBase_ServicesParameter.hxx \
- DataFlowBase_Port.hxx \
- DataFlowBase_DataPort.hxx \
- DataFlowBase_InPort.hxx \
- DataFlowBase_InDataStreamPort.hxx \
- DataFlowBase_OutPort.hxx \
- DataFlowBase_OutDataStreamPort.hxx \
- DataFlowBase_Service.hxx \
- DataFlowBase_PortsOfNode.hxx \
- DataFlowBase_StreamNode.hxx \
- DataFlowBase_ComputingNode.hxx \
- DataFlowBase_FactoryNode.hxx \
- DataFlowBase_InLineNode.hxx \
- DataFlowBase_GOTONode.hxx \
- DataFlowBase_LoopNode.hxx \
- DataFlowBase_EndOfLoopNode.hxx \
- DataFlowBase_SwitchNode.hxx \
- DataFlowBase_EndOfSwitchNode.hxx \
- DataFlowBase_DataNode.hxx \
- DataFlowBase_XmlHandler.hxx \
- DataFlowBase_Graph.hxx \
- DataFlowBase_StreamGraph.hxx
+ DataFlowBase_Base.hxx \
+ DataFlowBase_ServicesParameter.hxx \
+ DataFlowBase_Port.hxx \
+ DataFlowBase_DataPort.hxx \
+ DataFlowBase_InPort.hxx \
+ DataFlowBase_InDataStreamPort.hxx \
+ DataFlowBase_OutPort.hxx \
+ DataFlowBase_OutDataStreamPort.hxx \
+ DataFlowBase_Service.hxx \
+ DataFlowBase_PortsOfNode.hxx \
+ DataFlowBase_StreamNode.hxx \
+ DataFlowBase_ComputingNode.hxx \
+ DataFlowBase_FactoryNode.hxx \
+ DataFlowBase_InLineNode.hxx \
+ DataFlowBase_GOTONode.hxx \
+ DataFlowBase_LoopNode.hxx \
+ DataFlowBase_EndOfLoopNode.hxx \
+ DataFlowBase_SwitchNode.hxx \
+ DataFlowBase_EndOfSwitchNode.hxx \
+ DataFlowBase_DataNode.hxx \
+ DataFlowBase_XmlHandler.hxx \
+ DataFlowBase_Graph.hxx \
+ DataFlowBase_StreamGraph.hxx
# Libraries targets
LIB = libSalomeSuperVisionBase.la
DataFlowBase_StreamGraph.cxx
LIB_CLIENT_IDL = Logger.idl \
- SALOME_ModuleCatalog.idl \
- SALOME_Component.idl \
- SALOMEDS.idl \
- SUPERV.idl \
- SALOMEDS_Attributes.idl \
- SALOME_Exception.idl \
- SALOME_GenericObj.idl
+ SALOME_ModuleCatalog.idl \
+ SALOME_Component.idl \
+ SALOMEDS.idl \
+ SUPERV.idl \
+ SALOMEDS_Attributes.idl \
+ SALOME_Exception.idl \
+ SALOME_GenericObj.idl
# Executables targets
BIN = SuperVisionBase_CheckOfUndefined
BIN_SRC =
BIN_SERVER_IDL =
CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_MT_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS)
CXXFLAGS+= -g -D__x86__ -D__linux__ -ftemplate-depth-42 -Wall \
- -I${KERNEL_ROOT_DIR}/include/salome
-
-ifeq ($(OS),REDHAT)
- CXXFLAGS+= -DREDHAT
-endif
-
-LDFLAGS= -L../../lib/salome $(CORBA_LIBS) -lSalomeNS -lSalomeLifeCycleCORBA -lOpUtil -lSALOMELocalTrace \
+ $(KERNEL_CXXFLAGS)
+LDFLAGS+= $(SUPERV_LDFLAGS) $(CORBA_LIBS) -lSalomeNS -lSalomeLifeCycleCORBA -lOpUtil -lSALOMELocalTrace \
-lc $(PYTHON_LIBS) $(QT_MT_LIBS) $(OGL_LIBS) \
- -L${KERNEL_ROOT_DIR}/lib/salome
+ $(KERNEL_LDFLAGS)
LDFLAGSFORBIN=$(LDFLAGS) -lSalomeContainer -lSalomeResourcesManager -lRegistry -lSalomeNotification -lSALOMEBasics
//LIBS += -Xlinker -export-dynamic $(PYTHON_LIBS)
srcdir=@srcdir@
VPATH=.:@srcdir@:@top_srcdir@/idl
-
@COMMENCE@
EXPORT_HEADERS = \
BIN_SERVER_IDL =
CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_MT_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS)
CXXFLAGS+= -g -D__x86__ -D__linux__ -ftemplate-depth-42 -Wall \
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS)
LDFLAGS+= -lSalomeNS -lSalomeLifeCycleCORBA -lSalomeSuperVisionBase -lOpUtil -lSALOMELocalTrace \
- -lc $(QT_MT_LIBS) $(OGL_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome
+ -lc $(QT_MT_LIBS) $(OGL_LIBS) $(KERNEL_LDFLAGS)
#LIBS += -Xlinker -export-dynamic $(PYTHON_LIBS)
BIN_SERVER_IDL =
CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_MT_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(OCC_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS)
CXXFLAGS+= -g -D__x86__ -D__linux__ -ftemplate-depth-42 -Wall \
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS)
-ifeq ($(OS),REDHAT)
+feq ($(OS),REDHAT)
CXXFLAGS+= -DREDHAT
endif
LDFLAGS+= -export-dynamic -lSalomeNS -lSalomeLifeCycleCORBA -lSalomeSuperVisionBase -lSalomeSuperVisionEditor -lOpUtil -lSALOMELocalTrace\
-lc $(QT_MT_LIBS) $(OGL_LIBS) \
- -L${KERNEL_ROOT_DIR}/lib/salome
+ $(KERNEL_LDFLAGS)
#LIBS += -Xlinker -export-dynamic $(PYTHON_LIBS)
LIB_SERVER_IDL =
CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) \
- -ftemplate-depth-42 -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+ -ftemplate-depth-42 $(KERNEL_CXXFLAGS) $(GUI_CXXFLAGS)
LDFLAGS+=$(PYTHON_LIBS) $(QT_MT_LIBS) $(VTK_LIBS) $(OGL_LIBS) \
-lSalomeApp -lsuit -lSalomeNS -lEvent \
-lSalomeLifeCycleCORBA -lSalomeNotification -lSUPERVGraph \
- -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeDS -lSalomeDSClient -L${GUI_ROOT_DIR}/lib/salome
+ $(KERNEL_LDFLAGS) -lSalomeDS -lSalomeDSClient $(GUI_LDFLAGS)
#-lqsplitterP
LIBS+=
BIN_SERVER_IDL =
CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_MT_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(OCC_INCLUDES) $(BOOST_CPPFLAGS)\
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS)
CXXFLAGS += -g -D__x86__ -D__linux__ -ftemplate-depth-42 -Wall \
- -I${KERNEL_ROOT_DIR}/include/salome -L$(top_builddir)/lib/salome
+ $(KERNEL_CXXFLAGS) $(SUPERV_LDFLAGS)
LDFLAGS+= -lSalomeSuperVisionEditor -lSalomeSuperVisionExecutor -lSalomeSuperVisionBase \
-lSalomeContainer -lSalomeNotification -lSalomeNS -lSalomeLifeCycleCORBA \
-lOpUtil -lRegistry -lTOOLSDS -lSALOMELocalTrace \
- $(QT_MT_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome
+ $(QT_MT_LIBS) $(KERNEL_LDFLAGS)
#LIBS += -Xlinker -export-dynamic $(PYTHON_LIBS)
-LDFLAGSFORBIN += $(LDFLAGS) -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeResourcesManager -lSALOMEBasics
+LDFLAGSFORBIN += $(LDFLAGS) $(KERNEL_LDFLAGS) -lSalomeResourcesManager -lSALOMEBasics
#LIBSFORBIN += $(LIBS)
@CONCLUDE@