]> SALOME platform Git repositories - modules/yacs.git/blob - src/runtime_swig/Makefile.am
Salome HOME
Fix make check with Python 2.7
[modules/yacs.git] / src / runtime_swig / Makefile.am
1 # Copyright (C) 2006-2012  CEA/DEN, EDF R&D
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 include $(top_srcdir)/adm/unix/make_begin.am
21
22 salomepython_PYTHON = SALOMERuntime.py
23 salomepyexec_LTLIBRARIES = _SALOMERuntime.la
24
25 BUILT_SOURCES =   \
26         SALOMERuntimeWRAP.cxx
27
28 _SALOMERuntime_la_SOURCES =   \
29         $(BUILT_SOURCES)
30
31 MYSWIG_FLAGS = -noexcept -DYACS_PTHREAD -I$(srcdir)/../bases -I$(srcdir)/../engine -I$(srcdir)/../runtime \
32                          -I$(srcdir)/../engine_swig -I../engine_swig
33
34 if DOXYGEN_IS_OK
35 MYSWIG_FLAGS += -DDOXYGEN_IS_OK
36 endif
37
38 RUNTIMEINCLUDES= RuntimeSALOME.hxx SALOMEDispatcher.hxx SalomeProc.hxx PythonNode.hxx PythonPorts.hxx \
39                                                         CORBANode.hxx CORBAPorts.hxx TypeConversions.hxx SalomeOptimizerLoop.hxx
40
41 SWIGINCLUDES = $(RUNTIMEINCLUDES:%=$(top_srcdir)/src/runtime/%) 
42
43 SALOMERuntimeWRAP.cxx: SALOMERuntime.i $(SWIGINCLUDES) docruntime.i ../engine_swig/pilot.i ../engine_swig/engtypemaps.i
44         $(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_PYTHON_INCLUDES) $(MYSWIG_FLAGS) -o $@ $(srcdir)/SALOMERuntime.i
45
46 SALOMERuntime.py : SALOMERuntimeWRAP.cxx
47
48 _SALOMERuntime_la_CXXFLAGS = \
49         $(THREAD_DEF) \
50         $(PYTHON_CPPFLAGS) \
51         $(OMNIORB_INCLUDES) \
52         $(OMNIORB_CXXFLAGS) \
53         -I$(KERNEL_ROOT_DIR)/include/salome \
54         -I$(srcdir)/../bases \
55         -I$(srcdir)/../engine \
56         -I$(srcdir)/../runtime \
57         -I../../idl \
58         $(LIBXML_INCLUDES)
59
60 _SALOMERuntime_la_LDFLAGS  = -module
61
62 _SALOMERuntime_la_LIBADD = ../runtime/libYACSRuntimeSALOME.la 
63
64 docruntime.i:$(SWIGINCLUDES)
65         DOXSRCDIR=$(top_srcdir)/src/runtime doxygen $(top_srcdir)/Misc/Doxyfile
66         $(PYTHON) $(top_srcdir)/Misc/doxy2swig.py -n xml/index.xml docruntime.i
67
68 EXTRA_DIST = SALOMERuntime.i
69
70 clean-local:
71         rm -f SALOMERuntime.py*  SALOMERuntimeWRAP.cxx docruntime.i SALOMERuntimeWRAP.h
72         rm -rf xml
73
74 include $(top_srcdir)/adm/unix/make_end.am