Salome HOME
just a little modification
[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_BATCH= \
81   Batch \
82   Batch_SWIG
83
84 SUBDIR_PARALLEL= ParallelContainer
85                  
86
87 DIST_SUBDIRS = \
88   $(SUBDIR_BASE) \
89   $(SUBDIR_CORBA) \
90   $(SUBDIR_MPI) \
91   $(SUBDIR_PARALLEL) \
92   $(SUBDIR_BATCH) \
93   $(SUBDIR_CPPUNIT_BASE) \
94   $(SUBDIR_CPPUNIT_CORBA) \
95   $(SUBDIR_CPPUNIT_GENERAL)
96
97 #
98 # The following packages are built under conditions.
99 # A condition is defined using the macro AM_CONDITIONAL (see the
100 # check_cppunit for example with CPPUNIT_IS_OK.
101 #
102
103 if WITHONLYLAUNCHER
104   SUBDIRS = Basics Batch Batch_SWIG ResourcesManager Launcher
105 else
106
107 SUBDIRS = $(SUBDIR_BASE)
108
109 if WITH_BATCH
110   SUBDIRS += $(SUBDIR_BATCH)
111 endif
112
113 if CORBA_GEN
114   SUBDIRS += $(SUBDIR_CORBA)
115 endif
116
117 if MPI_IS_OK
118   SUBDIRS += $(SUBDIR_MPI)
119 endif
120
121 if CPPUNIT_IS_OK
122 if CORBA_GEN
123   SUBDIRS += \
124         $(SUBDIR_CPPUNIT_BASE)   \
125         $(SUBDIR_CPPUNIT_CORBA)  \
126         $(SUBDIR_CPPUNIT_GENERAL)
127 else
128   SUBDIRS += \
129         $(SUBDIR_CPPUNIT_BASE)   \
130         $(SUBDIR_CPPUNIT_GENERAL)
131 endif
132 endif
133 if WITH_PACO_PARALLEL
134   SUBDIRS += $(SUBDIR_PARALLEL)
135 endif
136
137 endif
138 EXTRA_DIST = win32pm