Salome HOME
Removed CASCatch
[modules/kernel.git] / src / Batch / Makefile.am
1 ####################################### library
2 #  SALOME Container : implementation of container and engine for Kernel
3 #
4 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
6
7 #  This library is free software; you can redistribute it and/or 
8 #  modify it under the terms of the GNU Lesser General Public 
9 #  License as published by the Free Software Foundation; either 
10 #  version 2.1 of the License. 
11
12 #  This library is distributed in the hope that it will be useful, 
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
15 #  Lesser General Public License for more details. 
16
17 #  You should have received a copy of the GNU Lesser General Public 
18 #  License along with this library; if not, write to the Free Software 
19 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
20
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #
23 #
24 #
25 #  File   : Makefile.in
26 #  Author : EDF
27 #  Module : SALOME
28 #  $Header$
29
30 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
31
32 # header files  
33 LIB_INCLUDES = \
34         Batch_APIInternalFailureException.hxx \
35         Batch_BatchManager.hxx \
36         Batch_BatchManagerCatalog.hxx \
37         Batch_BoolType.hxx \
38         Batch_CharType.hxx \
39         Batch_ConnexionFailureException.hxx \
40         Batch_Couple.hxx \
41         Batch_CoupleType.hxx \
42         Batch_Date.hxx \
43         Batch_DateType.hxx \
44         Batch_Environnement.hxx \
45         Batch_FactBatchManager.hxx \
46         Batch_GenericException.hxx \
47         Batch_GenericType.hxx \
48         Batch_IntType.hxx \
49         Batch_InvalidArgumentException.hxx \
50         Batch_InvalidKeyException.hxx \
51         Batch_Job.hxx \
52         Batch_JobId.hxx \
53         Batch_JobInfo.hxx \
54         Batch_ListIsFullException.hxx \
55         Batch_LongType.hxx \
56         Batch_MapKey.hxx \
57         Batch_NotYetImplementedException.hxx \
58         Batch_Parametre.hxx \
59         Batch_PyVersatile.hxx \
60         Batch_RunTimeException.hxx \
61         Batch_StringType.hxx \
62         Batch_TypeMismatchException.hxx \
63         BatchLight_BatchManager.hxx \
64         BatchLight_BatchManager_PBS.hxx \
65         BatchLight_BatchManager_SLURM.hxx \
66         BatchLight_Job.hxx \
67         MpiImpl.hxx
68
69
70 LIB_SRC = \
71         Batch_APIInternalFailureException.cxx \
72         Batch_BatchManager.cxx \
73         Batch_BatchManagerCatalog.cxx \
74         Batch_BoolType.cxx \
75         Batch_CharType.cxx \
76         Batch_ConnexionFailureException.cxx \
77         Batch_Couple.cxx \
78         Batch_CoupleType.cxx \
79         Batch_Date.cxx \
80         Batch_DateType.cxx \
81         Batch_Environnement.cxx \
82         Batch_FactBatchManager.cxx \
83         Batch_GenericException.cxx \
84         Batch_GenericType.cxx \
85         Batch_IntType.cxx \
86         Batch_InvalidArgumentException.cxx \
87         Batch_InvalidKeyException.cxx \
88         Batch_Job.cxx \
89         Batch_JobId.cxx \
90         Batch_JobInfo.cxx \
91         Batch_ListIsFullException.cxx \
92         Batch_LongType.cxx \
93         Batch_MapKey.cxx \
94         Batch_NotYetImplementedException.cxx \
95         Batch_Parametre.cxx \
96         Batch_PyVersatile.cxx \
97         Batch_RunTimeException.cxx \
98         Batch_StringType.cxx \
99         Batch_TypeMismatchException.cxx \
100         BatchLight_BatchManager.cxx \
101         BatchLight_BatchManager_SLURM.cxx \
102         BatchLight_BatchManager_PBS.cxx \
103         BatchLight_Job.cxx \
104         MpiImpl.cxx
105
106
107 LIB_CPPFLAGS = \
108         @PYTHON_INCLUDES@ \
109         -I$(srcdir)/../Basics \
110         -I$(srcdir)/../SALOMELocalTrace
111
112 LIB_LIBADD   = \
113         ../SALOMELocalTrace/libSALOMELocalTrace.la \
114         ../Basics/libSALOMEBasics.la
115
116
117 #
118 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
119 # Special add for local batch system
120 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
121 #
122 if WITH_LOCAL
123 LIB_INCLUDES +=\
124         Batch_Versatile.hxx \
125         Batch_BatchManager_Local.hxx \
126         Batch_BatchManager_Local_RSH.hxx \
127         Batch_BatchManager_Local_SH.hxx \
128         Batch_BatchManager_Local_SSH.hxx \
129         Batch_FactBatchManager_Local.hxx \
130         Batch_FactBatchManager_Local_RSH.hxx \
131         Batch_FactBatchManager_Local_SH.hxx \
132         Batch_FactBatchManager_Local_SSH.hxx \
133         Batch_JobInfo_Local.hxx \
134         Batch_Job_Local.hxx \
135         Batch_IOMutex.hxx
136
137 LIB_SRC +=\
138         Batch_Versatile.cxx \
139         Batch_BatchManager_Local.cxx \
140         Batch_BatchManager_Local_RSH.cxx \
141         Batch_BatchManager_Local_SH.cxx \
142         Batch_BatchManager_Local_SSH.cxx \
143         Batch_FactBatchManager_Local.cxx \
144         Batch_FactBatchManager_Local_RSH.cxx \
145         Batch_FactBatchManager_Local_SH.cxx \
146         Batch_FactBatchManager_Local_SSH.cxx \
147         Batch_JobInfo_Local.cxx \
148         Batch_Job_Local.cxx \
149         Batch_IOMutex.cxx
150
151 LIB_CPPFLAGS += -DHAVE_CONFIG_H
152
153 endif
154
155 #
156 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
157 # Special add for openpbs batch system
158 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
159 #
160 if WITH_OPENPBS
161 LIB_INCLUDES += \
162         Batch_BatchManager_PBS.hxx \
163         Batch_FactBatchManager_PBS.hxx \
164         Batch_JobInfo_PBS.hxx \
165         Batch_Job_PBS.hxx
166
167 LIB_SRC +=\
168         Batch_BatchManager_PBS.cxx \
169         Batch_FactBatchManager_PBS.cxx \
170         Batch_JobInfo_PBS.cxx \
171         Batch_Job_PBS.cxx
172
173 LIB_CPPFLAGS += @OPENPBS_INCLUDES@
174 LIB_LIBADD   += @OPENPBS_LIBDIR@ @OPENPBS_LIBS@
175
176 endif
177
178 #
179 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180 # Special add for lsf batch system
181 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182 #
183 if WITH_LSF
184 LIB_INCLUDES += \
185         Batch_BatchManager_LSF.hxx \
186         Batch_FactBatchManager_LSF.hxx \
187         Batch_JobInfo_LSF.hxx \
188         Batch_Job_LSF.hxx
189
190 LIB_SRC += \
191         Batch_BatchManager_LSF.cxx \
192         Batch_FactBatchManager_LSF.cxx \
193         Batch_JobInfo_LSF.cxx \
194         Batch_Job_LSF.cxx
195
196 LIB_CPPFLAGS += @LSF_INCLUDES@
197 LIB_LIBADD   += @LSF_LIBDIR@ @LSF_LIBS@
198 endif
199
200
201
202
203 salomeinclude_HEADERS = $(LIB_INCLUDES)
204
205 #
206 # ===============================================================
207 # Libraries targets
208 # ===============================================================
209 #
210 lib_LTLIBRARIES = libSalomeBatch.la 
211 libSalomeBatch_la_SOURCES = $(LIB_SRC)
212 libSalomeBatch_la_CPPFLAGS = \
213         @PYTHON_INCLUDES@ \
214         -I$(srcdir)/../Basics \
215         -I$(srcdir)/../SALOMELocalTrace \
216         -I$(srcdir)/../Utils \
217         -I$(top_builddir)/salome_adm/unix \
218         -I$(top_builddir)/idl \
219         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ $(LIB_CPPFLAGS)
220
221 libSalomeBatch_la_LDFLAGS  = -no-undefined -version-info=0:0:0
222 libSalomeBatch_la_LIBADD   = \
223         ../SALOMELocalTrace/libSALOMELocalTrace.la \
224         ../Basics/libSALOMEBasics.la \
225         $(LIB_LIBADD)