Salome HOME
Merge from V6_main 01/04/2013
[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 MEDMEM MEDCoupling_Swig MEDMEM_SWIG MEDMEMBinTest
63
64 if MPI_IS_OK
65     PARAMEDMEM_SUBDIRS += ParaMEDMEM_Swig
66 endif
67
68 if CPPUNIT_IS_OK
69     BASE_SUBDIRS += MEDMEMCppTest
70 endif
71
72 if MED_ENABLE_SPLITTER
73     SPLITTER_SUBDIRS = MEDSPLITTER MEDSPLITTER_Swig MEDPartitioner
74 endif
75
76 if MED_ENABLE_RENUMBER
77     RENUMBER_SUBDIRS = RENUMBER
78 endif
79
80 if MED_ENABLE_KERNEL
81     KERNEL_SUBDIRS = MEDCouplingCorba MEDCouplingCorba_Swig MEDMEM_I MED MedCorba_Swig MED_SWIG MedClient
82
83 if MPI_IS_OK
84   KERNEL_SUBDIRS += ParaMEDCouplingCorba ParaMEDMEMComponent
85 endif
86
87 if MED_ENABLE_MED3
88
89   KERNEL_SUBDIRS += MEDCalculator
90 endif
91
92 endif
93
94 if MED_ENABLE_GUI
95     GUI_SUBDIRS = MEDGUI MEDOP
96 endif
97
98 endif
99
100 SUBDIRS = $(COMMON_SUBDIRS) $(PARAMEDMEM_SUBDIRS) $(BASE_SUBDIRS) $(INTERPTEST_SUBDIRS) \
101           $(SPLITTER_SUBDIRS) $(RENUMBER_SUBDIRS) $(KERNEL_SUBDIRS) $(GUI_SUBDIRS)
102
103 DIST_SUBDIRS= \
104         MEDWrapper INTERP_KERNEL MEDMEM MEDCoupling MEDCoupling_Swig MEDMEM_SWIG    \
105         MEDMEMBinTest MEDMEMCppTest INTERP_KERNELTest ParaMEDMEM ParaMEDMEM_Swig MEDLoader \
106         MEDSPLITTER MEDSPLITTER_Swig MEDPartitioner RENUMBER MEDCouplingCorba MEDCouplingCorba_Swig \
107         MEDMEM_I MED MED_SWIG MedCorba_Swig ParaMEDLoader MedClient ParaMEDMEMComponent \
108         ParaMEDCouplingCorba MEDCalculator MEDGUI MEDOP ParaMEDMEMTest