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