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