Salome HOME
4c8b65729af36bc58433ca07d956804714f8139d
[modules/kernel.git] / src / Container / Makefile.am
1 #  SALOME Container : implementation of container and engine for Kernel
2 #
3 #  Copyright (C) 2003  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 #
24 #  File   : Makefile.am
25 #  Author : Guillaume Boulant (CSSI)
26 #  Module : KERNEL
27 #  $Header$
28
29
30 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
31
32 #
33 # ===============================================================
34 # Header to be installed
35 # ===============================================================
36 #
37 # header files  
38 salomeinclude_HEADERS = \
39         SALOME_Component_i.hxx \
40         SALOME_Container_i.hxx \
41         SALOME_FileTransfer_i.hxx \
42         SALOME_FileRef_i.hxx \
43         SALOME_ContainerManager.hxx \
44         Container_init_python.hxx \
45         SALOME_Container.hxx \
46         Salome_file_i.hxx
47
48 # Scripts to be installed
49 dist_salomescript_DATA =\
50         SALOME_ComponentPy.py \
51         SALOME_Container.py
52
53 # These files are executable scripts
54 dist_salomescript_SCRIPTS=\
55         SALOME_ContainerPy.py
56
57 #
58 # ===============================================================
59 # Local definitions
60 # ===============================================================
61 #
62
63 # This local variable defines the list of CPPFLAGS common to all target in this package.
64 COMMON_CPPFLAGS=\
65         @PYTHON_INCLUDES@ \
66         @MPI_INCLUDES@ \
67         @QT_MT_INCLUDES@ \
68         -I$(srcdir)/../Basics \
69         -I$(srcdir)/../SALOMELocalTrace \
70         -I$(srcdir)/../NamingService \
71         -I$(srcdir)/../Utils \
72         -I$(srcdir)/../Registry \
73         -I$(srcdir)/../Notification \
74         -I$(srcdir)/../ResourcesManager \
75         -I$(srcdir)/../HDFPersist \
76         -I$(top_builddir)/salome_adm/unix \
77         -I$(top_builddir)/idl \
78         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ 
79
80 # This local variable defines the list of dependant libraries common to all target in this package.
81 COMMON_LIBS =\
82         ../Registry/libRegistry.la \
83         ../Notification/libSalomeNotification.la \
84         ../ResourcesManager/libSalomeResourcesManager.la \
85         ../NamingService/libSalomeNS.la \
86         ../Utils/libOpUtil.la \
87         ../SALOMELocalTrace/libSALOMELocalTrace.la \
88         ../Basics/libSALOMEBasics.la \
89         ../HDFPersist/libSalomeHDFPersist.la \
90         $(top_builddir)/idl/libSalomeIDLKernel.la\
91         @MPI_LIBS@ \
92         @CORBA_LIBS@
93
94 #       @PYTHON_LIBS@
95
96 #
97 # ===============================================================
98 # Libraries targets
99 # ===============================================================
100 #
101 lib_LTLIBRARIES = libSalomeContainer.la
102 libSalomeContainer_la_SOURCES=\
103         Component_i.cxx \
104         Container_i.cxx \
105         SALOME_FileTransfer_i.cxx \
106         SALOME_FileRef_i.cxx \
107         Container_init_python.cxx \
108         SALOME_ContainerManager.cxx \
109         Salome_file_i.cxx
110
111 libSalomeContainer_la_CPPFLAGS =\
112         $(COMMON_CPPFLAGS)
113
114 libSalomeContainer_la_LDFLAGS  =\
115         -no-undefined -version-info=0:0:0 \
116         @LDEXPDYNFLAGS@
117
118 libSalomeContainer_la_LIBADD =\
119         $(PYTHON_LIBS) \
120         $(COMMON_LIBS)
121
122 if WITH_PACO_PARALLEL
123 libSalomeContainer_la_CPPFLAGS += -DWITH_PACO_PARALLEL @PACO_INCLUDES@
124 libSalomeContainer_la_LIBADD += @PACO_LIBS@
125 endif
126
127 #
128 # ===============================================================
129 # Executables targets
130 # ===============================================================
131 #
132 bin_PROGRAMS = SALOME_Container SALOME_ContainerManagerServer
133 noinst_PROGRAMS = TestSalome_file
134
135 SALOME_Container_SOURCES =\
136         SALOME_Container.cxx \
137         SALOME_Container_SignalsHandler.cxx
138
139 SALOME_Container_CPPFLAGS =\
140         $(COMMON_CPPFLAGS)
141
142 SALOME_Container_LDADD =\
143         libSalomeContainer.la \
144         $(COMMON_LIBS) \
145         ../Basics/libSALOMEBasics.la
146
147 SALOME_Container_LDFLAGS  =\
148 -Xlinker -export-dynamic
149
150 SALOME_ContainerManagerServer_SOURCES =\
151         SALOME_ContainerManagerServer.cxx 
152
153 SALOME_ContainerManagerServer_CPPFLAGS=\
154         $(COMMON_CPPFLAGS)
155
156 SALOME_ContainerManagerServer_LDADD =\
157         libSalomeContainer.la \
158         $(COMMON_LIBS) \
159         ../Basics/libSALOMEBasics.la
160
161 TestSalome_file_SOURCES =\
162         TestSalome_file.cxx
163
164 TestSalome_file_CPPFLAGS =\
165         $(COMMON_CPPFLAGS)
166
167 TestSalome_file_LDADD =\
168         libSalomeContainer.la \
169         $(COMMON_LIBS) \
170         ../Basics/libSALOMEBasics.la