1 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Author : Nicolas REJNERI, Paul RASCLE
24 # Modified by : Alexander BORODIN (OCN) - autotools usage
28 include $(top_srcdir)/adm_local/unix/make_common_starter.am
30 # ===============================================================
32 # ===============================================================
33 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
35 # Step 1: build the wrapping source files with swig
37 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
40 # Step 2: build the dynamic library from cpp built source files and
41 # dependant libraries.
43 # swig_wrap.cpp -- gcc --> swig_wrap.o |-- link --> _libSALOME_Swig.la
47 # The file libSALOME_Swigcmodule.py will be installed in
48 # <prefix>/lib/python<version>/site-package/salome.
49 # The library will be installed in the same place.
52 # this option puts it to dist
53 #BUILT_SOURCES = swig_wrap.cpp
58 -I$(srcdir)/../SMESHGUI
60 SWIG_SOURCES = libSMESH_Swig.i
64 lib_LTLIBRARIES = libSMESH_Swigcmodule.la
66 nodist_pkgpython_DATA = libSMESH_Swig.py
67 libSMESH_Swig.py: swig_wrap.cpp
69 libSMESH_Swigcmodule_la_SOURCES = \
72 ../SMESHGUI/SMESHGUI_Swig.cxx
74 nodist_libSMESH_Swigcmodule_la_SOURCES = \
77 libSMESH_Swigcmodule_la_CPPFLAGS = \
90 -I$(srcdir)/../SMESHGUI \
91 -I$(top_builddir)/idl \
92 -I$(top_builddir)/salome_adm/unix
94 libSMESH_Swigcmodule_la_LDFLAGS = \
95 ../SMESHGUI/libSMESH.la \
96 $(KERNEL_LDFLAGS) -lSalomeGenericObj -lSALOMELocalTrace \
97 $(GUI_LDFLAGS) -lCAM -lsuit -lqtx -lSalomeApp -lstd -lEvent \
102 swig_wrap.cpp : $(SWIG_SOURCES)
103 $(SWIG) $(SWIG_FLAGS) -o $@ $<
108 # Scripts to be installed.
109 dist_salomescript_DATA= \
112 install-exec-hook: $(libdir)/_libSMESH_Swig.so
114 $(libdir)/_libSMESH_Swig.so:
115 ( cd $(libdir); ln -sf libSMESH_Swigcmodule.so _libSMESH_Swig.so; )