Salome HOME
CCAR: remove memory leaks in non local SALOMEDS
[modules/kernel.git] / src / SALOMEDS / Makefile.am
1 #  Copyright (C) 2007-2008  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 #  File   : Makefile.am
23 #  Author : Guillaume Boulant (CSSI)
24 #  Module : KERNEL
25 #
26 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
27
28 #
29 # ===============================================================
30 # Files to be installed
31 # ===============================================================
32 #
33 # header files  
34 salomeinclude_HEADERS= \
35         SALOMEDS_StudyManager_i.hxx \
36         SALOMEDS_Driver_i.hxx \
37         SALOMEDS_StudyManager.hxx \
38         SALOMEDS_Study_i.hxx \
39         SALOMEDS_Study.hxx \
40         SALOMEDS_SObject_i.hxx \
41         SALOMEDS_SObject.hxx \
42         SALOMEDS_SComponent_i.hxx \
43         SALOMEDS_SComponent.hxx \
44         SALOMEDS_GenericAttribute_i.hxx \
45         SALOMEDS_GenericAttribute.hxx \
46         SALOMEDS_IParameters.hxx \
47         SALOMEDS_Defines.hxx
48
49 # Scripts to be installed
50 dist_salomescript_PYTHON = SALOME_DriverPy.py
51
52 #
53 # ===============================================================
54 # Local definitions
55 # ===============================================================
56 #
57
58 # This local variable defines the list of CPPFLAGS common to all target in this package.
59 COMMON_CPPFLAGS=\
60         @BOOST_CPPFLAGS@ \
61         -I$(srcdir)/../HDFPersist \
62         @HDF5_INCLUDES@ \
63         -I$(srcdir)/../Basics \
64         -I$(srcdir)/../SALOMELocalTrace \
65         -I$(srcdir)/../Utils \
66         -I$(srcdir)/../DF \
67         -I$(srcdir)/../SALOMEDSImpl \
68         -I$(srcdir)/../NamingService \
69         -I$(srcdir)/../GenericObj \
70         -I$(srcdir)/../SALOMEDSClient \
71         -I$(srcdir)/../LifeCycleCORBA \
72         -I$(top_builddir)/idl \
73         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
74
75 # This local variable defines the list of dependant libraries common to all target in this package.
76 COMMON_LIBS =\
77         ../TOOLSDS/libTOOLSDS.la \
78         ../NamingService/libSalomeNS.la \
79         ../Utils/libOpUtil.la \
80         ../SALOMELocalTrace/libSALOMELocalTrace.la \
81         ../Basics/libSALOMEBasics.la \
82         ../HDFPersist/libSalomeHDFPersist.la \
83         ../DF/libDF.la \
84         ../SALOMEDSImpl/libSalomeDSImpl.la \
85         ../GenericObj/libSalomeGenericObj.la \
86         ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \
87         $(top_builddir)/idl/libSalomeIDLKernel.la\
88         @HDF5_LIBS@ 
89
90
91 #LDFLAGS+=  -lSalomeGenericObj -lSalomeLifeCycleCORBA
92
93 #
94 # ===============================================================
95 # Libraries targets
96 # ===============================================================
97 #
98 lib_LTLIBRARIES = libSalomeDS.la
99 libSalomeDS_la_SOURCES =        \
100         SALOMEDS.cxx \
101         SALOMEDS_Driver_i.cxx \
102         SALOMEDS_StudyManager_i.cxx \
103         SALOMEDS_UseCaseBuilder_i.cxx \
104         SALOMEDS_UseCaseIterator_i.cxx \
105         SALOMEDS_ChildIterator_i.cxx \
106         SALOMEDS_SComponentIterator_i.cxx \
107         SALOMEDS_Study_i.cxx \
108         SALOMEDS_StudyBuilder_i.cxx \
109         SALOMEDS_SObject_i.cxx \
110         SALOMEDS_SComponent_i.cxx \
111         SALOMEDS_GenericAttribute_i.cxx \
112         SALOMEDS_AttributeComment_i.cxx \
113         SALOMEDS_AttributeExternalFileDef_i.cxx \
114         SALOMEDS_AttributeFileType_i.cxx \
115         SALOMEDS_AttributeIOR_i.cxx \
116         SALOMEDS_AttributeInteger_i.cxx \
117         SALOMEDS_AttributeName_i.cxx \
118         SALOMEDS_AttributePersistentRef_i.cxx \
119         SALOMEDS_AttributeReal_i.cxx \
120         SALOMEDS_AttributeSequenceOfReal_i.cxx \
121         SALOMEDS_AttributeSequenceOfInteger_i.cxx \
122         SALOMEDS_AttributeDrawable_i.cxx \
123         SALOMEDS_AttributeSelectable_i.cxx \
124         SALOMEDS_AttributeOpened_i.cxx \
125         SALOMEDS_AttributeFlags_i.cxx \
126         SALOMEDS_AttributeGraphic_i.cxx \
127         SALOMEDS_AttributeExpandable_i.cxx \
128         SALOMEDS_AttributeTextColor_i.cxx  \
129         SALOMEDS_AttributeTextHighlightColor_i.cxx  \
130         SALOMEDS_AttributePixMap_i.cxx  \
131         SALOMEDS_AttributeTreeNode_i.cxx \
132         SALOMEDS_AttributeLocalID_i.cxx \
133         SALOMEDS_AttributeUserID_i.cxx \
134         SALOMEDS_AttributeTarget_i.cxx \
135         SALOMEDS_AttributeTableOfInteger_i.cxx \
136         SALOMEDS_AttributeTableOfReal_i.cxx \
137         SALOMEDS_AttributeTableOfString_i.cxx \
138         SALOMEDS_AttributeStudyProperties_i.cxx \
139         SALOMEDS_AttributePythonObject_i.cxx \
140         SALOMEDS_AttributeParameter_i.cxx \
141         SALOMEDS_AttributeString_i.cxx \
142         SALOMEDS_SObject.cxx \
143         SALOMEDS_SComponent.cxx \
144         SALOMEDS_GenericAttribute.cxx \
145         SALOMEDS_ChildIterator.cxx \
146         SALOMEDS_SComponentIterator.cxx \
147         SALOMEDS_UseCaseIterator.cxx \
148         SALOMEDS_UseCaseBuilder.cxx \
149         SALOMEDS_StudyBuilder.cxx \
150         SALOMEDS_Study.cxx \
151         SALOMEDS_StudyManager.cxx \
152         SALOMEDS_AttributeStudyProperties.cxx \
153         SALOMEDS_AttributeComment.cxx \
154         SALOMEDS_AttributeDrawable.cxx \
155         SALOMEDS_AttributeExpandable.cxx \
156         SALOMEDS_AttributeExternalFileDef.cxx \
157         SALOMEDS_AttributeFileType.cxx \
158         SALOMEDS_AttributeFlags.cxx \
159         SALOMEDS_AttributeGraphic.cxx \
160         SALOMEDS_AttributeIOR.cxx \
161         SALOMEDS_AttributeInteger.cxx \
162         SALOMEDS_AttributeLocalID.cxx \
163         SALOMEDS_AttributeName.cxx \
164         SALOMEDS_AttributeOpened.cxx \
165         SALOMEDS_AttributePythonObject.cxx \
166         SALOMEDS_AttributeReal.cxx \
167         SALOMEDS_AttributeSelectable.cxx \
168         SALOMEDS_AttributeSequenceOfInteger.cxx \
169         SALOMEDS_AttributePersistentRef.cxx \
170         SALOMEDS_AttributePixMap.cxx \
171         SALOMEDS_AttributeSequenceOfReal.cxx \
172         SALOMEDS_AttributeTableOfInteger.cxx \
173         SALOMEDS_AttributeTableOfReal.cxx \
174         SALOMEDS_AttributeTableOfString.cxx \
175         SALOMEDS_AttributeTarget.cxx \
176         SALOMEDS_AttributeTextColor.cxx \
177         SALOMEDS_AttributeTextHighlightColor.cxx \
178         SALOMEDS_AttributeTreeNode.cxx \
179         SALOMEDS_AttributeUserID.cxx \
180         SALOMEDS_TMPFile_i.cxx \
181         SALOMEDS_AttributeParameter.cxx \
182         SALOMEDS_AttributeString.cxx \
183         SALOMEDS_IParameters.cxx \
184         SALOMEDS_AttLong_i.hxx \
185         SALOMEDS_AttReal_i.hxx \
186         SALOMEDS_AttributeComment.hxx \
187         SALOMEDS_AttributeComment_i.hxx \
188         SALOMEDS_AttributeDrawable.hxx \
189         SALOMEDS_AttributeDrawable_i.hxx \
190         SALOMEDS_AttributeExpandable.hxx \
191         SALOMEDS_AttributeExpandable_i.hxx \
192         SALOMEDS_AttributeExternalFileDef.hxx \
193         SALOMEDS_AttributeExternalFileDef_i.hxx \
194         SALOMEDS_AttributeFileType.hxx \
195         SALOMEDS_AttributeFileType_i.hxx \
196         SALOMEDS_AttributeFlags.hxx \
197         SALOMEDS_AttributeFlags_i.hxx \
198         SALOMEDS_AttributeGraphic.hxx \
199         SALOMEDS_AttributeGraphic_i.hxx \
200         SALOMEDS_AttributeInteger.hxx \
201         SALOMEDS_AttributeInteger_i.hxx \
202         SALOMEDS_AttributeIOR.hxx \
203         SALOMEDS_AttributeIOR_i.hxx \
204         SALOMEDS_AttributeLocalID.hxx \
205         SALOMEDS_AttributeLocalID_i.hxx \
206         SALOMEDS_AttributeName.hxx \
207         SALOMEDS_AttributeName_i.hxx \
208         SALOMEDS_AttributeOpened.hxx \
209         SALOMEDS_AttributeOpened_i.hxx \
210         SALOMEDS_AttributePersistentRef.hxx \
211         SALOMEDS_AttributePersistentRef_i.hxx \
212         SALOMEDS_AttributePixMap.hxx \
213         SALOMEDS_AttributePixMap_i.hxx \
214         SALOMEDS_AttributePythonObject.hxx \
215         SALOMEDS_AttributePythonObject_i.hxx \
216         SALOMEDS_AttributeReal.hxx \
217         SALOMEDS_AttributeReal_i.hxx \
218         SALOMEDS_AttributeSelectable.hxx \
219         SALOMEDS_AttributeSelectable_i.hxx \
220         SALOMEDS_AttributeSequenceOfInteger.hxx \
221         SALOMEDS_AttributeSequenceOfInteger_i.hxx \
222         SALOMEDS_AttributeSequenceOfReal.hxx \
223         SALOMEDS_AttributeSequenceOfReal_i.hxx \
224         SALOMEDS_Attributes.hxx \
225         SALOMEDS_AttributeStudyProperties.hxx \
226         SALOMEDS_AttributeStudyProperties_i.hxx \
227         SALOMEDS_AttributeTableOfInteger.hxx \
228         SALOMEDS_AttributeTableOfInteger_i.hxx \
229         SALOMEDS_AttributeTableOfReal.hxx \
230         SALOMEDS_AttributeTableOfReal_i.hxx \
231         SALOMEDS_AttributeTableOfString.hxx \
232         SALOMEDS_AttributeTableOfString_i.hxx \
233         SALOMEDS_AttributeTarget.hxx \
234         SALOMEDS_AttributeTarget_i.hxx \
235         SALOMEDS_AttributeTextColor.hxx \
236         SALOMEDS_AttributeTextColor_i.hxx \
237         SALOMEDS_AttributeTextHighlightColor.hxx \
238         SALOMEDS_AttributeTextHighlightColor_i.hxx \
239         SALOMEDS_AttributeTreeNode.hxx \
240         SALOMEDS_AttributeTreeNode_i.hxx \
241         SALOMEDS_AttributeUserID.hxx \
242         SALOMEDS_AttributeUserID_i.hxx \
243         SALOMEDS_BasicAttributeFactory.hxx \
244         SALOMEDS_BasicAttribute_i.hxx \
245         SALOMEDS_Callback_i.hxx \
246         SALOMEDS_ChildIterator.hxx \
247         SALOMEDS_ChildIterator_i.hxx \
248         SALOMEDS_ClientAttributes.hxx \
249         SALOMEDS_Driver_i.hxx \
250         SALOMEDS_GenericAttribute.hxx \
251         SALOMEDS_GenericAttribute_i.hxx \
252         SALOMEDS.hxx \
253         SALOMEDS_SComponent.hxx \
254         SALOMEDS_SComponent_i.hxx \
255         SALOMEDS_SComponentIterator.hxx \
256         SALOMEDS_SComponentIterator_i.hxx \
257         SALOMEDS_SObject.hxx \
258         SALOMEDS_SObject_i.hxx \
259         SALOMEDS_StudyBuilder.hxx \
260         SALOMEDS_StudyBuilder_i.hxx \
261         SALOMEDS_Study.hxx \
262         SALOMEDS_Study_i.hxx \
263         SALOMEDS_StudyManager.hxx \
264         SALOMEDS_StudyManager_i.hxx \
265         SALOMEDS_UseCaseBuilder.hxx \
266         SALOMEDS_UseCaseBuilder_i.hxx \
267         SALOMEDS_UseCaseIterator.hxx \
268         SALOMEDS_UseCaseIterator_i.hxx \
269         SALOMEDS_AttributeParameter.hxx \
270         SALOMEDS_AttributeParameter_i.hxx \
271         SALOMEDS_AttributeString.hxx \
272         SALOMEDS_AttributeString_i.hxx \
273         SALOMEDS_TMPFile_i.hxx
274
275 libSalomeDS_la_CPPFLAGS = $(COMMON_CPPFLAGS)
276 libSalomeDS_la_LDFLAGS  = -Wl,-E -no-undefined -version-info=0:0:0 @LDEXPDYNFLAGS@
277 libSalomeDS_la_LIBADD    = $(COMMON_LIBS)
278
279 #
280 # ===============================================================
281 # Executables targets
282 # ===============================================================
283 #
284 bin_PROGRAMS = SALOMEDS_Server SALOMEDS_Client
285
286 SALOMEDS_Server_SOURCES  = SALOMEDS_Server.cxx
287 SALOMEDS_Server_CPPFLAGS = $(COMMON_CPPFLAGS)
288 SALOMEDS_Server_LDADD    = libSalomeDS.la \
289         ../Basics/libSALOMEBasics.la \
290         $(HDF5_LIBS) \
291         $(CORBA_LIBS)
292
293 SALOMEDS_Client_SOURCES  = SALOMEDS_Client.cxx
294 SALOMEDS_Client_CPPFLAGS = $(COMMON_CPPFLAGS)
295 SALOMEDS_Client_LDADD    = libSalomeDS.la \
296         ../Basics/libSALOMEBasics.la \
297         $(HDF5_LIBS) \
298         $(CORBA_LIBS)