]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_SWIG/Makefile.am
Salome HOME
Using AutoTools for building procedure
[modules/geom.git] / src / GEOM_SWIG / 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 libSALOME_Swigcmodule.py will be installed in
53 # <prefix>/lib/python<version>/site-package/salome.
54 # The library will be installed in the same place.
55 #
56
57 # this option puts it to dist
58 #BUILT_SOURCES = swig_wrap.cpp
59
60 SWIG_FLAGS    = \
61         @SWIG_FLAGS@ \
62         -I$(srcdir) \
63         -I$(srcdir)/../GEOMGUI
64
65 SWIG_SOURCES  = libGEOM_Swig.i
66
67 # Libraries targets
68 lib_LTLIBRARIES = libGEOM_Swigcmodule.la
69
70 nodist_pkgpython_DATA = libGEOM_Swig.py
71 libGEOM_Swig.py: swig_wrap.cpp
72
73 libGEOM_Swigcmodule_la_SOURCES = \
74         $(BUILT_SOURCES) \
75         $(SWIG_SOURCES)
76
77 nodist_libGEOM_Swigcmodule_la_SOURCES = swig_wrap.cpp
78
79 #LIB_CLIENT_IDL = SALOMEDS.idl \
80 #                 SALOMEDS_Attributes.idl \
81 #                SALOME_Exception.idl \
82 #                GEOM_Gen.idl \
83 #                SALOME_Component.idl \
84 #                SALOME_GenericObj.idl
85
86 EXPORT_SHAREDPYSCRIPTS=\
87         GEOM_shared_modules.py
88
89 libGEOM_Swigcmodule_la_CPPFLAGS = \
90         $(QT_INCLUDES) \
91         $(PYTHON_INCLUDES) \
92         $(CAS_CPPFLAGS) \
93         $(VTK_INCLUDES) \
94         $(OGL_INCLUDES) \
95         $(KERNEL_CXXFLAGS) \
96         $(GUI_CXXFLAGS) \
97         $(CORBA_CXXFLAGS) \
98         $(CORBA_INCLUDES) \
99         -I$(srcdir)/../GEOMGUI \
100         -I$(top_builddir)/idl \
101         -I$(top_builddir)/salome_adm/unix
102
103 libGEOM_Swigcmodule_la_LDFLAGS = \
104         ../GEOMGUI/libGEOM.la
105
106
107 libGEOM_Swigcmodule_la_LIBADD  = \
108         $(PYTHON_LIBS)
109
110 swig_wrap.cpp : $(SWIG_SOURCES)
111         $(SWIG) $(SWIG_FLAGS) -o $@ $<
112
113 CLEANFILES = \
114         swig_wrap.cpp
115
116 #
117 # ===============================================================
118 # Files to be installed
119 # ===============================================================
120 #
121
122 # Scripts to be installed.
123 dist_salomescript_DATA= \
124         libGEOM_Swig.py \
125         geompy.py \
126         batchmode_geompy.py \
127         GEOM_Spanner.py \
128         GEOM_blocks.py \
129         GEOM_example.py \
130         GEOM_example2.py \
131         GEOM_example3.py \
132         GEOM_example4.py \
133         GEOM_example5.py \
134         GEOM_moteur.py \
135         GEOM_TestAll.py  \
136         GEOM_TestOthers.py \
137         GEOM_TestHealing.py \
138         GEOM_TestMeasures.py \
139         GEOM_usinggeom.py  \
140         GEOM_Partition1.py \
141         GEOM_Partition2.py \
142         GEOM_Partition3.py \
143         GEOM_Partition4.py \
144         GEOM_Partition5.py \
145         GEOM_cyl2complementary.py \
146         GEOM_shellSolid.py \
147         GEOM_tube_geom.py \
148         GEOM_tube_geom_gg2.py \
149         GEOM_Nut.py \
150         GEOM_Sketcher.py \
151         PAL_MESH_019_020_geometry.py \
152         PAL_MESH_028_geometry.py \
153         PAL_MESH_030_geometry.py \
154         PAL_MESH_033_geometry.py \
155         PAL_MESH_035_geometry.py
156
157 sharedpkgpython_PYTHON = \
158         GEOM_shared_modules.py
159
160 install-exec-hook:\
161         $(libdir)/_libGEOM_Swig.so
162
163 $(libdir)/_libGEOM_Swig.so:
164         ln -sf $(libdir)/libGEOM_Swigcmodule.so $@