1 # Copyright (C) 2006-2013 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
23 SWIGSRC=libYACS_Swig.i
27 MYSWIG_FLAGS += -DDOXYGEN_IS_OK
30 salomepython_PYTHON = libYACS_Swig.py
31 salomepyexec_LTLIBRARIES = _libYACS_Swig.la
33 libYACS_Swig.py: libYACS_SwigWRAP.cxx
34 BUILT_SOURCES = libYACS_SwigWRAP.cxx
35 _libYACS_Swig_la_SOURCES = $(SWIGSRC) YACSGUI_Swig.cxx
36 nodist__libYACS_Swig_la_SOURCES = $(BUILT_SOURCES)
38 _libYACS_Swig_la_CPPFLAGS = -I$(KERNEL_ROOT_DIR)/include/salome \
39 -I$(GUI_ROOT_DIR)/include/salome \
41 -I$(srcdir)/../salomegui \
42 -I$(srcdir)/../salomewrap \
43 $(qt4_cppflags) $(THREAD_DEF) $(PYTHON_CPPFLAGS) $(OMNIORB_CXXFLAGS) $(OMNIORB_INCLUDES) $(BOOST_CPPFLAGS)
47 _libYACS_Swig_la_LDFLAGS = -module
48 _libYACS_Swig_la_LIBADD = ../salomegui/libYACS.la $(PYTHON_LIBS)
50 libYACS_SwigWRAP.cxx : $(SWIGSRC) YACSGUI_Swig.hxx doc.i
51 $(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_PYTHON_INCLUDES) $(MYSWIG_FLAGS) -o $@ $<
53 doc.i:YACSGUI_Swig.hxx YACSGUI_Swig.cxx
54 DOXSRCDIR=$(srcdir) doxygen $(top_srcdir)/Misc/Doxyfile
55 $(PYTHON) $(top_srcdir)/Misc/doxy2swig.py -n xml/index.xml doc.i
57 EXTRA_DIST = YACSGUI_Swig.hxx
59 CLEANFILES = libYACS_SwigWRAP.cxx libYACS_Swig.py doc.i
62 rm -f libYACS_Swig.py*
65 include $(top_srcdir)/adm/unix/make_end.am