Salome HOME
Correcting a problem araising when building the SMESH module whithout Netgen.
[modules/smesh.git] / src / SMESH / Makefile.in
index cfad957720ec2145f115f4f27426103189655886..ef442ef40ece61a948208134811f878f32b4f4c8 100644 (file)
@@ -1,13 +1,31 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : lun mai  6 13:33:11 CEST 2002
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2002
+#  SMESH SMESH : implementaion of SMESH idl descriptions
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SMESH
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
 top_builddir=../..
 srcdir=@srcdir@
@@ -36,6 +54,7 @@ EXPORT_HEADERS= \
        SMESH_Quadrangle_2D.hxx \
        SMESH_MEFISTO_2D.hxx \
        SMESH_Hexa_3D.hxx \
+       SMESH_NETGEN_3D.hxx \
        SMESH_HypothesisCreator.hxx
 
 EXPORT_PYSCRIPTS =
@@ -70,12 +89,20 @@ BIN =
 BIN_SRC = 
 
 # additionnal information to compil and link file
-CPPFLAGS+= $(OCC_INCLUDES) $(MED2_INCLUDES) $(HDF5_INCLUDES)
-CXXFLAGS+= $(OCC_CXXFLAGS) $(MED2_INCLUDES) $(HDF5_INCLUDES)
+CPPFLAGS+= $(OCC_INCLUDES) $(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
+CXXFLAGS+= $(OCC_CXXFLAGS) $(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
 
 #IDLCXXFLAGS+= -Wbtp
 
-LDFLAGS+=  $(OCC_LIBS) $(HDF5_LIBS) $(MED2_LIBS) -lOpUtil -lSMESHDS -lSMDS -lMEFISTO2D -lMeshDriverDAT -lMeshDriverMED -lMeshDriverUNV
+LDFLAGS+= $(HDF5_LIBS) $(MED2_LIBS) -lOpUtil -lSMESHDS -lSMDS -lMEFISTO2D -lMeshDriverDAT -lMeshDriverMED -lMeshDriverUNV -L${KERNEL_ROOT_DIR}/lib/salome
+
+ifeq (@WITHNETGEN@,yes)
+  LIB_SRC+= SMESH_NETGEN_3D.cxx
+  NETGEN_INCLUDES=@NETGEN_INCLUDES@
+  CPPFLAGS+= $(NETGEN_INCLUDES)
+  CXXFLAGS+= $(NETGEN_INCLUDES)
+  LDFLAGS+=  -lNETGEN
+endif
 
 @CONCLUDE@