Salome HOME
Porting KERNEL on new XML reader.
[modules/kernel.git] / src / Makefile.am
1 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3
4 #  This library is free software; you can redistribute it and/or 
5 #  modify it under the terms of the GNU Lesser General Public 
6 #  License as published by the Free Software Foundation; either 
7 #  version 2.1 of the License. 
8
9 #  This library is distributed in the hope that it will be useful, 
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 #  Lesser General Public License for more details. 
13
14 #  You should have received a copy of the GNU Lesser General Public 
15 #  License along with this library; if not, write to the Free Software 
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 #
21 #
22 #  File   : Makefile.am
23 #  Author : Guillaume Boulant (CSSI)
24 #  Module : KERNEL
25 # $Header$
26
27 SUBDIR_BASE = \
28   Basics \
29   SALOMELocalTrace \
30   CASCatch \
31   HDFPersist
32
33 SUBDIR_CORBA = \
34   Logger \
35   SALOMETraceCollector \
36   Utils \
37   NamingService \
38   GenericObj \
39   Registry \
40   ModuleCatalog \
41   ResourcesManager \
42   Notification \
43   NOTIFICATION_SWIG \
44   Container \
45   TestContainer \
46   LifeCycleCORBA \
47   LifeCycleCORBA_SWIG \
48   SALOMEDSClient \
49   TOOLSDS \
50   SALOMEDSImpl \
51   SALOMEDS \
52   KERNEL_PY \
53   ModuleGenerator \
54   Communication \
55   Communication_SWIG \
56   DSC
57
58 SUBDIR_CPPUNIT_BASE= \
59   Basics/Test \
60   SALOMELocalTrace/Test
61
62 SUBDIR_CPPUNIT_CORBA = \
63   Logger/Test \
64   SALOMETraceCollector/Test \
65   Utils/Test \
66   NamingService/Test \
67   LifeCycleCORBA/Test \
68   LifeCycleCORBA_SWIG/Test \
69   SALOMEDSImpl/Test \
70   SALOMEDS/Test
71
72 SUBDIR_CPPUNIT_GENERAL = \
73   UnitTests
74
75 SUBDIR_MPI = \
76   MPIContainer \
77   TestMPIContainer
78
79 SUBDIR_BATCH= \
80   Batch \
81   Batch_SWIG
82
83 SUBDIR_PARALLEL= ParallelContainer
84                  
85
86 DIST_SUBDIRS = \
87   $(SUBDIR_BASE) \
88   $(SUBDIR_CORBA) \
89   $(SUBDIR_MPI) \
90   $(SUBDIR_PARALLEL) \
91   $(SUBDIR_BATCH) \
92   $(SUBDIR_CPPUNIT_BASE) \
93   $(SUBDIR_CPPUNIT_CORBA) \
94   $(SUBDIR_CPPUNIT_GENERAL)
95
96 #
97 # The following packages are built under conditions.
98 # A condition is defined using the macro AM_CONDITIONAL (see the
99 # check_cppunit for example with CPPUNIT_IS_OK.
100 #
101
102 SUBDIRS = $(SUBDIR_BASE)
103
104 if CORBA_GEN
105   SUBDIRS += $(SUBDIR_CORBA)
106 endif
107
108 #if MPI_IS_OK
109 #  SUBDIRS += $(SUBDIR_MPI)
110 #endif
111
112 if WITH_BATCH
113   SUBDIRS += $(SUBDIR_BATCH)
114 endif
115
116 if CPPUNIT_IS_OK
117 if CORBA_GEN
118   SUBDIRS += \
119         $(SUBDIR_CPPUNIT_BASE)   \
120         $(SUBDIR_CPPUNIT_CORBA)  \
121         $(SUBDIR_CPPUNIT_GENERAL)
122 else
123   SUBDIRS += \
124         $(SUBDIR_CPPUNIT_BASE)   \
125         $(SUBDIR_CPPUNIT_GENERAL)
126 endif
127 endif
128 if WITH_PACO_PARALLEL
129 SUBDIRS += $(SUBDIR_PARALLEL)
130 endif