Salome HOME
Merge from mergeto_V5_1_main_19Jan10
[modules/kernel.git] / src / Launcher / 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 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
23
24 #
25 # ===============================================================
26 # Header to be installed
27 # ===============================================================
28 #
29 # header files  
30 salomeinclude_HEADERS = \
31   SALOME_Launcher_Parser.hxx \
32   SALOME_Launcher_Handler.hxx \
33   BatchTest.hxx \
34   SALOME_Launcher_defs.hxx \
35   SALOME_Launcher.hxx \
36   Launcher_Utils.hxx \
37   Launcher_Job.hxx \
38   Launcher_Job_Command.hxx \
39   Launcher_Job_SALOME.hxx \
40   Launcher_Job_PythonSALOME.hxx \
41   Launcher_Job_YACSFile.hxx \
42   Launcher.hxx
43
44 # Scripts to be installed
45 dist_salomescript_DATA =
46
47 # These files are executable scripts
48 dist_salomescript_SCRIPTS=
49
50 #
51 # ===============================================================
52 # Local definitions
53 # ===============================================================
54 #
55
56 # This local variable defines the list of CPPFLAGS common to all target in this package.
57 COMMON_CPPFLAGS=\
58         @PYTHON_INCLUDES@ \
59         @MPI_INCLUDES@ \
60         @LIBXML_INCLUDES@ \
61         @LIBBATCH_INCLUDES@ \
62         -I$(srcdir)/../Basics \
63         -I$(srcdir)/../SALOMELocalTrace \
64         -I$(srcdir)/../NamingService \
65         -I$(srcdir)/../Utils \
66         -I$(srcdir)/../Registry \
67         -I$(srcdir)/../Notification \
68         -I$(srcdir)/../ResourcesManager \
69         -I$(srcdir)/../Container \
70         -I$(top_builddir)/idl \
71         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
72
73 if WITH_LIBBATCH
74   COMMON_CPPFLAGS += -DWITH_LIBBATCH
75 endif
76
77 # This local variable defines the list of dependant libraries common to all target in this package.
78 COMMON_LIBS =\
79         ../Registry/libRegistry.la \
80         ../Notification/libSalomeNotification.la \
81         ../Container/libSalomeContainer.la \
82         ../ResourcesManager/libSalomeResourcesManager.la \
83         ../NamingService/libSalomeNS.la \
84         ../Utils/libOpUtil.la \
85         ../SALOMELocalTrace/libSALOMELocalTrace.la \
86         ../Basics/libSALOMEBasics.la \
87         $(top_builddir)/idl/libSalomeIDLKernel.la \
88         @LIBBATCH_LIBS@ \
89         @MPI_LIBS@ \
90         @CORBA_LIBS@ \
91         @LIBXML_LIBS@ \
92         @PYTHON_LIBS@
93
94 #
95 # ===============================================================
96 # Libraries targets
97 # ===============================================================
98 #
99 if WITHONLYLAUNCHER
100   lib_LTLIBRARIES = libLauncher.la
101 else
102   lib_LTLIBRARIES = libLauncher.la libSalomeLauncher.la
103 endif
104 libSalomeLauncher_la_SOURCES=\
105         BatchTest.cxx \
106         SALOME_Launcher.cxx 
107
108 libSalomeLauncher_la_CPPFLAGS =\
109         $(COMMON_CPPFLAGS)
110
111 libSalomeLauncher_la_LDFLAGS  =\
112         -no-undefined -version-info=0:0:0 \
113         @LDEXPDYNFLAGS@
114
115 libSalomeLauncher_la_LIBADD =\
116         $(COMMON_LIBS) libLauncher.la
117
118 libLauncher_la_SOURCES=\
119         SALOME_Launcher_Parser.cxx \
120         SALOME_Launcher_Handler.cxx  \
121         Launcher_Utils.hxx \
122         Launcher_Job.cxx \
123         Launcher_Job_Command.cxx \
124         Launcher_Job_SALOME.cxx \
125         Launcher_Job_PythonSALOME.cxx \
126         Launcher_Job_YACSFile.cxx \
127         Launcher.cxx
128
129 libLauncher_la_CPPFLAGS =\
130         -I$(srcdir)/../Basics \
131         -I$(srcdir)/../ResourcesManager \
132         @LIBBATCH_INCLUDES@ \
133         @MPI_INCLUDES@ \
134         @LIBXML_INCLUDES@
135
136 if WITH_LIBBATCH
137   libLauncher_la_CPPFLAGS += -DWITH_LIBBATCH
138 endif
139
140 libLauncher_la_LDFLAGS  =\
141         -no-undefined -version-info=0:0:0 \
142         @LDEXPDYNFLAGS@
143
144 libLauncher_la_LIBADD =\
145         ../ResourcesManager/libResourcesManager.la \
146         @LIBBATCH_LIBS@ \
147         @MPI_LIBS@ \
148         @LIBXML_LIBS@
149
150 #
151 # ===============================================================
152 # Executables targets
153 # ===============================================================
154 #
155 if !WITHONLYLAUNCHER
156   bin_PROGRAMS = SALOME_LauncherServer
157 endif
158
159 SALOME_LauncherServer_SOURCES =\
160         SALOME_LauncherServer.cxx
161
162 SALOME_LauncherServer_CPPFLAGS=\
163         $(COMMON_CPPFLAGS)
164
165 SALOME_LauncherServer_LDADD =\
166         libSalomeLauncher.la \
167         ../Basics/libSALOMEBasics.la \
168         $(LIBBATCH_LIBS) \
169         $(MPI_LIBS) \
170         $(CORBA_LIBS) \
171         $(LIBXML_LIBS) \
172         $(PYTHON_LIBS)
173
174