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