Salome HOME
Merging from V4_1_0_maintainance for porting on Win32 Platform
[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         Batch_BatchManager_eClient.hxx \
64         Batch_FactBatchManager_eClient.hxx \
65         Batch_BatchManager_eLSF.hxx \
66         Batch_FactBatchManager_eLSF.hxx \
67         Batch_JobInfo_eLSF.hxx \
68         Batch_BatchManager_ePBS.hxx \
69         Batch_FactBatchManager_ePBS.hxx \
70         Batch_JobInfo_ePBS.hxx \
71         MpiImpl.hxx \
72         Batch_Defines.hxx
73
74
75 LIB_SRC = \
76         Batch_APIInternalFailureException.cxx \
77         Batch_BatchManager.cxx \
78         Batch_BatchManagerCatalog.cxx \
79         Batch_BoolType.cxx \
80         Batch_CharType.cxx \
81         Batch_ConnexionFailureException.cxx \
82         Batch_Couple.cxx \
83         Batch_CoupleType.cxx \
84         Batch_Date.cxx \
85         Batch_DateType.cxx \
86         Batch_Environnement.cxx \
87         Batch_FactBatchManager.cxx \
88         Batch_GenericException.cxx \
89         Batch_GenericType.cxx \
90         Batch_IntType.cxx \
91         Batch_InvalidArgumentException.cxx \
92         Batch_InvalidKeyException.cxx \
93         Batch_Job.cxx \
94         Batch_JobId.cxx \
95         Batch_JobInfo.cxx \
96         Batch_ListIsFullException.cxx \
97         Batch_LongType.cxx \
98         Batch_MapKey.cxx \
99         Batch_NotYetImplementedException.cxx \
100         Batch_Parametre.cxx \
101         Batch_PyVersatile.cxx \
102         Batch_RunTimeException.cxx \
103         Batch_StringType.cxx \
104         Batch_TypeMismatchException.cxx \
105         Batch_BatchManager_eClient.cxx \
106         Batch_FactBatchManager_eClient.cxx \
107         Batch_BatchManager_eLSF.cxx \
108         Batch_FactBatchManager_eLSF.cxx \
109         Batch_JobInfo_eLSF.cxx \
110         Batch_BatchManager_ePBS.cxx \
111         Batch_FactBatchManager_ePBS.cxx \
112         Batch_JobInfo_ePBS.cxx \
113         MpiImpl.cxx
114
115
116 LIB_CPPFLAGS = \
117         ${PYTHON_INCLUDES} \
118         -I$(srcdir)/../Basics \
119         -I$(srcdir)/../SALOMELocalTrace \
120         -I$(top_builddir)/salome_adm/unix
121
122 LIB_LIBADD   = \
123         ../SALOMELocalTrace/libSALOMELocalTrace.la \
124         ../Basics/libSALOMEBasics.la
125
126
127 #
128 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
129 # Special add for local batch system
130 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131 #
132 if WITH_LOCAL
133 LIB_INCLUDES +=\
134         Batch_Versatile.hxx \
135         Batch_BatchManager_Local.hxx \
136         Batch_BatchManager_Local_RSH.hxx \
137         Batch_BatchManager_Local_SH.hxx \
138         Batch_BatchManager_Local_SSH.hxx \
139         Batch_FactBatchManager_Local.hxx \
140         Batch_FactBatchManager_Local_RSH.hxx \
141         Batch_FactBatchManager_Local_SH.hxx \
142         Batch_FactBatchManager_Local_SSH.hxx \
143         Batch_JobInfo_Local.hxx \
144         Batch_Job_Local.hxx \
145         Batch_IOMutex.hxx
146
147 LIB_SRC +=\
148         Batch_Versatile.cxx \
149         Batch_BatchManager_Local.cxx \
150         Batch_BatchManager_Local_RSH.cxx \
151         Batch_BatchManager_Local_SH.cxx \
152         Batch_BatchManager_Local_SSH.cxx \
153         Batch_FactBatchManager_Local.cxx \
154         Batch_FactBatchManager_Local_RSH.cxx \
155         Batch_FactBatchManager_Local_SH.cxx \
156         Batch_FactBatchManager_Local_SSH.cxx \
157         Batch_JobInfo_Local.cxx \
158         Batch_Job_Local.cxx \
159         Batch_IOMutex.cxx
160
161 LIB_CPPFLAGS += -DHAVE_CONFIG_H
162
163 endif
164
165 #
166 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167 # Special add for openpbs batch system
168 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
169 #
170 if WITH_OPENPBS
171 LIB_INCLUDES += \
172         Batch_BatchManager_PBS.hxx \
173         Batch_FactBatchManager_PBS.hxx \
174         Batch_JobInfo_PBS.hxx \
175         Batch_Job_PBS.hxx
176
177 LIB_SRC +=\
178         Batch_BatchManager_PBS.cxx \
179         Batch_FactBatchManager_PBS.cxx \
180         Batch_JobInfo_PBS.cxx \
181         Batch_Job_PBS.cxx
182
183 LIB_CPPFLAGS += @OPENPBS_INCLUDES@
184 LIB_LIBADD   += @OPENPBS_LIBDIR@ @OPENPBS_LIBS@
185
186 endif
187
188 #
189 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190 # Special add for lsf batch system
191 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
192 #
193 if WITH_LSF
194 LIB_INCLUDES += \
195         Batch_BatchManager_LSF.hxx \
196         Batch_FactBatchManager_LSF.hxx \
197         Batch_JobInfo_LSF.hxx \
198         Batch_Job_LSF.hxx
199
200 LIB_SRC += \
201         Batch_BatchManager_LSF.cxx \
202         Batch_FactBatchManager_LSF.cxx \
203         Batch_JobInfo_LSF.cxx \
204         Batch_Job_LSF.cxx
205
206 LIB_CPPFLAGS += ${LSF_INCLUDES}
207 LIB_LIBADD   += ${LSF_LDFLAGS} ${LSF_LIBS}
208 endif
209
210
211
212
213 salomeinclude_HEADERS = $(LIB_INCLUDES)
214
215 #
216 # ===============================================================
217 # Libraries targets
218 # ===============================================================
219 #
220 lib_LTLIBRARIES = libSalomeBatch.la 
221 libSalomeBatch_la_SOURCES = $(LIB_SRC)
222 libSalomeBatch_la_CPPFLAGS = ${LIB_CPPFLAGS}
223 libSalomeBatch_la_LDFLAGS  = -no-undefined -version-info=0:0:0
224 libSalomeBatch_la_LIBADD   = $(LIB_LIBADD)