Salome HOME
Merge from V6_main 11/02/2013
[modules/kernel.git] / src / SALOMEDS / Makefile.am
index 7a8263368faa9fea6bdfc33afd5ea48a3721cc0d..b4afc777387e35f019d83c5bb433d1bdd0073561 100644 (file)
@@ -1,8 +1,29 @@
+# Copyright (C) 2007-2012  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
+#
+# 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
+#
+
 #  File   : Makefile.am
 #  Author : Guillaume Boulant (CSSI)
 #  Module : KERNEL
-
+#
 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
 
 #
@@ -23,10 +44,13 @@ salomeinclude_HEADERS= \
        SALOMEDS_SComponent.hxx \
        SALOMEDS_GenericAttribute_i.hxx \
        SALOMEDS_GenericAttribute.hxx \
-       SALOMEDS_IParameters.hxx
+       SALOMEDS_IParameters.hxx \
+       SALOMEDS_Defines.hxx \
+       SALOMEDS_Attributes_wrap.hxx \
+       SALOMEDS_wrap.hxx
 
 # Scripts to be installed
-dist_salomescript_DATA = SALOME_DriverPy.py
+dist_salomescript_PYTHON = SALOME_DriverPy.py
 
 #
 # ===============================================================
@@ -36,40 +60,34 @@ dist_salomescript_DATA = SALOME_DriverPy.py
 
 # This local variable defines the list of CPPFLAGS common to all target in this package.
 COMMON_CPPFLAGS=\
-       @CAS_CPPFLAGS@ @CAS_CXXFLAGS@ \
        @BOOST_CPPFLAGS@ \
        -I$(srcdir)/../HDFPersist \
        @HDF5_INCLUDES@ \
        -I$(srcdir)/../Basics \
        -I$(srcdir)/../SALOMELocalTrace \
        -I$(srcdir)/../Utils \
+       -I$(srcdir)/../DF \
        -I$(srcdir)/../SALOMEDSImpl \
        -I$(srcdir)/../NamingService \
        -I$(srcdir)/../GenericObj \
        -I$(srcdir)/../SALOMEDSClient \
        -I$(srcdir)/../LifeCycleCORBA \
-       -I$(top_builddir)/salome_adm/unix \
        -I$(top_builddir)/idl \
        @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
 
-# This flag is used to resolve the dependencies of OCC libraries.
-LDXMUFLAGS = -L/usr/X11R6/lib -lXmu
-
 # This local variable defines the list of dependant libraries common to all target in this package.
 COMMON_LIBS =\
-       ../TOOLSDS/libTOOLSDS.la \
        ../NamingService/libSalomeNS.la \
        ../Utils/libOpUtil.la \
        ../SALOMELocalTrace/libSALOMELocalTrace.la \
        ../Basics/libSALOMEBasics.la \
        ../HDFPersist/libSalomeHDFPersist.la \
+       ../DF/libDF.la \
        ../SALOMEDSImpl/libSalomeDSImpl.la \
        ../GenericObj/libSalomeGenericObj.la \
        ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \
        $(top_builddir)/idl/libSalomeIDLKernel.la\
-       @CAS_KERNEL@ \
-       @HDF5_LIBS@ \
-       $(LDXMUFLAGS)
+       @HDF5_LIBS@ 
 
 
 #LDFLAGS+=  -lSalomeGenericObj -lSalomeLifeCycleCORBA
@@ -122,6 +140,7 @@ libSalomeDS_la_SOURCES =    \
        SALOMEDS_AttributeStudyProperties_i.cxx \
        SALOMEDS_AttributePythonObject_i.cxx \
        SALOMEDS_AttributeParameter_i.cxx \
+       SALOMEDS_AttributeString_i.cxx \
        SALOMEDS_SObject.cxx \
        SALOMEDS_SComponent.cxx \
        SALOMEDS_GenericAttribute.cxx \
@@ -162,31 +181,8 @@ libSalomeDS_la_SOURCES =   \
        SALOMEDS_AttributeUserID.cxx \
        SALOMEDS_TMPFile_i.cxx \
        SALOMEDS_AttributeParameter.cxx \
+       SALOMEDS_AttributeString.cxx \
        SALOMEDS_IParameters.cxx \
-       \
-       Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx \
-       Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx \
-       Handle_SALOMEDS_DrawableAttribute.hxx \
-       Handle_SALOMEDS_ExpandableAttribute.hxx \
-       Handle_SALOMEDS_ExternalFileDef.hxx \
-       Handle_SALOMEDS_FileType.hxx \
-       Handle_SALOMEDS_IORAttribute.hxx \
-       Handle_SALOMEDS_LocalIDAttribute.hxx \
-       Handle_SALOMEDS_OCAFApplication.hxx \
-       Handle_SALOMEDS_OpenedAttribute.hxx \
-       Handle_SALOMEDS_PersRefAttribute.hxx \
-       Handle_SALOMEDS_PixMapAttribute.hxx \
-       Handle_SALOMEDS_PythonObjectAttribute.hxx \
-       Handle_SALOMEDS_SelectableAttribute.hxx \
-       Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx \
-       Handle_SALOMEDS_SequenceOfRealAttribute.hxx \
-       Handle_SALOMEDS_StudyPropertiesAttribute.hxx \
-       Handle_SALOMEDS_TableOfIntegerAttribute.hxx \
-       Handle_SALOMEDS_TableOfRealAttribute.hxx \
-       Handle_SALOMEDS_TableOfStringAttribute.hxx \
-       Handle_SALOMEDS_TargetAttribute.hxx \
-       Handle_SALOMEDS_TextColorAttribute.hxx \
-       Handle_SALOMEDS_TextHighlightColorAttribute.hxx \
        SALOMEDS_AttLong_i.hxx \
        SALOMEDS_AttReal_i.hxx \
        SALOMEDS_AttributeComment.hxx \
