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 : Paul RASCLE, EDF
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 libSALOME_Swigcmodule.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 = libSALOME_Swig.i
57 nodist_pkgpython_DATA = libSALOME_Swig.py
58 libSALOME_Swig.py: swig_wrap.cpp
61 lib_LTLIBRARIES = libSALOME_Swigcmodule.la
62 libSALOME_Swigcmodule_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES) SALOMEGUI_Swig.cxx
63 nodist_libSALOME_Swigcmodule_la_SOURCES = swig_wrap.cpp
64 salomeinclude_HEADERS= SALOMEGUI_Swig.hxx SALOMEGUI_Swig.i
66 libSALOME_Swigcmodule_la_CPPFLAGS =\
67 $(QT_INCLUDES) $(PYTHON_INCLUDES) $(CAS_CPPFLAGS) $(VTK_INCLUDES) \
68 $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ \
69 -I$(top_builddir)/salome_adm/unix -I$(top_builddir)/idl \
70 -I$(srcdir)/../SalomeApp -I$(srcdir)/../Qtx -I$(srcdir)/../SUIT \
71 -I$(srcdir)/../ObjBrowser -I$(srcdir)/../LightApp -I$(srcdir)/../SOCC \
72 -I$(srcdir)/../SVTK -I$(srcdir)/../Event -I$(srcdir)/../OBJECT \
73 -I$(srcdir)/../CAM -I$(srcdir)/../STD -I$(srcdir)/../OCCViewer \
74 -I$(srcdir)/../Prs -I$(srcdir)/../VTKViewer -I$(srcdir)/../SPlot2d \
75 -I$(srcdir)/../Plot2d \
76 @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
78 libSALOME_Swigcmodule_la_LDFLAGS = -module
79 libSALOME_Swigcmodule_la_LIBADD = \
80 ../SalomeApp/libSalomeApp.la \
83 swig_wrap.cpp : $(SWIG_SOURCES)
84 $(SWIG) $(SWIG_FLAGS) -o $@ $<
86 CLEANFILES = swig_wrap.cpp
89 # ===============================================================
90 # Files to be installed
91 # ===============================================================
94 # Scripts to be installed.
95 dist_salomescript_DATA= \
99 test_many_objects.py \
103 nodist_salomescript_DATA= \
104 supervisionexample.py \
105 supervisiongeomexample.py
108 supervisionexample.py.in \
109 supervisiongeomexample.py.in
111 sharedpkgpython_PYTHON= SALOMEGUI_shared_modules.py
113 install-exec-hook: $(libdir)/_libSALOME_Swig.so
115 $(libdir)/_libSALOME_Swig.so:
116 (cd $(libdir); ln -sf libSALOME_Swigcmodule.so _libSALOME_Swig.so;)