# Module : SMESH
# $Header$
+
top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
srcdir=@srcdir@
-VPATH=.:@srcdir@:@top_srcdir@/idl
+VPATH=.:@srcdir@:@top_srcdir@/idl:$(top_builddir)/idl:
@COMMENCE@
-EXPORT_PYSCRIPTS = smeshpy.py SMESH_test.py
+# header files
+EXPORT_HEADERS= \
+ SMESH_Gen_i.hxx \
+ SMESH_Algo_i.hxx \
+ SMESH_1D_Algo_i.hxx \
+ SMESH_2D_Algo_i.hxx \
+ SMESH_3D_Algo_i.hxx \
+ SMESH_subMesh_i.hxx \
+ SMESH_Mesh_i.hxx \
+ SMESH_Hypothesis_i.hxx \
+ SMESH_PythonDump.hxx \
+ SMESH.hxx
+
+EXPORT_PYSCRIPTS = smeshpy.py
# Libraries targets
LIB= libSMESHEngine.la
-LIB_SRC = SMESH_Gen_i.cxx SMESH_Mesh_i.cxx SMESH_MEDMesh_i.cxx \
- SMESH_MEDFamily_i.cxx SMESH_MEDSupport_i.cxx \
- SMESH_subMesh_i.cxx \
- SMESH_MeshEditor_i.cxx \
- SMESH_Hypothesis_i.cxx \
- SMESH_topo.cxx SMESH_HypothesisFactory_i.cxx \
- SMESH_Algo_i.cxx \
- SMESH_1D_Algo_i.cxx \
- SMESH_2D_Algo_i.cxx \
- SMESH_3D_Algo_i.cxx \
- SMESH_NumberOfSegments_i.cxx \
- SMESH_LocalLength_i.cxx \
- SMESH_MaxElementArea_i.cxx \
- SMESH_MaxElementVolume_i.cxx \
- SMESH_Regular_1D_i.cxx \
- SMESH_Quadrangle_2D_i.cxx \
- SMESH_MEFISTO_2D_i.cxx \
- SMESH_Hexa_3D_i.cxx
-
-LIB_SERVER_IDL = SMESH_Gen.idl SMESH_Hypothesis.idl SMESH_Mesh.idl \
- SALOME_Component.idl SALOME_Exception.idl \
- SMESH_BasicHypothesis.idl
-
-LIB_CLIENT_IDL = SALOMEDS.idl GEOM_Gen.idl GEOM_Shape.idl MED.idl SALOMEDS_Attributes.idl
+LIB_SRC = \
+ SMESH_Gen_i.cxx \
+ SMESH_Gen_i_1.cxx \
+ SMESH_DumpPython.cxx \
+ SMESH_Mesh_i.cxx \
+ SMESH_MEDMesh_i.cxx \
+ SMESH_MEDFamily_i.cxx \
+ SMESH_MEDSupport_i.cxx \
+ SMESH_subMesh_i.cxx \
+ SMESH_MeshEditor_i.cxx \
+ SMESH_Hypothesis_i.cxx \
+ SMESH_Algo_i.cxx \
+ SMESH_1D_Algo_i.cxx \
+ SMESH_2D_Algo_i.cxx \
+ SMESH_3D_Algo_i.cxx \
+ SMESH_Filter_i.cxx \
+ SMESH_Group_i.cxx \
+ SMESH_Pattern_i.cxx \
+ SMESH_2smeshpy.cxx
+
+LIB_SERVER_IDL = \
+ SMESH_Gen.idl \
+ SMESH_Hypothesis.idl \
+ SMESH_Mesh.idl \
+ SALOME_Component.idl \
+ SALOME_Exception.idl \
+ SMESH_Filter.idl \
+ SMESH_Group.idl \
+ SMESH_Pattern.idl
+
+LIB_CLIENT_IDL = \
+ SALOMEDS.idl \
+ GEOM_Gen.idl \
+ MED.idl \
+ SALOMEDS_Attributes.idl \
+ SALOME_GenericObj.idl \
+ SALOME_Comm.idl
# Executables targets
-BIN =
+BIN = SMESHEngine
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) \
+ $(HDF5_INCLUDES) \
+ $(BOOST_CPPFLAGS) \
+ -I${KERNEL_ROOT_DIR}/include/salome \
+ -I${MED_ROOT_DIR}/include/salome \
+ -I${GEOM_ROOT_DIR}/include/salome
-#IDLCXXFLAGS+= -Wbtp
+CXXFLAGS+= \
+ $(OCC_CXXFLAGS) \
+ $(HDF5_INCLUDES) \
+ -I${KERNEL_ROOT_DIR}/include/salome \
+ -I${MED_ROOT_DIR}/include/salome \
+ -I${GEOM_ROOT_DIR}/include/salome
-LDFLAGS+= $(CAS_KERNEL) $(CAS_OCAF) $(CAS_VIEWER) $(CAS_MODELER) $(HDF5_LIBS) $(MED2_LIBS) -lSMESHimpl -lSalomeContainer -lSalomeNS -lTOOLSDS -lRegistry -lSalomeHDFPersist -lOpUtil -lGeometryClient -lSMESHDS -lSMDS -lMEFISTO2D -lMeshDriverMED -lSalomeLifeCycleCORBA
+LDFLAGS+= \
+ -L${KERNEL_ROOT_DIR}/lib/salome \
+ -lSalomeContainer \
+ -lSalomeNS \
+ -lRegistry \
+ -lSalomeHDFPersist \
+ -lSalomeLifeCycleCORBA \
+ -lTOOLSDS \
+ -lSalomeGenericObj \
+ -L${GEOM_ROOT_DIR}/lib/salome \
+ -lGEOMClient \
+ -lSMESHimpl \
+ -lSMESHControls \
+ $(OCC_LDPATH) \
+ -lTKCDF \
+ -lTKBO
-@CONCLUDE@
+LDFLAGSFORBIN+= \
+ -lSMDS \
+ -lSMESHDS \
+ -L${MED_ROOT_DIR}/lib/salome \
+ -lMEDWrapper \
+ -lMEDWrapperBase \
+ -lMEDWrapper_V2_1 \
+ -lMEDWrapper_V2_2 \
+ -lmed_V2_1 \
+ -lMeshDriver \
+ -lMeshDriverMED \
+ -lMeshDriverUNV \
+ -lMeshDriverDAT \
+ -lMeshDriverSTL \
+ -L${KERNEL_ROOT_DIR}/lib/salome \
+ -lSalomeContainer \
+ -lSalomeNS \
+ -lRegistry \
+ -lSalomeResourcesManager \
+ -lOpUtil \
+ -lSALOMELocalTrace \
+ -lSALOMEBasics \
+ -lSalomeNotification \
+ -lSalomeHDFPersist \
+ -lSalomeLifeCycleCORBA \
+ -lTOOLSDS \
+ -lSalomeGenericObj \
+ -L${GEOM_ROOT_DIR}/lib/salome \
+ -lGEOMClient \
+ -lSMESHimpl \
+ -lSMESHControls \
+ -lNMTTools \
+ -lNMTDS \
+ $(OCC_LDPATH) \
+ -lTKCDF \
+ -lTKBO \
+ -lTKMath
+@CONCLUDE@