]> SALOME platform Git repositories - modules/kernel.git/blob - src/ParallelContainer/Makefile.am
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/kernel.git] / src / ParallelContainer / Makefile.am
1 #  Copyright (C) 2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3
4 #  This library is free software; you can redistribute it and/or 
5 #  modify it under the terms of the GNU Lesser General Public 
6 #  License as published by the Free Software Foundation; either 
7 #  version 2.1 of the License. 
8
9 #  This library is distributed in the hope that it will be useful, 
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 #  Lesser General Public License for more details. 
13
14 #  You should have received a copy of the GNU Lesser General Public 
15 #  License along with this library; if not, write to the Free Software 
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 #
21 #
22 #  File   : Makefile.am
23 #  Author : André RIBES (EDF)
24 #  Module : KERNEL
25 #
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                         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                  @CORBA_CXXFLAGS@ \
59                  @CORBA_INCLUDES@ \
60                  @PACO_INCLUDES@
61
62 # This local variable defines the list of dependant libraries common to all target in this package.
63 COMMON_LIBS = $(top_builddir)/src/Container/libSalomeContainer.la \
64               $(top_builddir)/src/HDFPersist/libSalomeHDFPersist.la \
65               $(top_builddir)/idl/libSalomeParallelIDLKernel.la \
66               $(top_builddir)/idl/libSalomeIDLKernel.la \
67               @CORBA_LIBS@ \
68               @PACO_LIBS@
69
70 #
71 # ===============================================================
72 # Libraries targets
73 # ===============================================================
74 #
75 lib_LTLIBRARIES = libSalomeParallelContainer.la 
76
77 libSalomeParallelContainer_la_SOURCES  = SALOME_ParallelComponent_i.cxx \
78                                          SALOME_ParallelContainer_i.cxx \
79                                          SALOME_ParallelContainerProxy_i.cxx \
80                                          $(top_srcdir)/src/Container/Salome_file_i.cxx \
81                                          Parallel_Salome_file_i.cxx
82
83 libSalomeParallelContainer_la_CXXFLAGS = $(COMMON_CPPFLAGS)
84
85 libSalomeParallelContainer_la_LIBADD   = $(COMMON_LIBS)
86
87 libSalomeParallelContainer_la_LDFLAGS = -no-undefined -version-info=0:0:0
88
89 #
90 # ===============================================================
91 # Executables targets
92 # ===============================================================
93 #
94
95 if MPI_IS_OK
96 bin_mpi_programs = SALOME_ParallelContainerProxyMpi \
97                    SALOME_ParallelContainerNodeMpi 
98 endif
99
100 bin_PROGRAMS = SALOME_ParallelContainerProxyDummy \
101                SALOME_ParallelContainerNodeDummy \
102                $(bin_mpi_programs)
103
104 SALOME_ParallelContainerProxyDummy_SOURCES  = SALOME_ParallelContainerProxyDummy.cxx
105 SALOME_ParallelContainerProxyDummy_CXXFLAGS = $(COMMON_CPPFLAGS)
106 SALOME_ParallelContainerProxyDummy_LDADD    = libSalomeParallelContainer.la \
107                                               -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_omnithread \
108                                               $(COMMON_LIBS)
109
110 SALOME_ParallelContainerNodeDummy_SOURCES  = SALOME_ParallelContainerNodeDummy.cxx
111 SALOME_ParallelContainerNodeDummy_CXXFLAGS = $(COMMON_CPPFLAGS)
112 SALOME_ParallelContainerNodeDummy_LDADD    = libSalomeParallelContainer.la \
113                                              -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_omnithread \
114                                               $(COMMON_LIBS)
115
116 SALOME_ParallelContainerProxyMpi_SOURCES  = SALOME_ParallelContainerProxyMpi.cxx
117 SALOME_ParallelContainerProxyMpi_CXXFLAGS = $(COMMON_CPPFLAGS) @MPI_INCLUDES@
118 SALOME_ParallelContainerProxyMpi_LDADD    = libSalomeParallelContainer.la \
119                                             -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_mpi -lPaCO_omnithread \
120                                             @MPI_LIBS@ \
121                                             $(COMMON_LIBS)
122
123
124 SALOME_ParallelContainerNodeMpi_SOURCES  = SALOME_ParallelContainerNodeMpi.cxx
125 SALOME_ParallelContainerNodeMpi_CXXFLAGS = $(COMMON_CPPFLAGS) @MPI_INCLUDES@
126 SALOME_ParallelContainerNodeMpi_LDADD    = libSalomeParallelContainer.la \
127                                            -L@PACOPATH@/lib -lPaCO_dummy -lPaCO_mpi -lPaCO_omnithread \
128                                            @MPI_LIBS@\
129                                            $(COMMON_LIBS)
130
131