Salome HOME
Merged from BR_V51_RB (removed Batch and added libBatch as an optional prerequisite).
[modules/kernel.git] / src / Container / 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 #  SALOME Container : implementation of container and engine for Kernel
23 #  File   : Makefile.am
24 #  Author : Guillaume Boulant (CSSI)
25 #  Module : KERNEL
26 #  $Header$
27 #
28 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
29
30 #
31 # ===============================================================
32 # Header to be installed
33 # ===============================================================
34 #
35 # header files  
36 salomeinclude_HEADERS = \
37         SALOME_Component_i.hxx \
38         SALOME_Container_i.hxx \
39         SALOME_FileTransfer_i.hxx \
40         SALOME_FileRef_i.hxx \
41         SALOME_ContainerManager.hxx \
42         Container_init_python.hxx \
43         SALOME_Container.hxx \
44         Salome_file_i.hxx
45
46 # Scripts to be installed
47 dist_salomescript_PYTHON =\
48         SALOME_ComponentPy.py \
49         SALOME_Container.py
50
51 # These files are executable scripts
52 dist_salomescript_SCRIPTS=\
53         SALOME_ContainerPy.py
54
55 #
56 # ===============================================================
57 # Local definitions
58 # ===============================================================
59 #
60
61 # This local variable defines the list of CPPFLAGS common to all target in this package.
62 COMMON_CPPFLAGS=\
63         @PYTHON_INCLUDES@ \
64         @HDF5_INCLUDES@ \
65         -I$(srcdir)/../Basics \
66         -I$(srcdir)/../SALOMELocalTrace \
67         -I$(srcdir)/../NamingService \
68         -I$(srcdir)/../Utils \
69         -I$(srcdir)/../Registry \
70         -I$(srcdir)/../Notification \
71         -I$(srcdir)/../ResourcesManager \
72         -I$(srcdir)/../HDFPersist \
73         -I$(top_builddir)/idl \
74         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @LIBXML_INCLUDES@
75
76 # This local variable defines the list of dependant libraries common to all target in this package.
77 COMMON_LIBS =\
78         ../Registry/libRegistry.la \
79         ../Notification/libSalomeNotification.la \
80         ../ResourcesManager/libSalomeResourcesManager.la \
81         ../ResourcesManager/libResourcesManager.la \
82         ../NamingService/libSalomeNS.la \
83         ../Utils/libOpUtil.la \
84         ../SALOMELocalTrace/libSALOMELocalTrace.la \
85         ../Basics/libSALOMEBasics.la \
86         ../HDFPersist/libSalomeHDFPersist.la \
87         $(top_builddir)/idl/libSalomeIDLKernel.la \
88         @CORBA_LIBS@ \
89         $(PYTHON_LIBS)
90
91 if WITH_MPI_SEQ_CONTAINER       
92 COMMON_CPPFLAGS += @MPI_INCLUDES@
93 COMMON_LIBS += @MPI_LIBS@
94 endif
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         $(COMMON_LIBS)
120
121 if WITH_PACO_PARALLEL
122 libSalomeContainer_la_CPPFLAGS += -DWITH_PACO_PARALLEL @PACO_INCLUDES@
123 libSalomeContainer_la_LIBADD += @PACO_LIBS@
124 endif
125
126 #
127 # ===============================================================
128 # Executables targets
129 # ===============================================================
130 #
131 bin_PROGRAMS = SALOME_Container
132 noinst_PROGRAMS = TestSalome_file
133
134 SALOME_Container_SOURCES =\
135         SALOME_Container.cxx \
136         SALOME_Container_SignalsHandler.cxx
137
138 SALOME_Container_CPPFLAGS =\
139         $(COMMON_CPPFLAGS)
140
141 SALOME_Container_LDADD = \
142         libSalomeContainer.la \
143         ../Basics/libSALOMEBasics.la \
144         $(HDF5_LIBS) \
145         $(CORBA_LIBS) \
146         $(PYTHON_LIBS)
147
148 if WITH_MPI_SEQ_CONTAINER       
149 SALOME_Container_LDADD += $(MPI_LIBS)
150 endif
151
152 SALOME_Container_LDFLAGS  =\
153 -Xlinker -export-dynamic
154
155 TestSalome_file_SOURCES =\
156         TestSalome_file.cxx
157
158 TestSalome_file_CPPFLAGS =\
159         $(COMMON_CPPFLAGS)
160
161 TestSalome_file_LDADD =\
162         libSalomeContainer.la \
163         ../Basics/libSALOMEBasics.la \
164         $(HDF5_LIBS) \
165         $(CORBA_LIBS) \
166         $(PYTHON_LIBS)
167
168 install-data-hook:
169         @for f in $(dist_salomescript_PYTHON) ; do \
170           chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
171         done