]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_SWIG_WITHIHM/Makefile.am
Salome HOME
Merge from V5_1_main 14/05/2010
[modules/geom.git] / src / GEOM_SWIG_WITHIHM / Makefile.am
1 #  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  This library is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU Lesser General Public
5 #  License as published by the Free Software Foundation; either
6 #  version 2.1 of the License.
7 #
8 #  This library is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 #  Lesser General Public License for more details.
12 #
13 #  You should have received a copy of the GNU Lesser General Public
14 #  License along with this library; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  GEOM GEOM_SWIG : binding of C++ omplementaion with Python
21 #  File   : Makefile.in
22 #  Author : Nicolas REJNERI, Paul RASCLE
23 #  Modified by : Alexander BORODIN (OCN) - autotools usage
24 #  Module : GEOM
25 #  $Header$
26 # Libraries targets
27 #
28 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29
30 # ===============================================================
31 # Swig targets
32 # ===============================================================
33 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
34 #
35 # Step 1: build the wrapping source files with swig
36 #
37 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
38 #                                        libSALOME_Swig.py
39 #
40 # Step 2: build the dynamic library from cpp built source files and
41 #         dependant libraries.
42 #
43 # swig_wrap.cpp -- gcc --> swig_wrap.o    |-- link --> _libSALOME_Swig.la
44 #                          +              |
45 #                          dependant libs |
46 #
47 # The file libGEOM_Swig.py will be installed to the
48 # <prefix>/bin/salome directory.
49 # The library _libGEOM_Swig.so will be installed to the 
50 # <prefix>/lib/python<version>/site-package/salome directory.
51 #
52
53 SWIG_FLAGS    = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../GEOMGUI
54 SWIG_SOURCES  = libGEOM_Swig.i
55
56 libGEOM_Swig.py: swig_wrap.cpp
57
58 # Libraries targets
59 lib_LTLIBRARIES                 = _libGEOM_Swig.la
60 _libGEOM_Swig_la_SOURCES        = $(SWIG_SOURCES)
61 nodist__libGEOM_Swig_la_SOURCES = swig_wrap.cpp
62 salomeinclude_HEADERS           = $(SWIG_SOURCES)
63
64 _libGEOM_Swig_la_CPPFLAGS =             \
65         $(QT_INCLUDES)                  \
66         $(PYTHON_INCLUDES)              \
67         $(CAS_CPPFLAGS)                 \
68         $(VTK_INCLUDES)                 \
69         $(OGL_INCLUDES)                 \
70         $(KERNEL_CXXFLAGS)              \
71         $(GUI_CXXFLAGS)                 \
72         $(CORBA_CXXFLAGS)               \
73         $(CORBA_INCLUDES)               \
74         -I$(srcdir)/../GEOMGUI          \
75         -I$(top_builddir)/idl
76
77 _libGEOM_Swig_la_LDFLAGS = -module
78 _libGEOM_Swig_la_LIBADD  =              \
79         ../GEOMGUI/libGEOM.la           \
80         $(PYTHON_LIBS)
81
82 swig_wrap.cpp : $(SWIG_SOURCES)
83         $(SWIG) $(SWIG_FLAGS) -o $@ $<
84
85 CLEANFILES = swig_wrap.cpp libGEOM_Swig.py
86
87 #
88 # ===============================================================
89 # Files to be installed
90 # ===============================================================
91 #
92
93 # Scripts to be installed (distributed)
94 dist_salomescript_DATA =
95
96 # Scripts to be installed (non-distributed)
97 nodist_salomescript_DATA = libGEOM_Swig.py