1 # GEOM GEOM_SWIG : binding of C++ omplementaion with Python
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
25 # Author : Nicolas REJNERI, Paul RASCLE
26 # Modified by : Alexander BORODIN (OCN) - autotools usage
33 include $(top_srcdir)/adm_local/unix/make_common_starter.am
35 # ===============================================================
37 # ===============================================================
38 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
40 # Step 1: build the wrapping source files with swig
42 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
45 # Step 2: build the dynamic library from cpp built source files and
46 # dependant libraries.
48 # swig_wrap.cpp -- gcc --> swig_wrap.o |-- link --> _libSALOME_Swig.la
52 # The file libSALOME_Swigcmodule.py will be installed in
53 # <prefix>/lib/python<version>/site-package/salome.
54 # The library will be installed in the same place.
57 # this option puts it to dist
58 #BUILT_SOURCES = swig_wrap.cpp
63 -I$(srcdir)/../GEOMGUI
65 SWIG_SOURCES = libGEOM_Swig.i
68 lib_LTLIBRARIES = libGEOM_Swigcmodule.la
70 nodist_pkgpython_DATA = libGEOM_Swig.py
71 libGEOM_Swig.py: swig_wrap.cpp
73 libGEOM_Swigcmodule_la_SOURCES = \
77 nodist_libGEOM_Swigcmodule_la_SOURCES = swig_wrap.cpp
79 #LIB_CLIENT_IDL = SALOMEDS.idl \
80 # SALOMEDS_Attributes.idl \
81 # SALOME_Exception.idl \
83 # SALOME_Component.idl \
84 # SALOME_GenericObj.idl
86 libGEOM_Swigcmodule_la_CPPFLAGS = \
96 -I$(srcdir)/../GEOMGUI \
97 -I$(top_builddir)/idl \
98 -I$(top_builddir)/salome_adm/unix
100 libGEOM_Swigcmodule_la_LDFLAGS = \
101 ../GEOMGUI/libGEOM.la
104 libGEOM_Swigcmodule_la_LIBADD = \
107 swig_wrap.cpp : $(SWIG_SOURCES)
108 $(SWIG) $(SWIG_FLAGS) -o $@ $<
114 # ===============================================================
115 # Files to be installed
116 # ===============================================================
119 # Scripts to be installed.
120 dist_salomescript_DATA= \
124 $(libdir)/_libGEOM_Swig.so
126 $(libdir)/_libGEOM_Swig.so:
127 ( cd $(libdir); ln -sf libGEOM_Swigcmodule.so _libGEOM_Swig.so; )