LIBS=@LIBS@
-LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
+LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
# add libstdc++ to link c++ library with libtool !
LDFLAGS+= -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@
OCC_INCLUDES=@CAS_CPPFLAGS@
OCC_CXXFLAGS=@CAS_CXXFLAGS@
-#OCC_KERNEL_LIBS=@CAS_KERNEL@
-#OCC_OCAF_LIBS=@CAS_OCAF@
-#OCC_VIEWER_LIBS=@CAS_VIEWER@
-#OCC_MODELER_LIBS=@CAS_MODELER@
-#OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
-#OCC_LIBS=@CAS_LDFLAGS@
CAS_KERNEL=@CAS_KERNEL@
CAS_OCAF=@CAS_OCAF@
CAS_VIEWER=@CAS_VIEWER@
# 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@
+
+MED_ROOT_DIR=@MED_ROOT_DIR@
+MED_LDFLAGS=@MED_LDFLAGS@
+MED_CXXFLAGS=@MED_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)
$(QT_INCLUDES) \
$(OCC_INCLUDES) \
$(OCC_CXXFLAGS) \
- -I${KERNEL_ROOT_DIR}/include/salome \
- -I${MED_ROOT_DIR}/include/salome \
- -I${GUI_ROOT_DIR}/include/salome \
+ $(KERNEL_CXXFLAGS) \
+ $(MED_CXXFLAGS) \
+ $(GUI_CXXFLAGS) \
$(BOOST_CPPFLAGS)
LDFLAGS+= $(VTK_LIBS) \
$(CAS_KERNEL) \
$(CAS_MATH) \
$(BOOST_LIBS) -lboost_thread${BOOST_LIBSUFFIX} \
- -L${MED_ROOT_DIR}/lib/salome -lMEDWrapper \
- -L${GUI_ROOT_DIR}/lib/salome -lVTKViewer
+ $(MED_LDFLAGS) -lMEDWrapper \
+ $(GUI_LDFLAGS) -lVTKViewer
LDFLAGSFORBIN=$(LDFLAGS) -lMEDWrapper_V2_2 -lMEDWrapper_V2_1 -lMEDWrapperBase -lmed_V2_1 -lVTKViewer -lsuit -lqtx
EXPORT_HEADERS =
# additionnal information to compil and link file
-CPPFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(KERNEL_CXXFLAGS)
-LDFLAGS += -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer
+LDFLAGS += $(KERNEL_LDFLAGS) -lSalomeContainer
LIBS+=
CPPFLAGS += -ftemplate-depth-32 $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) \
$(PYTHON_INCLUDES) $(HDF5_INCLUDES) $(QWT_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome $(BOOST_CPPFLAGS)
+ $(KERNEL_CXXFLAGS) $(BOOST_CPPFLAGS)
CXXFLAGS += -ftemplate-depth-32 $(OCC_CXXFLAGS) \
- -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS) $(GUI_CXXFLAGS)
-LDFLAGS += $(QWT_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome -L${GUI_ROOT_DIR}/lib/salome
+LDFLAGS += $(QWT_LIBS) $(KERNEL_LDFLAGS) $(GUI_LDFLAGS)
@CONCLUDE@
$(OCC_INCLUDES) \
$(VTK_INCLUDES) \
$(BOOST_CPPFLAGS) \
- -I${MED_ROOT_DIR}/include/salome \
- -I${GUI_ROOT_DIR}/include/salome \
- -I${KERNEL_ROOT_DIR}/include/salome
+ $(MED_CXXFLAGS) \
+ $(GUI_CXXFLAGS) \
+ $(KERNEL_CXXFLAGS)
LDFLAGS+= \
$(VTK_LIBS) \
$(BOOST_LIBS) \
- -L${GUI_ROOT_DIR}/lib/salome \
- -L${KERNEL_ROOT_DIR}/lib/salome
+ $(GUI_LDFLAGS) \
+ $(KERNEL_LDFLAGS)
LIBS+= \
-lboost_signals${BOOST_LIBSUFFIX} \
CPPFLAGS+= \
$(VTK_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome \
- -I${GUI_ROOT_DIR}/include/salome \
- -I${MED_ROOT_DIR}/include/salome \
+ $(KERNEL_CXXFLAGS) \
+ $(GUI_CXXFLAGS) \
+ $(MED_CXXFLAGS) \
$(HDF5_INCLUDES) $(BOOST_CPPFLAGS)
LDFLAGS+= \
$(VTK_LIBS) -lVTKViewer -lVisuConvertor \
- -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace \
- -L${GUI_ROOT_DIR}/lib/salome \
- -L${MED_ROOT_DIR}/lib/salome
+ $(KERNEL_LDFLAGS) -lSALOMELocalTrace \
+ $(GUI_LDFLAGS) \
+ $(MED_LDFLAGS)
LDFLAGSFORBIN=$(LDFLAGS) -lOpUtil -lMEDWrapper -lMEDWrapper_V2_2 -lMEDWrapper_V2_1 -lMEDWrapperBase -lmed_V2_1 -lsuit -lqtx -lSALOMEBasics
CPPFLAGS += -ftemplate-depth-32 $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) \
$(PYTHON_INCLUDES) $(HDF5_INCLUDES) $(QWT_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome \
- -I${MED_ROOT_DIR}/include/salome \
+ $(KERNEL_CXXFLAGS) \
+ $(MED_CXXFLAGS) \
$(BOOST_CPPFLAGS)
CXXFLAGS += -ftemplate-depth-32 $(OCC_CXXFLAGS) \
- -I${KERNEL_ROOT_DIR}/include/salome \
- -I${GUI_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS) \
+ $(GUI_CXXFLAGS)
LDFLAGS += $(QWT_LIBS) -lSalomeNS \
-lSVTK -lVVTK -lSPlot2d -lVisuObject -lVISUEngineImpl -lVISUGUITOOLS \
- -L${KERNEL_ROOT_DIR}/lib/salome \
- -L${GUI_ROOT_DIR}/lib/salome
+ $(KERNEL_LDFLAGS) \
+ $(GUI_LDFLAGS)
@CONCLUDE@
$(HDF5_INCLUDES) \
$(QWT_INCLUDES) \
$(BOOST_CPPFLAGS)\
- -I${KERNEL_ROOT_DIR}/include/salome \
- -I${MED_ROOT_DIR}/include/salome \
- -I${GUI_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS) \
+ $(MED_CXXFLAGS) \
+ $(GUI_CXXFLAGS)
LDFLAGS += \
$(PYTHON_LIBS) \
$(VTK_LIBS) \
$(QWT_LIBS) \
$(BOOST_LIBS) \
- -L${KERNEL_ROOT_DIR}/lib/salome \
- -L${GUI_ROOT_DIR}/lib/salome \
- -L${MED_ROOT_DIR}/lib/salome
+ $(KERNEL_LDFLAGS) \
+ $(GUI_LDFLAGS) \
+ $(MED_LDFLAGS)
LIBS+= -lboost_signals${BOOST_LIBSUFFIX} \
-lSalomeHDFPersist \
-lVISUGUITOOLS
LDFLAGSFORBIN=$(LDFLAGS) $(LIBS) \
- -L${KERNEL_ROOT_DIR}/lib/salome \
+ $(KERNEL_LDFLAGS) \
-lSALOMEBasics \
-lSalomeCatalog \
-lwith_loggerTraceCollector \
$(HDF5_INCLUDES) \
$(QT_INCLUDES) \
$(VTK_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome \
- -I${GUI_ROOT_DIR}/include/salome \
- -I${MED_ROOT_DIR}/include/salome \
+ $(KERNEL_CXXFLAGS) \
+ $(GUI_CXXFLAGS) \
+ $(MED_CXXFLAGS) \
$(BOOST_CPPFLAGS)
LDFLAGS += $(PYTHON_LIBS) -lVisuConvertor -lVisuPipeLine
$(OCC_INCLUDES) \
$(VTK_INCLUDES) \
$(BOOST_CPPFLAGS) \
- -I$(KERNEL_ROOT_DIR)/include/salome \
- -I$(GUI_ROOT_DIR)/include/salome \
- -I${MED_ROOT_DIR}/include/salome
+ $(KERNEL_CXXFLAGS) \
+ $(GUI_CXXFLAGS) \
+ $(MED_CXXFLAGS)
LDFLAGS += \
$(QT_MT_LIBS) \
$(OCC_LIBS) \
$(VTK_LIBS) \
- -L$(KERNEL_ROOT_DIR)/lib/salome \
- -L$(GUI_ROOT_DIR)/lib/salome
+ $(KERNEL_LDFLAGS) \
+ $(GUI_LDFLAGS)
LIBS+= -lsuit -lCAM -lSalomeObject -lSVTK -lOpUtil