Salome HOME
CMake: updated CMake procedure mainly to correctly expose targets needed by GUI.
[modules/kernel.git] / src / Container / Makefile.am
index 1241d4a4fa895bf7e322e632519b6dcc60f0ad74..95601ff3b03b16c37ab06b54f3b4a968262d34dd 100644 (file)
@@ -1,32 +1,31 @@
-#  SALOME Container : implementation of container and engine for Kernel
+# Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
 #
-#  Copyright (C) 2003  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 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 
-# 
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+# 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 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
 #
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+
+#  SALOME Container : implementation of container and engine for Kernel
 #  File   : Makefile.am
 #  Author : Guillaume Boulant (CSSI)
 #  Module : KERNEL
 #  $Header$
-
-
+#
 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
 
 #
@@ -34,23 +33,25 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am
 # Header to be installed
 # ===============================================================
 #
-# header files  
+# header files
 salomeinclude_HEADERS = \
        SALOME_Component_i.hxx \
        SALOME_Container_i.hxx \
        SALOME_FileTransfer_i.hxx \
        SALOME_FileRef_i.hxx \
        SALOME_ContainerManager.hxx \
-       Container_init_python.hxx
+       Container_init_python.hxx \
+       SALOME_Container.hxx \
+       Salome_file_i.hxx
 
 # Scripts to be installed
-dist_salomescript_DATA =\
+dist_salomescript_PYTHON =\
        SALOME_ComponentPy.py \
+       SALOME_PyNode.py \
        SALOME_Container.py
 
 # These files are executable scripts
-dist_salomescript_SCRIPTS=\
-       SALOME_ContainerPy.py
+dist_salomescript_SCRIPTS=
 
 #
 # ===============================================================
@@ -61,9 +62,7 @@ dist_salomescript_SCRIPTS=\
 # This local variable defines the list of CPPFLAGS common to all target in this package.
 COMMON_CPPFLAGS=\
        @PYTHON_INCLUDES@ \
-       @MPI_INCLUDES@ \
-       @CAS_CPPFLAGS@ @CAS_CXXFLAGS@ \
-       @QT_MT_INCLUDES@ \
+       @HDF5_INCLUDES@ \
        -I$(srcdir)/../Basics \
        -I$(srcdir)/../SALOMELocalTrace \
        -I$(srcdir)/../NamingService \
@@ -71,23 +70,31 @@ COMMON_CPPFLAGS=\
        -I$(srcdir)/../Registry \
        -I$(srcdir)/../Notification \
        -I$(srcdir)/../ResourcesManager \
-       -I$(top_builddir)/salome_adm/unix \
+       -I$(srcdir)/../HDFPersist \
+       -I$(srcdir)/../GenericObj \
        -I$(top_builddir)/idl \
-       @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
+       @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @LIBXML_INCLUDES@
 
 # This local variable defines the list of dependant libraries common to all target in this package.
 COMMON_LIBS =\
        ../Registry/libRegistry.la \
        ../Notification/libSalomeNotification.la \
        ../ResourcesManager/libSalomeResourcesManager.la \
+       ../ResourcesManager/libResourcesManager.la \
        ../NamingService/libSalomeNS.la \
        ../Utils/libOpUtil.la \
        ../SALOMELocalTrace/libSALOMELocalTrace.la \
        ../Basics/libSALOMEBasics.la \
-       $(top_builddir)/idl/libSalomeIDLKernel.la\
-       @PYTHON_LIBS@ \
-       @MPI_LIBS@ \
-       @CORBA_LIBS@
+       ../HDFPersist/libSalomeHDFPersist.la \
+       ../GenericObj/libSalomeGenericObj.la \
+       $(top_builddir)/idl/libSalomeIDLKernel.la \
+       @CORBA_LIBS@ \
+       $(PYTHON_LIBS)
+
+if WITH_MPI_SEQ_CONTAINER
+COMMON_CPPFLAGS += @MPI_INCLUDES@
+COMMON_LIBS += @MPI_LIBS@
+endif
 
 #
 # ===============================================================
@@ -100,8 +107,9 @@ libSalomeContainer_la_SOURCES=\
        Container_i.cxx \
        SALOME_FileTransfer_i.cxx \
        SALOME_FileRef_i.cxx \
+       Container_init_python.cxx \
        SALOME_ContainerManager.cxx \
-       Container_init_python.cxx 
+       Salome_file_i.cxx
 
 libSalomeContainer_la_CPPFLAGS =\
        $(COMMON_CPPFLAGS)
@@ -113,13 +121,19 @@ libSalomeContainer_la_LDFLAGS  =\
 libSalomeContainer_la_LIBADD =\
        $(COMMON_LIBS)
 
+if WITH_PACO_PARALLEL
+libSalomeContainer_la_CPPFLAGS += -DWITH_PACO_PARALLEL @PACO_INCLUDES@
+libSalomeContainer_la_LIBADD += @PACO_LIBS@
+endif
 
 #
 # ===============================================================
 # Executables targets
 # ===============================================================
 #
-bin_PROGRAMS = SALOME_Container SALOME_ContainerManagerServer
+bin_PROGRAMS = SALOME_Container
+noinst_PROGRAMS = TestSalome_file
+
 SALOME_Container_SOURCES =\
        SALOME_Container.cxx \
        SALOME_Container_SignalsHandler.cxx
@@ -127,20 +141,35 @@ SALOME_Container_SOURCES =\
 SALOME_Container_CPPFLAGS =\
        $(COMMON_CPPFLAGS)
 
-
-SALOME_Container_LDADD =\
+SALOME_Container_LDADD = \
        libSalomeContainer.la \
-       $(COMMON_LIBS) \
-       ../Basics/libSALOMEBasics.la
+       ../Basics/libSALOMEBasics.la ${COMMON_LIBS} \
+       $(HDF5_LIBS) \
+       $(CORBA_LIBS) \
+       $(PYTHON_LIBS)
 
+if WITH_MPI_SEQ_CONTAINER
+SALOME_Container_LDADD += $(MPI_LIBS)
+endif
 
-SALOME_ContainerManagerServer_SOURCES =\
-       SALOME_ContainerManagerServer.cxx
+SALOME_Container_LDFLAGS  =\
+-Xlinker -export-dynamic
 
-SALOME_ContainerManagerServer_CPPFLAGS=\
+TestSalome_file_SOURCES =\
+       TestSalome_file.cxx
+
+TestSalome_file_CPPFLAGS =\
        $(COMMON_CPPFLAGS)
 
-SALOME_ContainerManagerServer_LDADD =\
+TestSalome_file_LDADD =\
        libSalomeContainer.la \
+       ../Basics/libSALOMEBasics.la \
        $(COMMON_LIBS) \
-       ../Basics/libSALOMEBasics.la
+       $(HDF5_LIBS) \
+       $(CORBA_LIBS) \
+       $(PYTHON_LIBS)
+
+install-data-hook:
+       @for f in $(dist_salomescript_PYTHON) ; do \
+          chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
+        done