1 # Copyright (C) 2006-2012 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 include $(top_srcdir)/adm/unix/make_begin.am
22 salomepython_PYTHON = SALOMERuntime.py
23 salomepyexec_LTLIBRARIES = _SALOMERuntime.la
28 _SALOMERuntime_la_SOURCES = \
31 MYSWIG_FLAGS = -noexcept -DYACS_PTHREAD -I$(srcdir)/../bases -I$(srcdir)/../engine -I$(srcdir)/../runtime \
32 -I$(srcdir)/../engine_swig -I../engine_swig
35 MYSWIG_FLAGS += -DDOXYGEN_IS_OK
38 RUNTIMEINCLUDES= RuntimeSALOME.hxx SALOMEDispatcher.hxx SalomeProc.hxx PythonNode.hxx PythonPorts.hxx \
39 CORBANode.hxx CORBAPorts.hxx TypeConversions.hxx SalomeOptimizerLoop.hxx
41 SWIGINCLUDES = $(RUNTIMEINCLUDES:%=$(top_srcdir)/src/runtime/%)
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
46 SALOMERuntime.py : SALOMERuntimeWRAP.cxx
48 _SALOMERuntime_la_CXXFLAGS = \
53 -I$(KERNEL_ROOT_DIR)/include/salome \
54 -I$(srcdir)/../bases \
55 -I$(srcdir)/../engine \
56 -I$(srcdir)/../runtime \
60 _SALOMERuntime_la_LDFLAGS = -module
62 _SALOMERuntime_la_LIBADD = ../runtime/libYACSRuntimeSALOME.la
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
68 EXTRA_DIST = SALOMERuntime.i
71 rm -f SALOMERuntime.py* SALOMERuntimeWRAP.cxx docruntime.i SALOMERuntimeWRAP.h
74 include $(top_srcdir)/adm/unix/make_end.am