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