Salome HOME
MEDMEM suppression
[modules/med.git] / src / Makefile.am
index 7f55d52cf541cd63ece4df1573d1781e937e3074..d8f3bdbd2f86afb913570f0fbb2a15b6f2f60000 100644 (file)
-#  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
 #
-#  Copyright (C) 2003-2007  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 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.
 #
-#  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
 #
-#  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-SUBDIRS = MEDWrapper INTERP_KERNEL MEDMEM MEDCoupling INTERPOLATION MEDMEM_SWIG MEDMEMBinTest $(MPIDIR)
+###
+# Common subdirectories
+###
+
+COMMON_SUBDIRS = INTERP_KERNEL MEDCoupling 
+
+###
+# Unitary tests for INTERP_KERNEL
+### 
 
 if CPPUNIT_IS_OK
SUBDIRS+= MEDMEMCppTest INTERP_KERNELTest
INTERPTEST_SUBDIRS = INTERP_KERNELTest
 endif
 
+if MED_ENABLE_MED3
+  COMMON_SUBDIRS += MEDLoader
+endif
+
+###
+# ParaMEDMEM is enabled if MPI is detected ok
+# In addition, ParaMEDMEM_Swig is not available in MICROMED mode
+###
+PARAMEDMEM_SUBDIRS =
+
 if MPI_IS_OK
-  SUBDIRS+= ParaMEDMEM
+  PARAMEDMEM_SUBDIRS += ParaMEDMEM
+if MED_ENABLE_MED3
+    PARAMEDMEM_SUBDIRS += ParaMEDLoader
+if CPPUNIT_IS_OK
+      PARAMEDMEM_SUBDIRS += ParaMEDMEMTest
+endif
+endif
 endif
 
-if MED_ENABLE_SPLITTER
-  SUBDIRS+= MEDSPLITTER MEDSPLITTER_Swig
+###
+# Other packages are not available in MICROMED mode
+###
+
+if !MED_ENABLE_MICROMED
 
+  BASE_SUBDIRS = MEDWrapper MEDCoupling_Swig
 
-# MULTIPR
-if MED_ENABLE_METIS
-  MULTIPR_DIR = MULTIPR
+if MPI_IS_OK
+    PARAMEDMEM_SUBDIRS += ParaMEDMEM_Swig
 endif
-if MED_ENABLE_SCOTCH
-  MULTIPR_DIR = MULTIPR
+
+if MED_ENABLE_SPLITTER
+    SPLITTER_SUBDIRS = MEDPartitioner
 endif
 
+if MED_ENABLE_RENUMBER
+    RENUMBER_SUBDIRS = RENUMBER
 endif
 
 if MED_ENABLE_KERNEL
-  SUBDIRS+= $(MULTIPR_DIR) MEDMEM_I MED MedCorba_Swig MED_SWIG MedClient
+    KERNEL_SUBDIRS = MEDCouplingCorba MEDCouplingCorba_Swig
+
+if MPI_IS_OK
+  KERNEL_SUBDIRS += ParaMEDCouplingCorba ParaMEDMEMComponent
+endif
+
+if MED_ENABLE_MED3
+
+  KERNEL_SUBDIRS += MEDCalculator
+endif
+
 endif
 
 if MED_ENABLE_GUI
-  SUBDIRS+= MEDGUI
+    GUI_SUBDIRS = MEDGUI MEDOP
 endif
 
-DIST_SUBDIRS= MEDWrapper INTERPOLATION MEDCoupling MEDMEM INTERP_KERNEL MEDMEM_SWIG MEDMEMBinTest MEDMEMCppTest MEDSPLITTER MULTIPR ParaMEDMEM ParaMEDMEM_Swig MEDMEM_I MED MedCorba_Swig MED_SWIG MedClient MEDGUI
+endif
+
+SUBDIRS = $(COMMON_SUBDIRS) $(PARAMEDMEM_SUBDIRS) $(BASE_SUBDIRS) $(INTERPTEST_SUBDIRS) \
+          $(SPLITTER_SUBDIRS) $(RENUMBER_SUBDIRS) $(KERNEL_SUBDIRS) $(GUI_SUBDIRS)
+
+DIST_SUBDIRS= \
+       MEDWrapper INTERP_KERNEL MEDCoupling MEDCoupling_Swig  \
+       INTERP_KERNELTest ParaMEDMEM ParaMEDMEM_Swig MEDLoader \
+       MEDPartitioner RENUMBER MEDCouplingCorba MEDCouplingCorba_Swig \
+       ParaMEDLoader ParaMEDMEMComponent \
+       ParaMEDCouplingCorba MEDCalculator MEDGUI MEDOP ParaMEDMEMTest