]> SALOME platform Git repositories - modules/kernel.git/blob - src/ParallelContainer/Makefile.am
Salome HOME
Issue 0020349: compatibility python 2.6 in import_hook
[modules/kernel.git] / src / ParallelContainer / 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 #  File   : Makefile.am
23 #  Author : André RIBES (EDF)
24 #  Module : KERNEL
25 #
26 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
27
28 #
29 # ===============================================================
30 # Header to be installed
31 # ===============================================================
32 #
33 # header files  
34 salomeinclude_HEADERS = SALOME_ParallelComponent_i.hxx \
35                         SALOME_ParallelContainer_i.hxx \
36                         SALOME_ParallelContainerProxy_i.hxx \
37                         SALOME_ParallelGlobalProcessVar_i.hxx \
38                         Parallel_Salome_file_i.hxx
39
40 #
41 # ===============================================================
42 # Local definitions
43 # ===============================================================
44 #
45
46 # This local variable defines the list of CPPFLAGS common to all target in this package.
47 COMMON_CPPFLAGS= -I$(top_srcdir)/src/Container \
48                  -I$(top_srcdir)/src/Notification \
49                  -I$(top_srcdir)/src/SALOMELocalTrace \
50                  -I$(top_srcdir)/src/Basics \
51                  -I$(top_srcdir)/src/NamingService \
52                  -I$(top_srcdir)/src/Registry \
53                  -I$(top_srcdir)/src/Utils \
54                  -I$(srcdir)/../HDFPersist \
55                  -I$(top_builddir)/salome_adm/unix \
56                  -I$(top_builddir)/idl \
57                  -I$(top_srcdir)/src/SALOMETraceCollector \
58                  @PYTHON_INCLUDES@ \
59                  @CORBA_CXXFLAGS@ \
60                  @CORBA_INCLUDES@ \
61                  @MPI_INCLUDES@ \
62                  @PACO_INCLUDES@
63
64 # This local variable defines the list of dependant libraries common to all target in this package.
65 COMMON_LIBS = $(top_builddir)/src/Container/libSalomeContainer.la \
66               $(top_builddir)/src/HDFPersist/libSalomeHDFPersist.la \
67               $(top_builddir)/idl/libSalomeParallelIDLKernel.la \
68               $(top_builddir)/idl/libSalomeIDLKernel.la \
69               @CORBA_LIBS@ \
70               @PACO_LIBS@ \
71               $(PYTHON_LIBS)
72
73 #
74 # ===============================================================
75 # Libraries targets
76 # ===============================================================
77 #
78 lib_LTLIBRARIES = libSalomeParallelContainer.la 
79
80 libSalomeParallelContainer_la_SOURCES  = SALOME_ParallelComponent_i.cxx \
81                                          SALOME_ParallelContainer_i.cxx \
82                                          SALOME_ParallelContainerProxy_i.cxx \
83                                          $(top_srcdir)/src/Container/Salome_file_i.cxx \
84                                          Parallel_Salome_file_i.cxx \
85                                          SALOME_ParallelGlobalProcessVar_i.cxx
86
87 libSalomeParallelContainer_la_CXXFLAGS = $(COMMON_CPPFLAGS)
88
89 libSalomeParallelContainer_la_LIBADD   = $(COMMON_LIBS) @MPI_LIBS@
90
91 libSalomeParallelContainer_la_LDFLAGS = -no-undefined -version-info=0:0:0
92
93 #
94 # ===============================================================
95 # Executables targets
96 # ===============================================================
97 #
98
99 if MPI_IS_OK
100 bin_mpi_programs = SALOME_ParallelContainerProxyMpi \
101                    SALOME_ParallelContainerNodeMpi 
102 endif
103
104 bin_PROGRAMS = SALOME_ParallelContainerProxyDummy \
105                SALOME_ParallelContainerNodeDummy \
106                $(bin_mpi_programs)
107
108 SALOME_ParallelContainerProxyDummy_SOURCES  = SALOME_ParallelContainerProxyDummy.cxx
109 SALOME_ParallelContainerProxyDummy_CXXFLAGS = $(COMMON_CPPFLAGS)
110 SALOME_ParallelContainerProxyDummy_LDADD    = libSalomeParallelContainer.la \
111                                               -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_omnithread \
112                                               $(COMMON_LIBS)
113
114 SALOME_ParallelContainerNodeDummy_SOURCES  = SALOME_ParallelContainerNodeDummy.cxx
115 SALOME_ParallelContainerNodeDummy_CXXFLAGS = $(COMMON_CPPFLAGS)
116 SALOME_ParallelContainerNodeDummy_LDADD    = libSalomeParallelContainer.la \
117                                              -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_omnithread \
118                                               $(COMMON_LIBS)
119
120 SALOME_ParallelContainerProxyMpi_SOURCES  = SALOME_ParallelContainerProxyMpi.cxx
121 SALOME_ParallelContainerProxyMpi_CXXFLAGS = $(COMMON_CPPFLAGS) @MPI_INCLUDES@
122 SALOME_ParallelContainerProxyMpi_LDADD    = libSalomeParallelContainer.la \
123                                             -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_mpi -lPaCO_omnithread \
124                                             @MPI_LIBS@ \
125                                             $(COMMON_LIBS)
126
127
128 SALOME_ParallelContainerNodeMpi_SOURCES  = SALOME_ParallelContainerNodeMpi.cxx
129 SALOME_ParallelContainerNodeMpi_CXXFLAGS = $(COMMON_CPPFLAGS) @MPI_INCLUDES@
130 SALOME_ParallelContainerNodeMpi_LDADD    = libSalomeParallelContainer.la \
131                                            -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_mpi -lPaCO_omnithread \
132                                            @MPI_LIBS@\
133                                            $(COMMON_LIBS)
134
135