Salome HOME
BugID PAL10141, Added 4 new methods for Study: SetStudyLock, IsStudyLocked,
[modules/kernel.git] / src / SALOMEDS / Makefile.am
1 # Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
2 #           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either 
6 # version 2.1 of the License.
7
8 # This library is distributed in the hope that it will be useful 
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 # Lesser General Public License for more details.
12
13 # You should have received a copy of the GNU Lesser General Public  
14 # License along with this library; if not, write to the Free Software 
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
19 #
20 #  File   : Makefile.am
21 #  Author : Guillaume Boulant (CSSI)
22 #  Module : KERNEL
23
24 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
25
26 #
27 # ===============================================================
28 # Files to be installed
29 # ===============================================================
30 #
31 # header files  
32 salomeinclude_HEADERS= \
33         SALOMEDS_StudyManager_i.hxx \
34         SALOMEDS_Driver_i.hxx \
35         SALOMEDS_StudyManager.hxx \
36         SALOMEDS_Study_i.hxx \
37         SALOMEDS_Study.hxx \
38         SALOMEDS_SObject_i.hxx \
39         SALOMEDS_SObject.hxx \
40         SALOMEDS_SComponent_i.hxx \
41         SALOMEDS_SComponent.hxx \
42         SALOMEDS_GenericAttribute_i.hxx \
43         SALOMEDS_GenericAttribute.hxx \
44         SALOMEDS_IParameters.hxx
45
46 # Scripts to be installed
47 dist_salomescript_DATA = SALOME_DriverPy.py
48
49 #
50 # ===============================================================
51 # Local definitions
52 # ===============================================================
53 #
54
55 # This local variable defines the list of CPPFLAGS common to all target in this package.
56 COMMON_CPPFLAGS=\
57         @CAS_CPPFLAGS@ @CAS_CXXFLAGS@ \
58         @BOOST_CPPFLAGS@ \
59         -I$(srcdir)/../HDFPersist \
60         @HDF5_INCLUDES@ \
61         -I$(srcdir)/../Basics \
62         -I$(srcdir)/../SALOMELocalTrace \
63         -I$(srcdir)/../Utils \
64         -I$(srcdir)/../SALOMEDSImpl \
65         -I$(srcdir)/../NamingService \
66         -I$(srcdir)/../GenericObj \
67         -I$(srcdir)/../SALOMEDSClient \
68         -I$(srcdir)/../LifeCycleCORBA \
69         -I$(top_builddir)/salome_adm/unix \
70         -I$(top_builddir)/idl \
71         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
72
73 # This flag is used to resolve the dependencies of OCC libraries.
74 LDXMUFLAGS = -L/usr/X11R6/lib@LIB_LOCATION_SUFFIX@ -lXmu
75
76 # This local variable defines the list of dependant libraries common to all target in this package.
77 COMMON_LIBS =\
78         ../TOOLSDS/libTOOLSDS.la \
79         ../NamingService/libSalomeNS.la \
80         ../Utils/libOpUtil.la \
81         ../SALOMELocalTrace/libSALOMELocalTrace.la \
82         ../Basics/libSALOMEBasics.la \
83         ../HDFPersist/libSalomeHDFPersist.la \
84         ../SALOMEDSImpl/libSalomeDSImpl.la \
85         ../GenericObj/libSalomeGenericObj.la \
86         ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \
87         $(top_builddir)/idl/libSalomeIDLKernel.la\
88         @CAS_KERNEL@ \
89         @HDF5_LIBS@ \
90         $(LDXMUFLAGS)
91
92
93 #LDFLAGS+=  -lSalomeGenericObj -lSalomeLifeCycleCORBA
94
95 #
96 # ===============================================================
97 # Libraries targets
98 # ===============================================================
99 #
100 lib_LTLIBRARIES = libSalomeDS.la
101 libSalomeDS_la_SOURCES =        \
102         SALOMEDS.cxx \
103         SALOMEDS_Driver_i.cxx \
104         SALOMEDS_StudyManager_i.cxx \
105         SALOMEDS_UseCaseBuilder_i.cxx \
106         SALOMEDS_UseCaseIterator_i.cxx \
107         SALOMEDS_ChildIterator_i.cxx \
108         SALOMEDS_SComponentIterator_i.cxx \
109         SALOMEDS_Study_i.cxx \
110         SALOMEDS_StudyBuilder_i.cxx \
111         SALOMEDS_SObject_i.cxx \
112         SALOMEDS_SComponent_i.cxx \
113         SALOMEDS_GenericAttribute_i.cxx \
114         SALOMEDS_AttributeComment_i.cxx \
115         SALOMEDS_AttributeExternalFileDef_i.cxx \
116         SALOMEDS_AttributeFileType_i.cxx \
117         SALOMEDS_AttributeIOR_i.cxx \
118         SALOMEDS_AttributeInteger_i.cxx \
119         SALOMEDS_AttributeName_i.cxx \
120         SALOMEDS_AttributePersistentRef_i.cxx \
121         SALOMEDS_AttributeReal_i.cxx \
122         SALOMEDS_AttributeSequenceOfReal_i.cxx \
123         SALOMEDS_AttributeSequenceOfInteger_i.cxx \
124         SALOMEDS_AttributeDrawable_i.cxx \
125         SALOMEDS_AttributeSelectable_i.cxx \
126         SALOMEDS_AttributeOpened_i.cxx \
127         SALOMEDS_AttributeFlags_i.cxx \
128         SALOMEDS_AttributeGraphic_i.cxx \
129         SALOMEDS_AttributeExpandable_i.cxx \
130         SALOMEDS_AttributeTextColor_i.cxx  \
131         SALOMEDS_AttributeTextHighlightColor_i.cxx  \
132         SALOMEDS_AttributePixMap_i.cxx  \
133         SALOMEDS_AttributeTreeNode_i.cxx \
134         SALOMEDS_AttributeLocalID_i.cxx \
135         SALOMEDS_AttributeUserID_i.cxx \
136         SALOMEDS_AttributeTarget_i.cxx \
137         SALOMEDS_AttributeTableOfInteger_i.cxx \
138         SALOMEDS_AttributeTableOfReal_i.cxx \
139         SALOMEDS_AttributeTableOfString_i.cxx \
140         SALOMEDS_AttributeStudyProperties_i.cxx \
141         SALOMEDS_AttributePythonObject_i.cxx \
142         SALOMEDS_AttributeParameter_i.cxx \
143         SALOMEDS_SObject.cxx \
144         SALOMEDS_SComponent.cxx \
145         SALOMEDS_GenericAttribute.cxx \
146         SALOMEDS_ChildIterator.cxx \
147         SALOMEDS_SComponentIterator.cxx \
148         SALOMEDS_UseCaseIterator.cxx \
149         SALOMEDS_UseCaseBuilder.cxx \
150         SALOMEDS_StudyBuilder.cxx \
151         SALOMEDS_Study.cxx \
152         SALOMEDS_StudyManager.cxx \
153         SALOMEDS_AttributeStudyProperties.cxx \
154         SALOMEDS_AttributeComment.cxx \
155         SALOMEDS_AttributeDrawable.cxx \
156         SALOMEDS_AttributeExpandable.cxx \
157         SALOMEDS_AttributeExternalFileDef.cxx \
158         SALOMEDS_AttributeFileType.cxx \
159         SALOMEDS_AttributeFlags.cxx \
160         SALOMEDS_AttributeGraphic.cxx \
161         SALOMEDS_AttributeIOR.cxx \
162         SALOMEDS_AttributeInteger.cxx \
163         SALOMEDS_AttributeLocalID.cxx \
164         SALOMEDS_AttributeName.cxx \
165         SALOMEDS_AttributeOpened.cxx \
166         SALOMEDS_AttributePythonObject.cxx \
167         SALOMEDS_AttributeReal.cxx \
168         SALOMEDS_AttributeSelectable.cxx \
169         SALOMEDS_AttributeSequenceOfInteger.cxx \
170         SALOMEDS_AttributePersistentRef.cxx \
171         SALOMEDS_AttributePixMap.cxx \
172         SALOMEDS_AttributeSequenceOfReal.cxx \
173         SALOMEDS_AttributeTableOfInteger.cxx \
174         SALOMEDS_AttributeTableOfReal.cxx \
175         SALOMEDS_AttributeTableOfString.cxx \
176         SALOMEDS_AttributeTarget.cxx \
177         SALOMEDS_AttributeTextColor.cxx \
178         SALOMEDS_AttributeTextHighlightColor.cxx \
179         SALOMEDS_AttributeTreeNode.cxx \
180         SALOMEDS_AttributeUserID.cxx \
181         SALOMEDS_TMPFile_i.cxx \
182         SALOMEDS_AttributeParameter.cxx \
183         SALOMEDS_IParameters.cxx \
184         \
185         Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx \
186         Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx \
187         Handle_SALOMEDS_DrawableAttribute.hxx \
188         Handle_SALOMEDS_ExpandableAttribute.hxx \
189         Handle_SALOMEDS_ExternalFileDef.hxx \
190         Handle_SALOMEDS_FileType.hxx \
191         Handle_SALOMEDS_IORAttribute.hxx \
192         Handle_SALOMEDS_LocalIDAttribute.hxx \
193         Handle_SALOMEDS_OCAFApplication.hxx \
194         Handle_SALOMEDS_OpenedAttribute.hxx \
195         Handle_SALOMEDS_PersRefAttribute.hxx \
196         Handle_SALOMEDS_PixMapAttribute.hxx \
197         Handle_SALOMEDS_PythonObjectAttribute.hxx \
198         Handle_SALOMEDS_SelectableAttribute.hxx \
199         Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx \
200         Handle_SALOMEDS_SequenceOfRealAttribute.hxx \
201         Handle_SALOMEDS_StudyPropertiesAttribute.hxx \
202         Handle_SALOMEDS_TableOfIntegerAttribute.hxx \
203         Handle_SALOMEDS_TableOfRealAttribute.hxx \
204         Handle_SALOMEDS_TableOfStringAttribute.hxx \
205         Handle_SALOMEDS_TargetAttribute.hxx \
206         Handle_SALOMEDS_TextColorAttribute.hxx \
207         Handle_SALOMEDS_TextHighlightColorAttribute.hxx \
208         SALOMEDS_AttLong_i.hxx \
209         SALOMEDS_AttReal_i.hxx \
210         SALOMEDS_AttributeComment.hxx \
211         SALOMEDS_AttributeComment_i.hxx \
212         SALOMEDS_AttributeDrawable.hxx \
213         SALOMEDS_AttributeDrawable_i.hxx \
214         SALOMEDS_AttributeExpandable.hxx \
215         SALOMEDS_AttributeExpandable_i.hxx \
216         SALOMEDS_AttributeExternalFileDef.hxx \
217         SALOMEDS_AttributeExternalFileDef_i.hxx \
218         SALOMEDS_AttributeFileType.hxx \
219         SALOMEDS_AttributeFileType_i.hxx \
220         SALOMEDS_AttributeFlags.hxx \
221         SALOMEDS_AttributeFlags_i.hxx \
222         SALOMEDS_AttributeGraphic.hxx \
223         SALOMEDS_AttributeGraphic_i.hxx \
224         SALOMEDS_AttributeInteger.hxx \
225         SALOMEDS_AttributeInteger_i.hxx \
226         SALOMEDS_AttributeIOR.hxx \
227         SALOMEDS_AttributeIOR_i.hxx \
228         SALOMEDS_AttributeLocalID.hxx \
229         SALOMEDS_AttributeLocalID_i.hxx \
230         SALOMEDS_AttributeName.hxx \
231         SALOMEDS_AttributeName_i.hxx \
232         SALOMEDS_AttributeOpened.hxx \
233         SALOMEDS_AttributeOpened_i.hxx \
234         SALOMEDS_AttributePersistentRef.hxx \
235         SALOMEDS_AttributePersistentRef_i.hxx \
236         SALOMEDS_AttributePixMap.hxx \
237         SALOMEDS_AttributePixMap_i.hxx \
238         SALOMEDS_AttributePythonObject.hxx \
239         SALOMEDS_AttributePythonObject_i.hxx \
240         SALOMEDS_AttributeReal.hxx \
241         SALOMEDS_AttributeReal_i.hxx \
242         SALOMEDS_AttributeSelectable.hxx \
243         SALOMEDS_AttributeSelectable_i.hxx \
244         SALOMEDS_AttributeSequenceOfInteger.hxx \
245         SALOMEDS_AttributeSequenceOfInteger_i.hxx \
246         SALOMEDS_AttributeSequenceOfReal.hxx \
247         SALOMEDS_AttributeSequenceOfReal_i.hxx \
248         SALOMEDS_Attributes.hxx \
249         SALOMEDS_AttributeStudyProperties.hxx \
250         SALOMEDS_AttributeStudyProperties_i.hxx \
251         SALOMEDS_AttributeTableOfInteger.hxx \
252         SALOMEDS_AttributeTableOfInteger_i.hxx \
253         SALOMEDS_AttributeTableOfReal.hxx \
254         SALOMEDS_AttributeTableOfReal_i.hxx \
255         SALOMEDS_AttributeTableOfString.hxx \
256         SALOMEDS_AttributeTableOfString_i.hxx \
257         SALOMEDS_AttributeTarget.hxx \
258         SALOMEDS_AttributeTarget_i.hxx \
259         SALOMEDS_AttributeTextColor.hxx \
260         SALOMEDS_AttributeTextColor_i.hxx \
261         SALOMEDS_AttributeTextHighlightColor.hxx \
262         SALOMEDS_AttributeTextHighlightColor_i.hxx \
263         SALOMEDS_AttributeTreeNode.hxx \
264         SALOMEDS_AttributeTreeNode_i.hxx \
265         SALOMEDS_AttributeUserID.hxx \
266         SALOMEDS_AttributeUserID_i.hxx \
267         SALOMEDS_BasicAttributeFactory.hxx \
268         SALOMEDS_BasicAttribute_i.hxx \
269         SALOMEDS_Callback_i.hxx \
270         SALOMEDS_ChildIterator.hxx \
271         SALOMEDS_ChildIterator_i.hxx \
272         SALOMEDS_ClientAttributes.hxx \
273         SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx \
274         SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx \
275         SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx \
276         SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx \
277         SALOMEDS_DataMapOfIntegerString.hxx \
278         SALOMEDS_DataMapStringLabel.hxx \
279         SALOMEDS_DrawableAttribute.hxx \
280         SALOMEDS_Driver_i.hxx \
281         SALOMEDS_ExpandableAttribute.hxx \
282         SALOMEDS_ExternalFileDef.hxx \
283         SALOMEDS_FileType.hxx \
284         SALOMEDS_FlagsAttribute.hxx \
285         SALOMEDS_GenericAttribute.hxx \
286         SALOMEDS_GenericAttribute_i.hxx \
287         SALOMEDS_GraphicAttribute.hxx \
288         SALOMEDS.hxx \
289         SALOMEDS_IORAttribute.hxx \
290         SALOMEDS_LocalIDAttribute.hxx \
291         SALOMEDS_OCAFApplication.hxx \
292         SALOMEDS_OpenedAttribute.hxx \
293         SALOMEDS_PersRefAttribute.hxx \
294         SALOMEDS_PixMapAttribute.hxx \
295         SALOMEDS_PythonObjectAttribute.hxx \
296         SALOMEDS_SAttribute_i.hxx \
297         SALOMEDS_SComponent.hxx \
298         SALOMEDS_SComponent_i.hxx \
299         SALOMEDS_SComponentIterator.hxx \
300         SALOMEDS_SComponentIterator_i.hxx \
301         SALOMEDS_SelectableAttribute.hxx \
302         SALOMEDS_SequenceOfIntegerAttribute.hxx \
303         SALOMEDS_SequenceOfRealAttribute.hxx \
304         SALOMEDS_SObject.hxx \
305         SALOMEDS_SObject_i.hxx \
306         SALOMEDS_StudyBuilder.hxx \
307         SALOMEDS_StudyBuilder_i.hxx \
308         SALOMEDS_Study.hxx \
309         SALOMEDS_Study_i.hxx \
310         SALOMEDS_StudyManager.hxx \
311         SALOMEDS_StudyManager_i.hxx \
312         SALOMEDS_StudyPropertiesAttribute.hxx \
313         SALOMEDS_TableOfIntegerAttribute.hxx \
314         SALOMEDS_TableOfRealAttribute.hxx \
315         SALOMEDS_TableOfStringAttribute.hxx \
316         SALOMEDS_TargetAttribute.hxx \
317         SALOMEDS_TextColorAttribute.hxx \
318         SALOMEDS_TextHighlightColorAttribute.hxx \
319         SALOMEDS_UseCaseBuilder.hxx \
320         SALOMEDS_UseCaseBuilder_i.hxx \
321         SALOMEDS_UseCaseIterator.hxx \
322         SALOMEDS_UseCaseIterator_i.hxx \
323         SALOMEDS_AttributeParameter.hxx \
324         SALOMEDS_AttributeParameter_i.hxx \
325         SALOMEDS_TMPFile_i.hxx
326
327 libSalomeDS_la_CPPFLAGS = $(COMMON_CPPFLAGS)
328 libSalomeDS_la_LDFLAGS  = -Wl,-E -no-undefined -version-info=0:0:0 @LDEXPDYNFLAGS@
329 libSalomeDS_la_LIBADD    = $(COMMON_LIBS)
330
331 #
332 # ===============================================================
333 # Executables targets
334 # ===============================================================
335 #
336 bin_PROGRAMS = SALOMEDS_Server SALOMEDS_Client
337
338 SALOMEDS_Server_SOURCES  = SALOMEDS_Server.cxx
339 SALOMEDS_Server_CPPFLAGS = $(COMMON_CPPFLAGS)
340 SALOMEDS_Server_LDADD    = \
341         libSalomeDS.la $(COMMON_LIBS) \
342         ../ResourcesManager/libSalomeResourcesManager.la \
343         @CAS_OCAF@ \
344         @CORBA_LIBS@
345
346 SALOMEDS_Client_SOURCES  = SALOMEDS_Client.cxx
347 SALOMEDS_Client_CPPFLAGS = $(COMMON_CPPFLAGS)
348 SALOMEDS_Client_LDADD    = \
349         libSalomeDS.la $(COMMON_LIBS) \
350         ../ResourcesManager/libSalomeResourcesManager.la \
351         -lTKLCAF -lTKMath \
352         @CORBA_LIBS@
353