]> SALOME platform Git repositories - modules/kernel.git/blob - src/DSC/DSC_Python/Makefile.am
Salome HOME
1) Add CMake files to the dist rules (make dist)
[modules/kernel.git] / src / DSC / DSC_Python / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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
20 #  File   : Makefile.am
21 #  Author : André RIBES (EDF), Eric Fayolle (EDF)
22 #  Module : KERNEL
23
24 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
25
26 # ===============================================================
27 # Local definitions
28 # ===============================================================
29 #
30
31 BUILT_SOURCES = calcium_wrap.cpp calcium.py
32
33 # This local variable defines the list of CPPFLAGS common to all target in this package.
34 COMMON_CPPFLAGS= -I$(top_srcdir)/src/DSC/DSC_User \
35                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream \
36                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Palm \
37                  -I$(top_srcdir)/src/DSC/DSC_User/Datastream/Calcium \
38                  -I$(top_builddir)/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/GenericObj \
46                  -I$(top_srcdir)/src/Notification \
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_CPPFLAGS = $(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