Salome HOME
1f87b2a13a30669c3b663830cffce3cf456d1666
[modules/yacs.git] / src / DSC / DSC_User / Datastream / Calcium / Makefile.am
1 # Copyright (C) 2007-2013  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), Eric Fayolle (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 = calcium_port_factory.hxx \
36                         CorbaTypes2CalciumTypes.hxx \
37                         CalciumTypes2CorbaTypes.hxx \
38                         CalciumGenericProvidesPort.hxx \
39                         calcium_uses_port.hxx \
40                         CalciumGenericUsesPort.hxx \
41                         calcium_provides_port.hxx \
42                         calcium_intc_port_uses.hxx \
43                         calcium_long_port_uses.hxx \
44                         calcium_real_port_uses.hxx \
45                         calcium_double_port_uses.hxx \
46                         calcium_string_port_uses.hxx \
47                         calcium_logical_port_uses.hxx \
48                         calcium_complex_port_uses.hxx \
49                         CalciumCouplingPolicy.hxx \
50                         CalciumException.hxx \
51                         CalciumTypes.hxx \
52                         CalciumCxxInterface.hxx \
53                         CalciumMacroCInterface.hxx \
54                         CalciumCInterface.hxx \
55                         CalciumInterface.hxx \
56                         Copy2UserSpace.hxx \
57                         Copy2CorbaSpace.hxx \
58                         CalciumPortTraits.hxx \
59                         calcium.h \
60                         calciumf.h \
61                         Calcium.hxx \
62                         calciumP.h \
63                         calciumE.h \
64                         version.h \
65                         calcium.hf
66
67 nodist_salomeinclude_HEADERS = calcium_integer_port_uses.hxx CalciumProvidesPort.hxx CalciumFortranInt.h
68
69 EXTRA_DIST+=fortoc.h calcium_integer_port_uses.hxx.in CalciumProvidesPort.hxx.in CalciumFortranInt.h.in
70
71 calcium_integer_port_uses.hxx: calcium_integer_port_uses.hxx.in
72 CalciumProvidesPort.hxx     : CalciumProvidesPort.hxx.in
73 CalciumFortranInt.h      : CalciumFortranInt.h.in
74
75 #
76 # ===============================================================
77 # Local definitions
78 # ===============================================================
79 #
80
81 # This local variable defines the list of CPPFLAGS common to all target in this package.
82 COMMON_CPPFLAGS= -I$(top_srcdir)/src/DSC/DSC_User \
83                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream \
84                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Palm \
85                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Calcium \
86                  -I$(top_srcdir)/src/DSC/DSC_User/Basic \
87                  -I$(top_srcdir)/src/DSC/DSC_Basic \
88                  -I$(top_srcdir)/src/SALOMELocalTrace \
89                  -I$(top_srcdir)/src/Basics \
90                  -I$(top_srcdir)/src/Utils \
91                  -I$(top_srcdir)/src/Container \
92                  -I$(top_srcdir)/src/GenericObj \
93                  -I$(top_srcdir)/src/Notification \
94                  -I$(top_builddir)/idl \
95                  -I$(top_builddir)/src/DSC/DSC_User/Datastream/Calcium \
96                  @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @BOOST_CPPFLAGS@
97
98 # This local variable defines the list of dependant libraries common to all target in this package.
99 COMMON_LIBS = @CORBA_LIBS@
100
101 #
102 # ===============================================================
103 # Libraries targets
104 # ===============================================================
105 #
106 noinst_LTLIBRARIES = libSalomeCalcium.la 
107
108 libSalomeCalcium_la_SOURCES  = calcium_port_factory.cxx \
109                                calcium_uses_port.cxx    \
110                                calcium_provides_port.cxx\
111                                calcium_repository_types.cxx \
112                                CalciumCouplingPolicy.cxx \
113                                CorbaTypes2CalciumTypes.cxx \
114                                CalciumCxxInterface.cxx \
115                                CalciumTypes2CorbaTypes.cxx \
116                                CalciumCInterface.cxx \
117                                CalciumProvidesPort.cxx \
118                                Calcium.cxx \
119                                calcium_destructors_port_uses.cxx
120
121 libSalomeCalcium_la_CXXFLAGS = $(COMMON_CPPFLAGS)
122
123 libSalomeCalcium_la_LDFLAGS  = -no-undefined -version-info=0:0:0
124
125 AM_CFLAGS         = -fexceptions
126 lib_LTLIBRARIES = libCalciumC.la
127 libCalciumC_la_SOURCES = CalciumC.c Calcium.cxx calciumf.c
128 libCalciumC_la_CPPFLAGS = $(COMMON_CPPFLAGS)
129
130 #
131 # ===============================================================
132 # Executables targets
133 # ===============================================================
134 #
135 noinst_PROGRAMS              = test_DataIdContainer
136 ## testInterpolation
137 ## testInterpolation_SOURCES = testInterpolation.cxx
138 ## testInterpolation_CXXFLAGS = -I/usr/include
139
140 test_DataIdContainer_SOURCES = test_DataIdContainer.cxx 
141
142 test_DataIdContainer_CXXFLAGS = $(COMMON_CPPFLAGS)
143
144 test_DataIdContainer_LDADD   = libSalomeCalcium.la \
145                                $(top_builddir)/src/Utils/libOpUtil.la \
146                                $(top_builddir)/src/SALOMELocalTrace/libSALOMELocalTrace.la
147
148 test_DataIdContainer_LDFLAGS = $(COMMON_LIBS)