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