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