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