Salome HOME
Merge from V6_main 01/04/2013
[modules/yacs.git] / src / salomegui_swig / Makefile.am
1 # Copyright (C) 2006-2013  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
23 SWIGSRC=libYACS_Swig.i
24 MYSWIG_FLAGS =
25
26 if DOXYGEN_IS_OK
27 MYSWIG_FLAGS += -DDOXYGEN_IS_OK
28 endif
29
30 salomepython_PYTHON = libYACS_Swig.py
31 salomepyexec_LTLIBRARIES = _libYACS_Swig.la
32
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)
37
38 _libYACS_Swig_la_CPPFLAGS =   -I$(KERNEL_ROOT_DIR)/include/salome \
39                               -I$(GUI_ROOT_DIR)/include/salome \
40                               -I$(srcdir) \
41                               -I$(srcdir)/../salomegui \
42                               -I$(srcdir)/../salomewrap \
43                               $(qt4_cppflags) $(THREAD_DEF) $(PYTHON_CPPFLAGS) $(OMNIORB_CXXFLAGS) $(OMNIORB_INCLUDES) $(BOOST_CPPFLAGS)
44
45
46
47 _libYACS_Swig_la_LDFLAGS = -module
48 _libYACS_Swig_la_LIBADD  = ../salomegui/libYACS.la $(PYTHON_LIBS)
49
50 libYACS_SwigWRAP.cxx : $(SWIGSRC) YACSGUI_Swig.hxx doc.i
51         $(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_PYTHON_INCLUDES) $(MYSWIG_FLAGS) -o $@ $<
52
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
56
57 EXTRA_DIST = YACSGUI_Swig.hxx
58
59 CLEANFILES = libYACS_SwigWRAP.cxx libYACS_Swig.py doc.i
60
61 clean-local:
62         rm -f libYACS_Swig.py*
63         rm -rf xml
64
65 include $(top_srcdir)/adm/unix/make_end.am
66