Salome HOME
Build SALOME on win32 platform.
[modules/kernel.git] / src / Launcher / Makefile.am
index 195578d1fa653312ec017bce65ba2d60c5ffb6a4..cf702075b6dc512c671a2451736a966188f2163d 100644 (file)
@@ -1,23 +1,23 @@
-#  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
 #
-#  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 #
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
 #
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
 #
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
@@ -155,6 +155,8 @@ libLauncher_la_LIBADD =\
 #
 if !WITHONLYLAUNCHER
   bin_PROGRAMS = SALOME_LauncherServer TestLauncher
+else
+  bin_PROGRAMS = TestLauncher
 endif
 
 SALOME_LauncherServer_SOURCES =\
@@ -164,17 +166,27 @@ SALOME_LauncherServer_CPPFLAGS=\
        $(COMMON_CPPFLAGS)
 
 SALOME_LauncherServer_LDADD =\
+       libLauncher.la \
        libSalomeLauncher.la \
        ../Basics/libSALOMEBasics.la \
        ../SALOMELocalTrace/libSALOMELocalTrace.la \
-       $(LIBBATCH_LIBS) \
-       $(MPI_LIBS) \
-       $(CORBA_LIBS) \
-       $(LIBXML_LIBS) \
-       $(PYTHON_LIBS)
+       @LIBBATCH_LIBS@ \
+       @MPI_LIBS@ \
+       @CORBA_LIBS@ \
+       @LIBXML_LIBS@ \
+       @PYTHON_LIBS@
 
 TestLauncher_SOURCES = TestLauncher.cxx
 
-TestLauncher_CPPFLAGS = -I${LIBXML_DIR}/include/libxml2 -I$(srcdir)/../ResourcesManager
+TestLauncher_CPPFLAGS = @LIBXML_INCLUDES@ -I$(srcdir)/../ResourcesManager @LIBBATCH_INCLUDES@
+
+if WITH_LIBBATCH
+  TestLauncher_CPPFLAGS += -DWITH_LIBBATCH
+endif
 
-TestLauncher_LDADD = -L${LIBXML_DIR}/lib -lxml2 ../ResourcesManager/libSalomeResourcesManager.la libLauncher.la -L${LIBBATCH_ROOT_DIR}/lib -lBatch
+TestLauncher_LDADD = \
+  @LIBXML_LIBS@ \
+  ../ResourcesManager/libResourcesManager.la \
+  libLauncher.la \
+  ../Utils/libOpUtil.la \
+  @LIBBATCH_LIBS@