1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
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 # SuperVisionTest SIGNALSComponent : example of component that devides two numbers
23 # Modified by : Alexander BORODIN (OCN) - autotools usage
24 # Module : SuperVisionTest
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29 # ===============================================================
31 # ===============================================================
32 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
34 # Step 1: build the wrapping source files with swig
36 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
39 # Step 2: build the dynamic library from cpp built source files and
40 # dependant libraries.
42 # swig_wrap.cpp -- gcc --> swig_wrap.o |-- link --> _libSALOME_Swig.la
46 # The file libSIGNALSComponent_Swig.py will be installed in
47 # <prefix>/lib/python<version>/site-package/salome.
48 # The library will be installed in the same place.
51 # this option puts it to dist
52 #BUILT_SOURCES = swig_wrap.cpp
54 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir)
55 SWIG_SOURCES = libSIGNALSComponent_Swig.i
58 lib_LTLIBRARIES = _libSIGNALSComponent_Swig.la
59 _libSIGNALSComponent_Swig_la_SOURCES = $(SWIG_SOURCES)
60 nodist__libSIGNALSComponent_Swig_la_SOURCES = swig_wrap.cpp
61 nodist_salomescript_DATA = libSIGNALSComponent_Swig.py
63 EXTRA_DIST += $(SWIG_SOURCES)
65 libSIGNALSComponent_Swig.py: swig_wrap.cpp
67 _libSIGNALSComponent_Swig_la_CPPFLAGS = \
72 -I$(srcdir)/../SIGNALSComponent \
75 _libSIGNALSComponent_Swig_la_LDFLAGS = -module
76 _libSIGNALSComponent_Swig_la_LIBADD = \
77 ../SIGNALSComponent/libSIGNALSComponentEngine.la \
86 swig_wrap.cpp : $(SWIG_SOURCES)
87 $(SWIG) $(SWIG_FLAGS) -o $@ $<
89 CLEANFILES = swig_wrap.cpp libSIGNALSComponent_Swig.py