Salome HOME
d4f0d8e698098d6390cd322c7f82442128d70699
[modules/kernel.git] / src / DSC / DSC_Python / 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), Eric Fayolle (EDF)
24 #  Module : KERNEL
25 #
26
27 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
28
29 # ===============================================================
30 # Local definitions
31 # ===============================================================
32 #
33
34 # This local variable defines the list of CPPFLAGS common to all target in this package.
35 COMMON_CPPFLAGS= -I$(top_srcdir)/src/DSC/DSC_User \
36                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream \
37                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Palm \
38                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Calcium \
39                  -I$(top_srcdir)/src/DSC/DSC_User/Basic \
40                  -I$(top_srcdir)/src/DSC/DSC_Basic \
41                  -I$(top_srcdir)/src/SALOMELocalTrace \
42                  -I$(top_srcdir)/src/Basics \
43                  -I$(top_srcdir)/src/Utils \
44                  -I$(top_srcdir)/src/Container \
45                  -I$(top_srcdir)/src/Notification \
46                  -I$(top_builddir)/salome_adm/unix \
47                  -I$(top_builddir)/idl \
48                  @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @BOOST_CPPFLAGS@
49
50 # This local variable defines the list of dependant libraries common to all target in this package.
51 COMMON_LIBS = @CORBA_LIBS@
52
53 #
54 # ===============================================================
55 # Libraries targets
56 # ===============================================================
57 #
58
59 AM_CFLAGS         = -fexceptions
60 salomepython_PYTHON = calcium.py dsccalcium.py
61 salomepyexec_LTLIBRARIES = _calcium.la
62 MY_SWIG_FLAGS= $(SWIG_FLAGS) -noexcept -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Calcium
63 SWIG_SRC=calcium.i
64 _calcium_la_SOURCES = calcium_wrap.cpp
65 _calcium_la_LDFLAGS = -module
66 _calcium_la_LIBADD = ../DSC_User/Datastream/Calcium/libCalciumC.la \
67                                                                                  ../DSC_User/Datastream/libSalomeDatastream.la \
68                                                                                  ../DSC_User/Basic/libSalomeDSCSupervBasic.la \
69                                                                                  ../DSC_User/libSalomeDSCSuperv.la \
70                                                                                  ../DSC_Basic/libSalomeDSCContainer.la \
71                                                                                  ../../Container/libSalomeContainer.la 
72
73 _calcium_la_CXXFLAGS = $(PYTHON_INCLUDES) $(COMMON_CPPFLAGS)
74
75 EXTRA_DIST=calcium_wrap.cpp calcium.i
76
77 calcium_wrap.cpp calcium.py:calcium.i
78         $(SWIG) $(MY_SWIG_FLAGS) -o calcium_wrap.cpp $<
79
80 CLEANFILES = calcium_wrap.cpp
81