@@ -252,37 +248,14 @@ libSalomeDS_la_SOURCES =  \
        SALOMEDS_ChildIterator.hxx \
        SALOMEDS_ChildIterator_i.hxx \
        SALOMEDS_ClientAttributes.hxx \
-       SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx \
-       SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx \
-       SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx \
-       SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx \
-       SALOMEDS_DataMapOfIntegerString.hxx \
-       SALOMEDS_DataMapStringLabel.hxx \
-       SALOMEDS_DrawableAttribute.hxx \
        SALOMEDS_Driver_i.hxx \
-       SALOMEDS_ExpandableAttribute.hxx \
-       SALOMEDS_ExternalFileDef.hxx \
-       SALOMEDS_FileType.hxx \
-       SALOMEDS_FlagsAttribute.hxx \
        SALOMEDS_GenericAttribute.hxx \
        SALOMEDS_GenericAttribute_i.hxx \
-       SALOMEDS_GraphicAttribute.hxx \
        SALOMEDS.hxx \
-       SALOMEDS_IORAttribute.hxx \
-       SALOMEDS_LocalIDAttribute.hxx \
-       SALOMEDS_OCAFApplication.hxx \
-       SALOMEDS_OpenedAttribute.hxx \
-       SALOMEDS_PersRefAttribute.hxx \
-       SALOMEDS_PixMapAttribute.hxx \
-       SALOMEDS_PythonObjectAttribute.hxx \
-       SALOMEDS_SAttribute_i.hxx \
        SALOMEDS_SComponent.hxx \
        SALOMEDS_SComponent_i.hxx \
        SALOMEDS_SComponentIterator.hxx \
        SALOMEDS_SComponentIterator_i.hxx \
-       SALOMEDS_SelectableAttribute.hxx \
-       SALOMEDS_SequenceOfIntegerAttribute.hxx \
-       SALOMEDS_SequenceOfRealAttribute.hxx \
        SALOMEDS_SObject.hxx \
        SALOMEDS_SObject_i.hxx \
        SALOMEDS_StudyBuilder.hxx \
@@ -291,23 +264,18 @@ libSalomeDS_la_SOURCES =  \
        SALOMEDS_Study_i.hxx \
        SALOMEDS_StudyManager.hxx \
        SALOMEDS_StudyManager_i.hxx \
-       SALOMEDS_StudyPropertiesAttribute.hxx \
-       SALOMEDS_TableOfIntegerAttribute.hxx \
-       SALOMEDS_TableOfRealAttribute.hxx \
-       SALOMEDS_TableOfStringAttribute.hxx \
-       SALOMEDS_TargetAttribute.hxx \
-       SALOMEDS_TextColorAttribute.hxx \
-       SALOMEDS_TextHighlightColorAttribute.hxx \
        SALOMEDS_UseCaseBuilder.hxx \
        SALOMEDS_UseCaseBuilder_i.hxx \
        SALOMEDS_UseCaseIterator.hxx \
        SALOMEDS_UseCaseIterator_i.hxx \
        SALOMEDS_AttributeParameter.hxx \
        SALOMEDS_AttributeParameter_i.hxx \
+       SALOMEDS_AttributeString.hxx \
+       SALOMEDS_AttributeString_i.hxx \
        SALOMEDS_TMPFile_i.hxx
 
 libSalomeDS_la_CPPFLAGS = $(COMMON_CPPFLAGS)
-libSalomeDS_la_LDFLAGS  = -no-undefined -version-info=0:0:0
+libSalomeDS_la_LDFLAGS  = -Wl,-E -no-undefined -version-info=0:0:0 @LDEXPDYNFLAGS@
 libSalomeDS_la_LIBADD    = $(COMMON_LIBS)
 
 #
@@ -319,17 +287,16 @@ bin_PROGRAMS = SALOMEDS_Server SALOMEDS_Client
 
 SALOMEDS_Server_SOURCES  = SALOMEDS_Server.cxx
 SALOMEDS_Server_CPPFLAGS = $(COMMON_CPPFLAGS)
-SALOMEDS_Server_LDADD    = \
-       libSalomeDS.la $(COMMON_LIBS) \
-       ../ResourcesManager/libSalomeResourcesManager.la \
-       @CAS_OCAF@ \
-       @CORBA_LIBS@
+SALOMEDS_Server_LDADD    = libSalomeDS.la \
+       $(COMMON_LIBS) \
+       ../Basics/libSALOMEBasics.la \
+       $(HDF5_LIBS) \
+       $(CORBA_LIBS)
 
 SALOMEDS_Client_SOURCES  = SALOMEDS_Client.cxx
 SALOMEDS_Client_CPPFLAGS = $(COMMON_CPPFLAGS)
-SALOMEDS_Client_LDADD    = \
-       libSalomeDS.la $(COMMON_LIBS) \
-       ../ResourcesManager/libSalomeResourcesManager.la \
-       -lTKLCAF -lTKMath \
-       @CORBA_LIBS@
-
+SALOMEDS_Client_LDADD    = libSalomeDS.la \
+       $(COMMON_LIBS) \
+       ../Basics/libSALOMEBasics.la \
+       $(HDF5_LIBS) \
+       $(CORBA_LIBS)