Salome HOME
merge from branch BR_V5_DEV
[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.hxx
37
38 # Scripts to be installed
39 dist_salomescript_DATA =
40
41 # These files are executable scripts
42 dist_salomescript_SCRIPTS=
43
44 #
45 # ===============================================================
46 # Local definitions
47 # ===============================================================
48 #
49
50 # This local variable defines the list of CPPFLAGS common to all target in this package.
51 COMMON_CPPFLAGS=\
52         @PYTHON_INCLUDES@ \
53         @MPI_INCLUDES@ \
54         @LIBXML_INCLUDES@ \
55         -I$(srcdir)/../Batch \
56         -I$(srcdir)/../Basics \
57         -I$(srcdir)/../SALOMELocalTrace \
58         -I$(srcdir)/../NamingService \
59         -I$(srcdir)/../Utils \
60         -I$(srcdir)/../Registry \
61         -I$(srcdir)/../Notification \
62         -I$(srcdir)/../ResourcesManager \
63         -I$(srcdir)/../Container \
64         -I$(top_builddir)/salome_adm/unix \
65         -I$(top_builddir)/idl \
66         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
67
68 # This local variable defines the list of dependant libraries common to all target in this package.
69 COMMON_LIBS =\
70         ../Registry/libRegistry.la \
71         ../Notification/libSalomeNotification.la \
72         ../Container/libSalomeContainer.la \
73         ../ResourcesManager/libSalomeResourcesManager.la \
74         ../NamingService/libSalomeNS.la \
75         ../Utils/libOpUtil.la \
76         ../SALOMELocalTrace/libSALOMELocalTrace.la \
77         ../Basics/libSALOMEBasics.la \
78         ../Batch/libSalomeBatch.la \
79         $(top_builddir)/idl/libSalomeIDLKernel.la \
80         @MPI_LIBS@ \
81         @CORBA_LIBS@ \
82         @LIBXML_LIBS@ \
83         @PYTHON_LIBS@
84
85 #
86 # ===============================================================
87 # Libraries targets
88 # ===============================================================
89 #
90 if WITHONLYLAUNCHER
91   lib_LTLIBRARIES = libLauncher.la
92 else
93   lib_LTLIBRARIES = libLauncher.la libSalomeLauncher.la
94 endif
95 libSalomeLauncher_la_SOURCES=\
96         BatchTest.cxx \
97         SALOME_Launcher.cxx 
98
99 libSalomeLauncher_la_CPPFLAGS =\
100         $(COMMON_CPPFLAGS)
101
102 libSalomeLauncher_la_LDFLAGS  =\
103         -no-undefined -version-info=0:0:0 \
104         @LDEXPDYNFLAGS@
105
106 libSalomeLauncher_la_LIBADD =\
107         $(COMMON_LIBS) libLauncher.la
108
109 libLauncher_la_SOURCES=\
110         SALOME_Launcher_Parser.cxx \
111         SALOME_Launcher_Handler.cxx  \
112         Launcher.cxx
113
114 libLauncher_la_CPPFLAGS =\
115         -I$(srcdir)/../Batch \
116         -I$(srcdir)/../ResourcesManager \
117         @MPI_INCLUDES@ \
118         @LIBXML_INCLUDES@
119
120 libLauncher_la_LDFLAGS  =\
121         -no-undefined -version-info=0:0:0 \
122         @LDEXPDYNFLAGS@
123
124 libLauncher_la_LIBADD =\
125         ../Batch/libSalomeBatch.la \
126         ../ResourcesManager/libSalomeResourcesManager.la \
127         @MPI_LIBS@ \
128         @LIBXML_LIBS@
129
130 #
131 # ===============================================================
132 # Executables targets
133 # ===============================================================
134 #
135 if !WITHONLYLAUNCHER
136   bin_PROGRAMS = SALOME_LauncherServer
137 endif
138
139 SALOME_LauncherServer_SOURCES =\
140         SALOME_LauncherServer.cxx
141
142 SALOME_LauncherServer_CPPFLAGS=\
143         $(COMMON_CPPFLAGS)
144
145 SALOME_LauncherServer_LDADD =\
146         libSalomeLauncher.la \
147         ../Basics/libSALOMEBasics.la \
148         $(MPI_LIBS) \
149         $(CORBA_LIBS) \
150         $(LIBXML_LIBS) \
151         $(PYTHON_LIBS)
152
153