Salome HOME
30d72430e467a82d94f077aac3fbf0b36a56db9a
[modules/kernel.git] / src / Makefile.am
1 # Copyright (C) 2007-2012  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
23 #  File   : Makefile.am
24 #  Author : Guillaume Boulant (CSSI)
25 #  Module : KERNEL
26 # $Header$
27 #
28 SUBDIR_BASE = \
29   Basics \
30   SALOMELocalTrace \
31   HDFPersist\
32   KERNEL_PY
33
34 SUBDIR_CORBA = \
35   DF \
36   Logger \
37   SALOMETraceCollector \
38   Utils \
39   NamingService \
40   GenericObj \
41   Registry \
42   ModuleCatalog \
43   ResourcesManager \
44   Notification \
45   NOTIFICATION_SWIG \
46   Container \
47   TestContainer \
48   Launcher \
49   LifeCycleCORBA \
50   LifeCycleCORBA_SWIG \
51   SALOMEDSClient \
52   TOOLSDS \
53   SALOMEDSImpl \
54   SALOMEDS \
55   KernelHelpers \
56   ModuleGenerator \
57   Communication \
58   Communication_SWIG \
59   DSC
60
61 SUBDIR_CPPUNIT_BASE= \
62   Basics/Test \
63   SALOMELocalTrace/Test
64
65 SUBDIR_CPPUNIT_CORBA = \
66   Logger/Test \
67   SALOMETraceCollector/Test \
68   Utils/Test \
69   NamingService/Test \
70   LifeCycleCORBA/Test \
71   LifeCycleCORBA_SWIG/Test \
72   SALOMEDSImpl/Test \
73   SALOMEDS/Test \
74   KernelHelpers/Test
75
76 SUBDIR_CPPUNIT_GENERAL = \
77   UnitTests
78
79 SUBDIR_MPI = \
80   MPIContainer \
81   TestMPIContainer
82
83 SUBDIR_PARALLEL= ParallelContainer
84                  
85
86 DIST_SUBDIRS = \
87   $(SUBDIR_BASE) \
88   $(SUBDIR_CORBA) \
89   $(SUBDIR_MPI) \
90   $(SUBDIR_PARALLEL) \
91   $(SUBDIR_CPPUNIT_BASE) \
92   $(SUBDIR_CPPUNIT_CORBA) \
93   $(SUBDIR_CPPUNIT_GENERAL)
94
95 #
96 # The following packages are built under conditions.
97 # A condition is defined using the macro AM_CONDITIONAL (see the
98 # check_cppunit for example with CPPUNIT_IS_OK.
99 #
100
101 if WITHONLYLAUNCHER
102   SUBDIRS = Basics ResourcesManager Launcher
103 else
104
105 SUBDIRS = $(SUBDIR_BASE)
106
107 if CORBA_GEN
108   SUBDIRS += $(SUBDIR_CORBA)
109 endif
110
111 if MPI_IS_OK
112   SUBDIRS += $(SUBDIR_MPI)
113 endif
114
115 if CPPUNIT_IS_OK
116 if CORBA_GEN
117   SUBDIRS += \
118         $(SUBDIR_CPPUNIT_BASE)   \
119         $(SUBDIR_CPPUNIT_CORBA)  \
120         $(SUBDIR_CPPUNIT_GENERAL)
121 else
122   SUBDIRS += \
123         $(SUBDIR_CPPUNIT_BASE)   \
124         $(SUBDIR_CPPUNIT_GENERAL)
125 endif
126 endif
127 if WITH_PACO_PARALLEL
128   SUBDIRS += $(SUBDIR_PARALLEL)
129 endif
130
131 endif
132 EXTRA_DIST = win32pm