Salome HOME
MEDMEM suppression
[modules/med.git] / src / Makefile.am
1 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 include $(top_srcdir)/adm_local/unix/make_common_starter.am
21
22 ###
23 # Common subdirectories
24 ###
25
26 COMMON_SUBDIRS = INTERP_KERNEL MEDCoupling 
27
28 ###
29 # Unitary tests for INTERP_KERNEL
30 ### 
31
32 if CPPUNIT_IS_OK
33  INTERPTEST_SUBDIRS = INTERP_KERNELTest
34 endif
35
36 if MED_ENABLE_MED3
37   COMMON_SUBDIRS += MEDLoader
38 endif
39
40 ###
41 # ParaMEDMEM is enabled if MPI is detected ok
42 # In addition, ParaMEDMEM_Swig is not available in MICROMED mode
43 ###
44 PARAMEDMEM_SUBDIRS =
45
46 if MPI_IS_OK
47   PARAMEDMEM_SUBDIRS += ParaMEDMEM
48 if MED_ENABLE_MED3
49     PARAMEDMEM_SUBDIRS += ParaMEDLoader
50 if CPPUNIT_IS_OK
51       PARAMEDMEM_SUBDIRS += ParaMEDMEMTest
52 endif
53 endif
54 endif
55
56 ###
57 # Other packages are not available in MICROMED mode
58 ###
59
60 if !MED_ENABLE_MICROMED
61
62   BASE_SUBDIRS = MEDWrapper MEDCoupling_Swig
63
64 if MPI_IS_OK
65     PARAMEDMEM_SUBDIRS += ParaMEDMEM_Swig
66 endif
67
68 if MED_ENABLE_SPLITTER
69     SPLITTER_SUBDIRS = MEDPartitioner
70 endif
71
72 if MED_ENABLE_RENUMBER
73     RENUMBER_SUBDIRS = RENUMBER
74 endif
75
76 if MED_ENABLE_KERNEL
77     KERNEL_SUBDIRS = MEDCouplingCorba MEDCouplingCorba_Swig
78
79 if MPI_IS_OK
80   KERNEL_SUBDIRS += ParaMEDCouplingCorba ParaMEDMEMComponent
81 endif
82
83 if MED_ENABLE_MED3
84
85   KERNEL_SUBDIRS += MEDCalculator
86 endif
87
88 endif
89
90 if MED_ENABLE_GUI
91     GUI_SUBDIRS = MEDGUI MEDOP
92 endif
93
94 endif
95
96 SUBDIRS = $(COMMON_SUBDIRS) $(PARAMEDMEM_SUBDIRS) $(BASE_SUBDIRS) $(INTERPTEST_SUBDIRS) \
97           $(SPLITTER_SUBDIRS) $(RENUMBER_SUBDIRS) $(KERNEL_SUBDIRS) $(GUI_SUBDIRS)
98
99 DIST_SUBDIRS= \
100         MEDWrapper INTERP_KERNEL MEDCoupling MEDCoupling_Swig  \
101         INTERP_KERNELTest ParaMEDMEM ParaMEDMEM_Swig MEDLoader \
102         MEDPartitioner RENUMBER MEDCouplingCorba MEDCouplingCorba_Swig \
103         ParaMEDLoader ParaMEDMEMComponent \
104         ParaMEDCouplingCorba MEDCalculator MEDGUI MEDOP ParaMEDMEMTest