1 # SuperVisionTest SIGNALSComponent : example of component that devides two numbers
3 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
26 # Modified by : Alexander BORODIN (OCN) - autotools usage
27 # Module : SuperVisionTest
30 include $(top_srcdir)/adm_local/unix/make_common_starter.am
32 # ===============================================================
34 # ===============================================================
35 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
37 # Step 1: build the wrapping source files with swig
39 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
42 # Step 2: build the dynamic library from cpp built source files and
43 # dependant libraries.
45 # swig_wrap.cpp -- gcc --> swig_wrap.o |-- link --> _libSALOME_Swig.la
49 # The file libSALOME_Swigcmodule.py will be installed in
50 # <prefix>/lib/python<version>/site-package/salome.
51 # The library will be installed in the same place.
54 # this option puts it to dist
55 #BUILT_SOURCES = swig_wrap.cpp
61 SWIG_SOURCES = libSIGNALSComponent_Swig.i
64 lib_LTLIBRARIES = libSIGNALSComponent_Swigcmodule.la
66 nodist_pkgpython_DATA = libSIGNALSComponent_Swig.py
67 libSMESH_Swig.py: swig_wrap.cpp
69 libSIGNALSComponent_Swigcmodule_la_SOURCES = \
73 nodist_libSIGNALSComponent_Swigcmodule_la_SOURCES = swig_wrap.cpp
75 libSIGNALSComponent_Swigcmodule_la_CPPFLAGS = \
80 -I$(srcdir)/../SIGNALSComponent \
81 -I$(top_builddir)/idl \
82 -I$(top_builddir)/salome_adm/unix
84 libSIGNALSComponent_Swigcmodule_la_LDFLAGS = \
85 ../SIGNALSComponent/libSIGNALSComponentEngine.la \
93 swig_wrap.cpp : $(SWIG_SOURCES)
94 $(SWIG) $(SWIG_FLAGS) -o $@ $<
99 install-exec-hook: $(libdir)/_libSIGNALSComponent_Swig.so
101 $(libdir)/_libSIGNALSComponent_Swig.so:
102 ( cd $(libdir); ln -sf libSIGNALSComponent_Swigcmodule.so _libSIGNALSComponent_Swig.so; )