Salome HOME
Mantis issue 0020706: EDF 1263 GEOM: Suppress faces does notremove faces and adds...
[modules/geom.git] / src / GEOM_SWIG_WITHIHM / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
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.
10 #
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.
15 #
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
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #  GEOM GEOM_SWIG : binding of C++ omplementaion with Python
23 #  File   : Makefile.in
24 #  Author : Nicolas REJNERI, Paul RASCLE
25 #  Modified by : Alexander BORODIN (OCN) - autotools usage
26 #  Module : GEOM
27 #  $Header$
28 # Libraries targets
29 #
30 include $(top_srcdir)/adm_local/unix/make_common_starter.am
31
32 # ===============================================================
33 # Swig targets
34 # ===============================================================
35 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
36 #
37 # Step 1: build the wrapping source files with swig
38 #
39 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
40 #                                        libSALOME_Swig.py
41 #
42 # Step 2: build the dynamic library from cpp built source files and
43 #         dependant libraries.
44 #
45 # swig_wrap.cpp -- gcc --> swig_wrap.o    |-- link --> _libSALOME_Swig.la
46 #                          +              |
47 #                          dependant libs |
48 #
49 # The file libGEOM_Swig.py will be installed to the
50 # <prefix>/bin/salome directory.
51 # The library _libGEOM_Swig.so will be installed to the 
52 # <prefix>/lib/python<version>/site-package/salome directory.
53 #
54
55 SWIG_FLAGS    = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../GEOMGUI
56 SWIG_SOURCES  = libGEOM_Swig.i
57
58 libGEOM_Swig.py: swig_wrap.cpp
59
60 # Libraries targets
61 lib_LTLIBRARIES                 = _libGEOM_Swig.la
62 _libGEOM_Swig_la_SOURCES        = $(SWIG_SOURCES)
63 nodist__libGEOM_Swig_la_SOURCES = swig_wrap.cpp
64 salomeinclude_HEADERS           = $(SWIG_SOURCES)
65
66 _libGEOM_Swig_la_CPPFLAGS =             \
67         $(QT_INCLUDES)                  \
68         $(PYTHON_INCLUDES)              \
69         $(CAS_CPPFLAGS)                 \
70         $(VTK_INCLUDES)                 \
71         $(OGL_INCLUDES)                 \
72         $(KERNEL_CXXFLAGS)              \
73         $(GUI_CXXFLAGS)                 \
74         $(CORBA_CXXFLAGS)               \
75         $(CORBA_INCLUDES)               \
76         -I$(srcdir)/../GEOMGUI          \
77         -I$(top_builddir)/idl
78
79 _libGEOM_Swig_la_LDFLAGS = -module
80 _libGEOM_Swig_la_LIBADD  =              \
81         ../GEOMGUI/libGEOM.la           \
82         $(PYTHON_LIBS)
83
84 swig_wrap.cpp : $(SWIG_SOURCES)
85         $(SWIG) $(SWIG_FLAGS) -o $@ $<
86
87 CLEANFILES = swig_wrap.cpp libGEOM_Swig.py
88
89 #
90 # ===============================================================
91 # Files to be installed
92 # ===============================================================
93 #
94
95 # Scripts to be installed (distributed)
96 dist_salomescript_DATA =
97
98 # Scripts to be installed (non-distributed)
99 nodist_salomescript_DATA = libGEOM_Swig.py