Salome HOME
Base implementation of Notebook
[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         @LIBBATCH_INCLUDES@ \
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)/idl \
65         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
66
67 if WITH_LIBBATCH
68   COMMON_CPPFLAGS += -DWITH_LIBBATCH
69 endif
70
71 # This local variable defines the list of dependant libraries common to all target in this package.
72 COMMON_LIBS =\
73         ../Registry/libRegistry.la \
74         ../Notification/libSalomeNotification.la \
75         ../Container/libSalomeContainer.la \
76         ../ResourcesManager/libSalomeResourcesManager.la \
77         ../NamingService/libSalomeNS.la \
78         ../Utils/libOpUtil.la \
79         ../SALOMELocalTrace/libSALOMELocalTrace.la \
80         ../Basics/libSALOMEBasics.la \
81         $(top_builddir)/idl/libSalomeIDLKernel.la \
82         @LIBBATCH_LIBS@ \
83         @MPI_LIBS@ \
84         @CORBA_LIBS@ \
85         @LIBXML_LIBS@ \
86         @PYTHON_LIBS@
87
88 #
89 # ===============================================================
90 # Libraries targets
91 # ===============================================================
92 #
93 if WITHONLYLAUNCHER
94   lib_LTLIBRARIES = libLauncher.la
95 else
96   lib_LTLIBRARIES = libLauncher.la libSalomeLauncher.la
97 endif
98 libSalomeLauncher_la_SOURCES=\
99         BatchTest.cxx \
100         SALOME_Launcher.cxx 
101
102 libSalomeLauncher_la_CPPFLAGS =\
103         $(COMMON_CPPFLAGS)
104
105 libSalomeLauncher_la_LDFLAGS  =\
106         -no-undefined -version-info=0:0:0 \
107         @LDEXPDYNFLAGS@
108
109 libSalomeLauncher_la_LIBADD =\
110         $(COMMON_LIBS) libLauncher.la
111
112 libLauncher_la_SOURCES=\
113         SALOME_Launcher_Parser.cxx \
114         SALOME_Launcher_Handler.cxx  \
115         Launcher.cxx
116
117 libLauncher_la_CPPFLAGS =\
118         -I$(srcdir)/../ResourcesManager \
119         @LIBBATCH_INCLUDES@ \
120         @MPI_INCLUDES@ \
121         @LIBXML_INCLUDES@
122
123 if WITH_LIBBATCH
124   libLauncher_la_CPPFLAGS += -DWITH_LIBBATCH
125 endif
126
127 libLauncher_la_LDFLAGS  =\
128         -no-undefined -version-info=0:0:0 \
129         @LDEXPDYNFLAGS@
130
131 libLauncher_la_LIBADD =\
132         ../ResourcesManager/libResourcesManager.la \
133         @LIBBATCH_LIBS@ \
134         @MPI_LIBS@ \
135         @LIBXML_LIBS@
136
137 #
138 # ===============================================================
139 # Executables targets
140 # ===============================================================
141 #
142 if !WITHONLYLAUNCHER
143   bin_PROGRAMS = SALOME_LauncherServer
144 endif
145
146 SALOME_LauncherServer_SOURCES =\
147         SALOME_LauncherServer.cxx
148
149 SALOME_LauncherServer_CPPFLAGS=\
150         $(COMMON_CPPFLAGS)
151
152 SALOME_LauncherServer_LDADD =\
153         libSalomeLauncher.la \
154         ../Basics/libSALOMEBasics.la \
155         $(LIBBATCH_LIBS) \
156         $(MPI_LIBS) \
157         $(CORBA_LIBS) \
158         $(LIBXML_LIBS) \
159         $(PYTHON_LIBS)
160
161