Salome HOME
Add new variable for finding OCC libraries during compilation.
authormkr <mkr@opencascade.com>
Wed, 16 Nov 2005 12:00:03 +0000 (12:00 +0000)
committermkr <mkr@opencascade.com>
Wed, 16 Nov 2005 12:00:03 +0000 (12:00 +0000)
adm_local/unix/make_commence.in
src/SMESH_I/Makefile.in
src/StdMeshers/Makefile.in

index e7e10c9..5e55654 100644 (file)
@@ -108,6 +108,7 @@ OCC_VIEWER_LIBS=@CAS_VIEWER@
 OCC_MODELER_LIBS=@CAS_MODELER@
 OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
 OCC_LIBS=@CAS_LDFLAGS@
+OCC_LDPATH=@CAS_LDPATH@
 
 # MPICH
 
index f5fe81b..2d727ce 100644 (file)
@@ -90,7 +90,7 @@ CXXFLAGS+= $(OCC_CXXFLAGS) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
 
 LDFLAGS+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lRegistry -lSalomeHDFPersist -lSalomeLifeCycleCORBA -lTOOLSDS -lSalomeGenericObj \
          -L${GEOM_ROOT_DIR}/lib/salome -lGEOMClient -lSMESHimpl -lSMESHControls \
-    -L${CASROOT}/lin/lib -lTKCDF -lTKBO
+    $(OCC_LDPATH) -lTKCDF -lTKBO
 
 
 LDFLAGSFORBIN += -lSMDS -lSMESHDS \
@@ -100,6 +100,6 @@ LDFLAGSFORBIN += -lSMDS -lSMESHDS \
                -lOpUtil -lSALOMELocalTrace -lSALOMEBasics -lSalomeNotification -lCASCatch \
                -lSalomeHDFPersist -lSalomeLifeCycleCORBA -lTOOLSDS -lSalomeGenericObj \
                -L${GEOM_ROOT_DIR}/lib/salome -lGEOMClient -lSMESHimpl -lSMESHControls -lNMTTools -lNMTDS \
-     -L${CASROOT}/lin/lib -lTKCDF -lTKBO -lTKMath
+     $(OCC_LDPATH) -lTKCDF -lTKBO -lTKMath
 
 @CONCLUDE@
index 762fbf7..385d643 100644 (file)
@@ -87,6 +87,6 @@ BIN_SRC =
 CPPFLAGS+= $(OCC_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome $(BOOST_CPPFLAGS)
 CXXFLAGS+= $(OCC_CXXFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GEOM_ROOT_DIR}/include/salome
 
-LDFLAGS+= -lSMESHimpl -lMEFISTO2D -L${CASROOT}/Linux/lib -lTKAdvTools -L${KERNEL_ROOT_DIR}/lib/salome -L${GEOM_ROOT_DIR}/lib/salome
+LDFLAGS+= -lSMESHimpl -lMEFISTO2D $(OCC_LDPATH) -lTKAdvTools -L${KERNEL_ROOT_DIR}/lib/salome -L${GEOM_ROOT_DIR}/lib/salome
 
 @CONCLUDE@