Salome HOME
Fix compilation pb.
[modules/kernel.git] / src / Communication / Makefile.am
1 # Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
2 #           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either 
6 # version 2.1 of the License.
7
8 # This library is distributed in the hope that it will be useful 
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 # Lesser General Public License for more details.
12
13 # You should have received a copy of the GNU Lesser General Public  
14 # License along with this library; if not, write to the Free Software 
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
19 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
20
21 #
22 # ===============================================================
23 # Files to be installed
24 # ===============================================================
25 #
26 # header files  
27 salomeinclude_HEADERS = \
28         ReceiverFactory.hxx \
29         SenderFactory.hxx \
30         SALOMEMultiComm.hxx \
31         MultiCommException.hxx \
32         SALOME_Comm_i.hxx \
33         MatrixClient.hxx \
34         SALOME_Matrix_i.hxx \
35         SALOME_Communication.hxx
36
37 # Scripts to be installed
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=\
47         -I$(srcdir)/../Basics \
48         -I$(srcdir)/../SALOMELocalTrace \
49         -I$(srcdir)/../Utils \
50         -I$(top_builddir)/salome_adm/unix \
51         -I$(top_builddir)/idl \
52         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
53
54 # This local variable defines the list of dependant libraries common to all target in this package.
55 COMMON_LIBS = \
56         ../Utils/libOpUtil.la \
57         ../SALOMELocalTrace/libSALOMELocalTrace.la \
58         $(top_builddir)/idl/libSalomeIDLKernel.la
59
60 # _CS_gbo The need for these flags depends on wether the swig
61 # interface is generated and if MPI is activated.
62 OPT_CPPFLAGS = @PYTHON_INCLUDES@  @MPI_INCLUDES@
63 OPT_LIBS     = @PYTHON_LIBS@ @MPI_LIBS@
64 OPT_LDFLAGS  = -Xlinker -export-dynamic
65
66 #
67 # ===============================================================
68 # Libraries targets
69 # ===============================================================
70 #
71 lib_LTLIBRARIES = libSalomeCommunication.la 
72 libSalomeCommunication_la_SOURCES =\
73         SALOME_Comm_i.cxx \
74         SALOME_Matrix_i.cxx \
75         SenderFactory.cxx \
76         MultiCommException.cxx \
77         SALOMEMultiComm.cxx \
78         ReceiverFactory.cxx \
79         MatrixClient.cxx \
80         \
81         MultiCommException.hxx \
82         SALOME_Comm_i.hxx \
83         SALOME_Matrix_i.hxx \
84         SenderFactory.hxx \
85         ReceiverFactory.hxx \
86         MatrixClient.hxx \
87         SALOMEMultiComm.hxx \
88         Receivers.hxx \
89         Receiver.hxx
90
91 # the following file is needed by an include file (VERY DIRTY!)
92 EXTRA_DIST = Receivers.cxx
93
94 libSalomeCommunication_la_CPPFLAGS = $(COMMON_CPPFLAGS) $(OPT_CPPFLAGS)
95 libSalomeCommunication_la_LDFLAGS  = -no-undefined -version-info=0:0:0 $(OPT_LDFLAGS)
96 libSalomeCommunication_la_LIBADD    = $(COMMON_LIBS) $(OPT_LIBS)
97
98 #
99 # ===============================================================
100 # Executables targets
101 # ===============================================================
102 #
103 # Nothing to build