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