Salome HOME
CCAR: some optimisations for SALOMEDS
[modules/kernel.git] / src / SALOMEDSImpl / Makefile.am
1 #  Copyright (C) 2007-2010  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
23 #  File   : Makefile.am
24 #  Author : Guillaume Boulant (CSSI)
25 #  Module : KERNEL
26 #
27 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
28
29 #
30 # ===============================================================
31 # Files to be installed
32 # ===============================================================
33 #
34 # header files  
35 salomeinclude_HEADERS= \
36         SALOMEDSImpl_Attributes.hxx \
37         SALOMEDSImpl_SObject.hxx \
38         SALOMEDSImpl_SComponent.hxx \
39         SALOMEDSImpl_Driver.hxx \
40         SALOMEDSImpl_Callback.hxx \
41         SALOMEDSImpl_ChildIterator.hxx \
42         SALOMEDSImpl_GenericAttribute.hxx \
43         SALOMEDSImpl_AttributeIOR.hxx \
44         SALOMEDSImpl_AttributeExternalFileDef.hxx \
45         SALOMEDSImpl_AttributeFileType.hxx \
46         SALOMEDSImpl_AttributePersistentRef.hxx \
47         SALOMEDSImpl_AttributeSequenceOfReal.hxx \
48         SALOMEDSImpl_AttributeSequenceOfInteger.hxx \
49         SALOMEDSImpl_AttributeDrawable.hxx \
50         SALOMEDSImpl_AttributeSelectable.hxx \
51         SALOMEDSImpl_AttributeExpandable.hxx  \
52         SALOMEDSImpl_AttributeOpened.hxx \
53         SALOMEDSImpl_AttributeFlags.hxx \
54         SALOMEDSImpl_AttributeGraphic.hxx \
55         SALOMEDSImpl_AttributeTextColor.hxx \
56         SALOMEDSImpl_AttributeTextHighlightColor.hxx \
57         SALOMEDSImpl_AttributePixMap.hxx \
58         SALOMEDSImpl_AttributeLocalID.hxx \
59         SALOMEDSImpl_AttributeTarget.hxx \
60         SALOMEDSImpl_AttributeTable.hxx \
61         SALOMEDSImpl_AttributeTableOfInteger.hxx \
62         SALOMEDSImpl_AttributeTableOfReal.hxx \
63         SALOMEDSImpl_AttributeTableOfString.hxx \
64         SALOMEDSImpl_AttributeStudyProperties.hxx \
65         SALOMEDSImpl_AttributePythonObject.hxx \
66         SALOMEDSImpl_AttributeReal.hxx \
67         SALOMEDSImpl_AttributeInteger.hxx \
68         SALOMEDSImpl_AttributeUserID.hxx \
69         SALOMEDSImpl_AttributeTreeNode.hxx \
70         SALOMEDSImpl_AttributeName.hxx \
71         SALOMEDSImpl_AttributeComment.hxx \
72         SALOMEDSImpl_AttributeReference.hxx \
73         SALOMEDSImpl_AttributeParameter.hxx \
74         SALOMEDSImpl_AttributeString.hxx \
75         SALOMEDSImpl_UseCaseBuilder.hxx \
76         SALOMEDSImpl_UseCaseIterator.hxx \
77         SALOMEDSImpl_SComponentIterator.hxx \
78         SALOMEDSImpl_StudyBuilder.hxx \
79         SALOMEDSImpl_Study.hxx \
80         SALOMEDSImpl_StudyManager.hxx \
81         SALOMEDSImpl_ChildNodeIterator.hxx \
82         SALOMEDSImpl_Defines.hxx \
83         SALOMEDSImpl_IParameters.hxx \
84         SALOMEDSImpl_TMPFile.hxx \
85         SALOMEDSImpl_GenericVariable.hxx \
86         SALOMEDSImpl_ScalarVariable.hxx
87
88 #
89 # ===============================================================
90 # Local definitions
91 # ===============================================================
92 #
93
94 # This local variable defines the list of CPPFLAGS common to all target in this package.
95 COMMON_CPPFLAGS=\
96         -I$(srcdir)/../Basics \
97         -I$(srcdir)/../SALOMELocalTrace \
98         -I$(srcdir)/../HDFPersist \
99         -I$(srcdir)/../DF \
100         -I$(srcdir)/../GenericObj \
101         -I$(top_builddir)/idl \
102         -I$(top_builddir) \
103         @HDF5_INCLUDES@ \
104         @BOOST_CPPFLAGS@ @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
105
106 # This local variable defines the list of dependant libraries common to all target in this package.
107 COMMON_LIBS =\
108         ../Basics/libSALOMEBasics.la \
109         ../HDFPersist/libSalomeHDFPersist.la \
110         ../DF/libDF.la \
111         ../GenericObj/libSalomeGenericObj.la \
112         @HDF5_LIBS@ 
113
114
115 #
116 # ===============================================================
117 # Libraries targets
118 # ===============================================================
119 #
120 lib_LTLIBRARIES = libSalomeDSImpl.la
121 libSalomeDSImpl_la_SOURCES =\
122         SALOMEDSImpl_Tool.cxx \
123         SALOMEDSImpl_Callback.cxx \
124         SALOMEDSImpl_StudyHandle.cxx \
125         SALOMEDSImpl_GenericAttribute.cxx \
126         SALOMEDSImpl_SObject.cxx \
127         SALOMEDSImpl_SComponent.cxx \
128         SALOMEDSImpl_ChildIterator.cxx \
129         SALOMEDSImpl_AttributeIOR.cxx \
130         SALOMEDSImpl_AttributeExternalFileDef.cxx \
131         SALOMEDSImpl_AttributeFileType.cxx \
132         SALOMEDSImpl_AttributePersistentRef.cxx \
133         SALOMEDSImpl_AttributeSequenceOfReal.cxx \
134         SALOMEDSImpl_AttributeSequenceOfInteger.cxx \
135         SALOMEDSImpl_AttributeDrawable.cxx \
136         SALOMEDSImpl_AttributeSelectable.cxx \
137         SALOMEDSImpl_AttributeExpandable.cxx  \
138         SALOMEDSImpl_AttributeOpened.cxx \
139         SALOMEDSImpl_AttributeFlags.cxx \
140         SALOMEDSImpl_AttributeGraphic.cxx \
141         SALOMEDSImpl_AttributeTextColor.cxx \
142         SALOMEDSImpl_AttributeTextHighlightColor.cxx \
143         SALOMEDSImpl_AttributePixMap.cxx \
144         SALOMEDSImpl_AttributeLocalID.cxx \
145         SALOMEDSImpl_AttributeTarget.cxx \
146         SALOMEDSImpl_AttributeTableOfInteger.cxx \
147         SALOMEDSImpl_AttributeTableOfReal.cxx \
148         SALOMEDSImpl_AttributeTableOfString.cxx \
149         SALOMEDSImpl_AttributeStudyProperties.cxx \
150         SALOMEDSImpl_AttributePythonObject.cxx \
151         SALOMEDSImpl_AttributeReal.cxx \
152         SALOMEDSImpl_AttributeInteger.cxx \
153         SALOMEDSImpl_AttributeUserID.cxx \
154         SALOMEDSImpl_AttributeTreeNode.cxx \
155         SALOMEDSImpl_AttributeName.cxx \
156         SALOMEDSImpl_AttributeComment.cxx \
157         SALOMEDSImpl_AttributeReference.cxx \
158         SALOMEDSImpl_AttributeParameter.cxx \
159         SALOMEDSImpl_AttributeString.cxx \
160         SALOMEDSImpl_ChildNodeIterator.cxx \
161         SALOMEDSImpl_UseCaseBuilder.cxx \
162         SALOMEDSImpl_UseCaseIterator.cxx \
163         SALOMEDSImpl_SComponentIterator.cxx \
164         SALOMEDSImpl_StudyBuilder.cxx \
165         SALOMEDSImpl_Study.cxx \
166         SALOMEDSImpl_StudyManager.cxx \
167         SALOMEDSImpl_IParameters.cxx \
168         SALOMEDSImpl_TMPFile.cxx \
169         SALOMEDSImpl_GenericVariable.cxx \
170         SALOMEDSImpl_ScalarVariable.cxx \
171         \
172         SALOMEDSImpl_AttributeComment.hxx \
173         SALOMEDSImpl_AttributeDrawable.hxx \
174         SALOMEDSImpl_AttributeExpandable.hxx \
175         SALOMEDSImpl_AttributeExternalFileDef.hxx \
176         SALOMEDSImpl_AttributeFileType.hxx \
177         SALOMEDSImpl_AttributeFlags.hxx \
178         SALOMEDSImpl_AttributeGraphic.hxx \
179         SALOMEDSImpl_AttributeInteger.hxx \
180         SALOMEDSImpl_AttributeIOR.hxx \
181         SALOMEDSImpl_AttributeLocalID.hxx \
182         SALOMEDSImpl_AttributeName.hxx \
183         SALOMEDSImpl_AttributeOpened.hxx \
184         SALOMEDSImpl_AttributePersistentRef.hxx \
185         SALOMEDSImpl_AttributePixMap.hxx \
186         SALOMEDSImpl_AttributePythonObject.hxx \
187         SALOMEDSImpl_AttributeReal.hxx \
188         SALOMEDSImpl_AttributeReference.hxx \
189         SALOMEDSImpl_AttributeSelectable.hxx \
190         SALOMEDSImpl_AttributeSequenceOfInteger.hxx \
191         SALOMEDSImpl_AttributeSequenceOfReal.hxx \
192         SALOMEDSImpl_Attributes.hxx \
193         SALOMEDSImpl_AttributeStudyProperties.hxx \
194         SALOMEDSImpl_AttributeTable.hxx \
195         SALOMEDSImpl_AttributeTableOfInteger.hxx \
196         SALOMEDSImpl_AttributeTableOfReal.hxx \
197         SALOMEDSImpl_AttributeTableOfString.hxx \
198         SALOMEDSImpl_AttributeTarget.hxx \
199         SALOMEDSImpl_AttributeTextColor.hxx \
200         SALOMEDSImpl_AttributeTextHighlightColor.hxx \
201         SALOMEDSImpl_AttributeTreeNode.hxx \
202         SALOMEDSImpl_AttributeUserID.hxx \
203         SALOMEDSImpl_AttributeParameter.hxx \
204         SALOMEDSImpl_AttributeString.hxx \
205         SALOMEDSImpl_Callback.hxx \
206         SALOMEDSImpl_ChildIterator.hxx \
207         SALOMEDSImpl_ChildNodeIterator.hxx \
208         SALOMEDSImpl_Defines.hxx \
209         SALOMEDSImpl_Driver.hxx \
210         SALOMEDSImpl_GenericAttribute.hxx \
211         SALOMEDSImpl_SComponent.hxx \
212         SALOMEDSImpl_SComponentIterator.hxx \
213         SALOMEDSImpl_SObject.hxx \
214         SALOMEDSImpl_StudyBuilder.hxx \
215         SALOMEDSImpl_StudyHandle.hxx \
216         SALOMEDSImpl_Study.hxx \
217         SALOMEDSImpl_StudyManager.hxx \
218         SALOMEDSImpl_Tool.hxx \
219         SALOMEDSImpl_UseCaseBuilder.hxx \
220         SALOMEDSImpl_UseCaseIterator.hxx \
221         SALOMEDSImpl_GenericVariable.hxx \
222         SALOMEDSImpl_ScalarVariable.hxx
223
224 libSalomeDSImpl_la_CPPFLAGS = $(COMMON_CPPFLAGS)
225 libSalomeDSImpl_la_LDFLAGS  = -no-undefined -version-info=0:0:0
226 libSalomeDSImpl_la_LIBADD    = $(COMMON_LIBS) $(CORBA_LIBS)
227
228 #
229 # ===============================================================
230 # Executables targets
231 # ===============================================================
232 #
233 bin_PROGRAMS = testDS
234 testDS_SOURCES  = testDS.cxx
235 testDS_CPPFLAGS = $(COMMON_CPPFLAGS)
236 testDS_LDADD    = libSalomeDSImpl.la ../DF/libDF.la \
237         $(HDF5_LIBS) $(CORBA_LIBS)