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