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.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Author : Nicolas REJNERI, Paul RASCLE
24 # Modified by : Alexander BORODIN (OCN) - autotools usage
28 include $(top_srcdir)/adm_local/unix/make_common_starter.am
30 # ===============================================================
32 # ===============================================================
33 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
35 # Step 1: build the wrapping source files with swig
37 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
40 # Step 2: build the dynamic library from cpp built source files and
41 # dependant libraries.
43 # swig_wrap.cpp -- gcc --> swig_wrap.o |-- link --> _libSALOME_Swig.la
47 # The file libSALOME_Swigcmodule.py will be installed in
48 # <prefix>/lib/python<version>/site-package/salome.
49 # The library will be installed in the same place.
52 # this option puts it to dist
53 #BUILT_SOURCES = swig_wrap.cpp
58 -I$(srcdir)/../SMESHGUI
60 SWIG_SOURCES = libSMESH_Swig.i
64 lib_LTLIBRARIES = libSMESH_Swigcmodule.la
66 nodist_pkgpython_DATA = libSMESH_Swig.py
67 libSMESH_Swig.py: swig_wrap.cpp
69 libSMESH_Swigcmodule_la_SOURCES = \
72 ../SMESHGUI/SMESHGUI_Swig.cxx
74 nodist_libSMESH_Swigcmodule_la_SOURCES = \
77 libSMESH_Swigcmodule_la_CPPFLAGS = \
90 -I$(srcdir)/../SMESHGUI \
91 -I$(top_builddir)/idl \
92 -I$(top_builddir)/salome_adm/unix
94 libSMESH_Swigcmodule_la_LDFLAGS = \
95 ../SMESHGUI/libSMESH.la \
96 $(KERNEL_LDFLAGS) -lSalomeGenericObj -lSALOMELocalTrace \
97 $(GUI_LDFLAGS) -lCAM -lsuit -lqtx -lSalomeApp -lstd -lEvent \
102 swig_wrap.cpp : $(SWIG_SOURCES)
103 $(SWIG) $(SWIG_FLAGS) -o $@ $<
108 # Scripts to be installed.
109 dist_salomescript_DATA= \
113 batchmode_mefisto.py \
116 ex02_cube2primitive.py \
117 ex03_cube2partition.py \
118 ex04_cube5tetraHexa.py \
120 ex06_hole1boolean.py \
121 ex07_hole1partition.py \
124 ex10_grid4geometry.py \
125 ex11_grid3partition.py \
126 ex12_grid17partition.py \
127 ex13_hole1partial.py \
129 ex15_cyl2geometry.py \
130 ex16_cyl2complementary.py \
133 ex19_sphereINcube.py \
138 SMESH_test1_AndDisplay.py \
144 SMESH_mechanic_tetra.py \
145 SMESH_mechanic_editor.py \
146 SMESH_mechanic_netgen.py \
148 SMESH_fixation_hexa.py \
149 SMESH_fixation_tetra.py \
150 SMESH_fixation_netgen.py \
152 SMESH_box2_tetra.py \
153 SMESH_box3_tetra.py \
154 SMESH_flight_skin.py \
155 SMESH_Partition1_tetra.py\
159 SMESH_BelongToGeom.py \
160 SMESH_GroupFromGeom2.py \
162 SMESH_demo_hexa2_upd.py \
165 SMESH_GroupFromGeom.py \
167 SMESH_GroupLyingOnGeom.py \
168 PAL_MESH_041_mesh.py \
173 EXPORT_SHAREDPYSCRIPTS = \
174 SMESH_shared_modules.py
176 install-exec-hook: $(libdir)/_libSMESH_Swig.so
178 $(libdir)/_libSMESH_Swig.so:
179 ( cd $(libdir); ln -sf libSMESH_Swigcmodule.so _libSMESH_Swig.so; )