]> SALOME platform Git repositories - modules/kernel.git/blob - src/Container/Makefile.am
Salome HOME
merge from BR_V51_AR 7 may 09
[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)/../Batch \
66         -I$(srcdir)/../Basics \
67         -I$(srcdir)/../SALOMELocalTrace \
68         -I$(srcdir)/../NamingService \
69         -I$(srcdir)/../Utils \
70         -I$(srcdir)/../Registry \
71         -I$(srcdir)/../Notification \
72         -I$(srcdir)/../ResourcesManager \
73         -I$(srcdir)/../HDFPersist \
74         -I$(top_builddir)/salome_adm/unix \
75         -I$(top_builddir)/idl \
76         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @LIBXML_INCLUDES@
77
78 # This local variable defines the list of dependant libraries common to all target in this package.
79 COMMON_LIBS =\
80         ../Registry/libRegistry.la \
81         ../Notification/libSalomeNotification.la \
82         ../ResourcesManager/libSalomeResourcesManager.la \
83         ../ResourcesManager/libResourcesManager.la \
84         ../NamingService/libSalomeNS.la \
85         ../Utils/libOpUtil.la \
86         ../SALOMELocalTrace/libSALOMELocalTrace.la \
87         ../Basics/libSALOMEBasics.la \
88         ../HDFPersist/libSalomeHDFPersist.la \
89         ../Batch/libSalomeBatch.la \
90         $(top_builddir)/idl/libSalomeIDLKernel.la \
91         @CORBA_LIBS@ \
92         $(PYTHON_LIBS)
93
94 if WITH_MPI_SEQ_CONTAINER       
95 COMMON_CPPFLAGS += @MPI_INCLUDES@
96 COMMON_LIBS += @MPI_LIBS@
97 endif
98
99 #
100 # ===============================================================
101 # Libraries targets
102 # ===============================================================
103 #
104 lib_LTLIBRARIES = libSalomeContainer.la
105 libSalomeContainer_la_SOURCES=\
106         Component_i.cxx \
107         Container_i.cxx \
108         SALOME_FileTransfer_i.cxx \
109         SALOME_FileRef_i.cxx \
110         Container_init_python.cxx \
111         SALOME_ContainerManager.cxx \
112         Salome_file_i.cxx
113
114 libSalomeContainer_la_CPPFLAGS =\
115         $(COMMON_CPPFLAGS)
116
117 libSalomeContainer_la_LDFLAGS  =\
118         -no-undefined -version-info=0:0:0 \
119         @LDEXPDYNFLAGS@
120
121 libSalomeContainer_la_LIBADD =\
122         $(COMMON_LIBS)
123
124 if WITH_PACO_PARALLEL
125 libSalomeContainer_la_CPPFLAGS += -DWITH_PACO_PARALLEL @PACO_INCLUDES@
126 libSalomeContainer_la_LIBADD += @PACO_LIBS@
127 endif
128
129 #
130 # ===============================================================
131 # Executables targets
132 # ===============================================================
133 #
134 bin_PROGRAMS = SALOME_Container
135 noinst_PROGRAMS = TestSalome_file
136
137 SALOME_Container_SOURCES =\
138         SALOME_Container.cxx \
139         SALOME_Container_SignalsHandler.cxx
140
141 SALOME_Container_CPPFLAGS =\
142         $(COMMON_CPPFLAGS)
143
144 SALOME_Container_LDADD = \
145         libSalomeContainer.la \
146         ../Basics/libSALOMEBasics.la \
147         $(HDF5_LIBS) \
148         $(CORBA_LIBS) \
149         $(PYTHON_LIBS)
150
151 if WITH_MPI_SEQ_CONTAINER       
152 SALOME_Container_LDADD += $(MPI_LIBS)
153 endif
154
155 SALOME_Container_LDFLAGS  =\
156 -Xlinker -export-dynamic
157
158 TestSalome_file_SOURCES =\
159         TestSalome_file.cxx
160
161 TestSalome_file_CPPFLAGS =\
162         $(COMMON_CPPFLAGS)
163
164 TestSalome_file_LDADD =\
165         libSalomeContainer.la \
166         ../Basics/libSALOMEBasics.la \
167         $(HDF5_LIBS) \
168         $(CORBA_LIBS) \
169         $(PYTHON_LIBS)
170
171 install-data-hook:
172         @for f in $(dist_salomescript_PYTHON) ; do \
173           chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
174         done