Salome HOME
Remove warnings
[modules/kernel.git] / src / Batch / 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 ####################################### library
23 #  SALOME Container : implementation of container and engine for Kernel
24 #  File   : Makefile.in
25 #  Author : EDF
26 #  Module : SALOME
27 #  $Header$
28 #
29 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
30
31 # header files  
32 LIB_INCLUDES = \
33         Batch_APIInternalFailureException.hxx \
34         Batch_BatchManager.hxx \
35         Batch_BatchManagerCatalog.hxx \
36         Batch_BoolType.hxx \
37         Batch_CharType.hxx \
38         Batch_ConnexionFailureException.hxx \
39         Batch_Couple.hxx \
40         Batch_CoupleType.hxx \
41         Batch_Date.hxx \
42         Batch_DateType.hxx \
43         Batch_Environnement.hxx \
44         Batch_FactBatchManager.hxx \
45         Batch_GenericException.hxx \
46         Batch_GenericType.hxx \
47         Batch_IntType.hxx \
48         Batch_InvalidArgumentException.hxx \
49         Batch_InvalidKeyException.hxx \
50         Batch_Job.hxx \
51         Batch_JobId.hxx \
52         Batch_JobInfo.hxx \
53         Batch_ListIsFullException.hxx \
54         Batch_LongType.hxx \
55         Batch_MapKey.hxx \
56         Batch_NotYetImplementedException.hxx \
57         Batch_Parametre.hxx \
58         Batch_PyVersatile.hxx \
59         Batch_RunTimeException.hxx \
60         Batch_StringType.hxx \
61         Batch_TypeMismatchException.hxx \
62         Batch_BatchManager_eClient.hxx \
63         Batch_FactBatchManager_eClient.hxx \
64         Batch_BatchManager_eLSF.hxx \
65         Batch_FactBatchManager_eLSF.hxx \
66         Batch_JobInfo_eLSF.hxx \
67         Batch_BatchManager_ePBS.hxx \
68         Batch_FactBatchManager_ePBS.hxx \
69         Batch_JobInfo_ePBS.hxx \
70         MpiImpl.hxx \
71         Batch_Defines.hxx \
72         Batch_BatchManager_eSGE.hxx \
73         Batch_FactBatchManager_eSGE.hxx \
74         Batch_JobInfo_eSGE.hxx \
75         MpiImpl.hxx
76
77
78 LIB_SRC = \
79         Batch_APIInternalFailureException.cxx \
80         Batch_BatchManager.cxx \
81         Batch_BatchManagerCatalog.cxx \
82         Batch_BoolType.cxx \
83         Batch_CharType.cxx \
84         Batch_ConnexionFailureException.cxx \
85         Batch_Couple.cxx \
86         Batch_CoupleType.cxx \
87         Batch_Date.cxx \
88         Batch_DateType.cxx \
89         Batch_Environnement.cxx \
90         Batch_FactBatchManager.cxx \
91         Batch_GenericException.cxx \
92         Batch_GenericType.cxx \
93         Batch_IntType.cxx \
94         Batch_InvalidArgumentException.cxx \
95         Batch_InvalidKeyException.cxx \
96         Batch_Job.cxx \
97         Batch_JobId.cxx \
98         Batch_JobInfo.cxx \
99         Batch_ListIsFullException.cxx \
100         Batch_LongType.cxx \
101         Batch_MapKey.cxx \
102         Batch_NotYetImplementedException.cxx \
103         Batch_Parametre.cxx \
104         Batch_PyVersatile.cxx \
105         Batch_RunTimeException.cxx \
106         Batch_StringType.cxx \
107         Batch_TypeMismatchException.cxx \
108         Batch_BatchManager_eClient.cxx \
109         Batch_FactBatchManager_eClient.cxx \
110         Batch_BatchManager_eLSF.cxx \
111         Batch_FactBatchManager_eLSF.cxx \
112         Batch_JobInfo_eLSF.cxx \
113         Batch_BatchManager_ePBS.cxx \
114         Batch_FactBatchManager_ePBS.cxx \
115         Batch_JobInfo_ePBS.cxx \
116         Batch_BatchManager_eSGE.cxx \
117         Batch_FactBatchManager_eSGE.cxx \
118         Batch_JobInfo_eSGE.cxx \
119         MpiImpl.cxx
120
121
122 LIB_CPPFLAGS = ${PYTHON_INCLUDES}
123 if !WITHONLYLAUNCHER
124   LIB_CPPFLAGS += -I$(top_builddir)/salome_adm/unix
125 endif
126
127 LIB_LIBADD = $(PYTHON_LIBS)
128
129 #
130 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131 # Special add for local batch system
132 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133 #
134 if WITH_LOCAL
135 LIB_INCLUDES +=\
136         Batch_Versatile.hxx \
137         Batch_BatchManager_Local.hxx \
138         Batch_BatchManager_Local_RSH.hxx \
139         Batch_BatchManager_Local_SH.hxx \
140         Batch_BatchManager_Local_SSH.hxx \
141         Batch_FactBatchManager_Local.hxx \
142         Batch_FactBatchManager_Local_RSH.hxx \
143         Batch_FactBatchManager_Local_SH.hxx \
144         Batch_FactBatchManager_Local_SSH.hxx \
145         Batch_JobInfo_Local.hxx \
146         Batch_Job_Local.hxx \
147         Batch_IOMutex.hxx
148
149 LIB_SRC +=\
150         Batch_Versatile.cxx \
151         Batch_BatchManager_Local.cxx \
152         Batch_BatchManager_Local_RSH.cxx \
153         Batch_BatchManager_Local_SH.cxx \
154         Batch_BatchManager_Local_SSH.cxx \
155         Batch_FactBatchManager_Local.cxx \
156         Batch_FactBatchManager_Local_RSH.cxx \
157         Batch_FactBatchManager_Local_SH.cxx \
158         Batch_FactBatchManager_Local_SSH.cxx \
159         Batch_JobInfo_Local.cxx \
160         Batch_Job_Local.cxx \
161         Batch_IOMutex.cxx
162
163 if !WITHONLYLAUNCHER
164   LIB_CPPFLAGS += -DHAVE_CONFIG_H
165 endif
166
167 endif
168
169 #
170 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171 # Special add for openpbs batch system
172 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173 #
174 if WITH_OPENPBS
175 LIB_INCLUDES += \
176         Batch_BatchManager_PBS.hxx \
177         Batch_FactBatchManager_PBS.hxx \
178         Batch_JobInfo_PBS.hxx \
179         Batch_Job_PBS.hxx
180
181 LIB_SRC +=\
182         Batch_BatchManager_PBS.cxx \
183         Batch_FactBatchManager_PBS.cxx \
184         Batch_JobInfo_PBS.cxx \
185         Batch_Job_PBS.cxx
186
187 LIB_CPPFLAGS += @OPENPBS_INCLUDES@
188 LIB_LIBADD   += @OPENPBS_LIBDIR@ @OPENPBS_LIBS@
189
190 endif
191
192 #
193 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
194 # Special add for lsf batch system
195 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
196 #
197 if WITH_LSF
198 LIB_INCLUDES += \
199         Batch_BatchManager_LSF.hxx \
200         Batch_FactBatchManager_LSF.hxx \
201         Batch_JobInfo_LSF.hxx \
202         Batch_Job_LSF.hxx
203
204 LIB_SRC += \
205         Batch_BatchManager_LSF.cxx \
206         Batch_FactBatchManager_LSF.cxx \
207         Batch_JobInfo_LSF.cxx \
208         Batch_Job_LSF.cxx
209
210 LIB_CPPFLAGS += ${LSF_INCLUDES}
211 LIB_LIBADD   += ${LSF_LDFLAGS} ${LSF_LIBS}
212 endif
213
214
215
216
217 salomeinclude_HEADERS = $(LIB_INCLUDES)
218
219 #
220 # ===============================================================
221 # Libraries targets
222 # ===============================================================
223 #
224 lib_LTLIBRARIES = libSalomeBatch.la 
225 libSalomeBatch_la_SOURCES = $(LIB_SRC)
226 libSalomeBatch_la_CPPFLAGS = ${LIB_CPPFLAGS}
227 libSalomeBatch_la_LDFLAGS  = -no-undefined -version-info=0:0:0
228 libSalomeBatch_la_LIBADD   = $(LIB_LIBADD)