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