Salome HOME
OK thanks to INV !
[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 MED_ENABLE_MED3
33   COMMON_SUBDIRS += MEDLoader
34
35 if CPPUNIT_IS_OK
36  INTERPTEST_SUBDIRS = INTERP_KERNELTest
37 endif
38
39 endif
40
41 ###
42 # ParaMEDMEM is enabled if MPI is detected ok
43 # In addition, ParaMEDMEM_Swig is not available in MICROMED mode
44 ###
45 PARAMEDMEM_SUBDIRS =
46
47 if MPI_IS_OK
48   PARAMEDMEM_SUBDIRS += ParaMEDMEM
49 if MED_ENABLE_MED3
50     PARAMEDMEM_SUBDIRS += ParaMEDLoader
51 if CPPUNIT_IS_OK
52       PARAMEDMEM_SUBDIRS += ParaMEDMEMTest
53 endif
54 endif
55 endif
56
57 ###
58 # Other packages are not available in MICROMED mode
59 ###
60
61 if !MED_ENABLE_MICROMED
62
63   BASE_SUBDIRS = MEDCoupling_Swig
64
65 if MPI_IS_OK
66     PARAMEDMEM_SUBDIRS += ParaMEDMEM_Swig
67 endif
68
69 if MED_ENABLE_SPLITTER
70     SPLITTER_SUBDIRS = MEDPartitioner
71 endif
72
73 if MED_ENABLE_RENUMBER
74     RENUMBER_SUBDIRS = RENUMBER
75 endif
76
77 if MED_ENABLE_KERNEL
78     KERNEL_SUBDIRS = MEDCouplingCorba MEDCouplingCorba_Swig
79
80 if MPI_IS_OK
81   KERNEL_SUBDIRS += ParaMEDCouplingCorba ParaMEDMEMComponent
82 endif
83
84 if MED_ENABLE_MED3
85
86   KERNEL_SUBDIRS += MEDCalculator
87 endif
88
89 endif
90
91 if MED_ENABLE_GUI
92     GUI_SUBDIRS = MEDGUI MEDOP
93 endif
94
95 endif
96
97 SUBDIRS = $(COMMON_SUBDIRS) $(PARAMEDMEM_SUBDIRS) $(BASE_SUBDIRS) $(INTERPTEST_SUBDIRS) \
98           $(SPLITTER_SUBDIRS) $(RENUMBER_SUBDIRS) $(KERNEL_SUBDIRS) $(GUI_SUBDIRS)
99
100 DIST_SUBDIRS= \
101         INTERP_KERNEL MEDCoupling MEDCoupling_Swig  \
102         INTERP_KERNELTest ParaMEDMEM ParaMEDMEM_Swig MEDLoader \
103         MEDPartitioner RENUMBER MEDCouplingCorba MEDCouplingCorba_Swig \
104         ParaMEDLoader ParaMEDMEMComponent \
105         ParaMEDCouplingCorba MEDCalculator MEDGUI MEDOP ParaMEDMEMTest