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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 # Author : Guillaume Boulant (CSSI)
28 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
31 # ===============================================================
33 # ===============================================================
34 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
36 # Step 1: build the wrapping source files with swig
38 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
39 # libSALOME_LifeCycleCORBA.py
41 # Step 2: build the dynamic library from cpp built source files and
42 # dependant libraries.
44 # swig_wrap.cpp -- gcc --> swig_wrap.o |-- link --> _libSALOME_LifeCycleCORBA.la
48 # The file libSALOME_LifeCycleCORBA.py will be installed in
49 # <prefix>/lib/python<version>/site-package/salome.
50 # The library will be installed in the same place.
53 BUILT_SOURCES = swig_wrap.cpp
55 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../LifeCycleCORBA
56 SWIG_SOURCES = libSALOME_LifeCycleCORBA.i
58 pkgpython_PYTHON = libSALOME_LifeCycleCORBA.py
59 pkgpyexec_LTLIBRARIES = _libSALOME_LifeCycleCORBA.la
60 _libSALOME_LifeCycleCORBA_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES)
61 _libSALOME_LifeCycleCORBA_la_CPPFLAGS =\
63 -I$(srcdir) -I$(srcdir)/../LifeCycleCORBA \
64 -I$(srcdir)/../Basics \
65 -I$(srcdir)/../SALOMELocalTrace \
66 -I$(srcdir)/../Utils \
67 -I$(top_builddir)/salome_adm/unix \
68 -I$(top_builddir)/idl \
69 @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
71 _libSALOME_LifeCycleCORBA_la_LDFLAGS = -module
72 _libSALOME_LifeCycleCORBA_la_LIBADD = \
73 ../LifeCycleCORBA/libSalomeLifeCycleCORBA.la \
76 swig_wrap.cpp : $(SWIG_SOURCES)
77 $(SWIG) $(SWIG_FLAGS) -o $@ $<
79 CLEANFILES = swig_wrap.cpp
83 # ===============================================================
84 # Files to be installed
85 # ===============================================================
88 # Scripts to be installed.
89 dist_salomescript_DATA =\
93 # It's not needed to specify libSALOME_LifeCycleCORBA.py. It is
94 # automaticaly installed through the swig target pkgpython_PYTHON.