]> SALOME platform Git repositories - modules/gui.git/blob - src/SALOME_SWIG/Makefile.am
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/gui.git] / src / SALOME_SWIG / Makefile.am
1 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3
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. 
8
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. 
13
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 
17
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 #
21 #
22 #  File   : Makefile.in
23 #  Author : Paul RASCLE, EDF
24 #  Module : SALOME
25 #  $Header$
26
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 # ===============================================================
30 # Swig targets
31 # ===============================================================
32 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
33 #
34 # Step 1: build the wrapping source files with swig
35 #
36 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
37 #                                        libSALOME_Swig.py
38 #
39 # Step 2: build the dynamic library from cpp built source files and
40 #         dependant libraries.
41 #
42 # swig_wrap.cpp -- gcc --> swig_wrap.o    |-- link --> _libSALOME_Swig.la
43 #                          +              |
44 #                          dependant libs |
45 #
46 # The file libSALOME_Swigcmodule.py will be installed in
47 # <prefix>/lib/python<version>/site-package/salome.
48 # The library will be installed in the same place.
49 #
50
51 # this option puts it to dist
52 #BUILT_SOURCES = swig_wrap.cpp
53
54 SWIG_FLAGS    = @SWIG_FLAGS@ -I$(srcdir)
55 SWIG_SOURCES  = libSALOME_Swig.i
56
57 nodist_pkgpython_DATA = libSALOME_Swig.py
58 libSALOME_Swig.py: swig_wrap.cpp
59
60 # library
61 lib_LTLIBRARIES = libSALOME_Swigcmodule.la
62 libSALOME_Swigcmodule_la_SOURCES  = $(BUILT_SOURCES) $(SWIG_SOURCES) SALOMEGUI_Swig.cxx
63 nodist_libSALOME_Swigcmodule_la_SOURCES = swig_wrap.cpp
64 salomeinclude_HEADERS= SALOMEGUI_Swig.hxx SALOMEGUI_Swig.i
65
66 libSALOME_Swigcmodule_la_CPPFLAGS =\
67         $(QT_INCLUDES) $(PYTHON_INCLUDES) $(CAS_CPPFLAGS) $(VTK_INCLUDES) \
68         $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H @KERNEL_CXXFLAGS@ \
69         -I$(top_builddir)/salome_adm/unix -I$(top_builddir)/idl \
70         -I$(srcdir)/../SalomeApp -I$(srcdir)/../Qtx -I$(srcdir)/../SUIT \
71         -I$(srcdir)/../ObjBrowser -I$(srcdir)/../LightApp -I$(srcdir)/../SOCC \
72         -I$(srcdir)/../SVTK -I$(srcdir)/../Event -I$(srcdir)/../OBJECT \
73         -I$(srcdir)/../CAM -I$(srcdir)/../STD -I$(srcdir)/../OCCViewer \
74         -I$(srcdir)/../Prs -I$(srcdir)/../VTKViewer -I$(srcdir)/../SPlot2d \
75         -I$(srcdir)/../Plot2d \
76         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
77
78 libSALOME_Swigcmodule_la_LDFLAGS  = -module
79 libSALOME_Swigcmodule_la_LIBADD   = \
80         ../SalomeApp/libSalomeApp.la \
81         @PYTHON_LIBS@
82
83 swig_wrap.cpp : $(SWIG_SOURCES)
84         $(SWIG) $(SWIG_FLAGS) -o $@ $<
85
86 CLEANFILES = swig_wrap.cpp
87
88 #
89 # ===============================================================
90 # Files to be installed
91 # ===============================================================
92 #
93
94 # Scripts to be installed.
95 dist_salomescript_DATA= \
96         examplevtk1.py \
97         test_table.py \
98         test_big_table.py \
99         test_many_objects.py \
100         test_remove_ref.py \
101         libSALOME_Swig.py
102
103 nodist_salomescript_DATA= \
104         supervisionexample.py \
105         supervisiongeomexample.py
106
107 EXTRA_DIST+= \
108         supervisionexample.py.in \
109         supervisiongeomexample.py.in
110
111 sharedpkgpython_PYTHON= SALOMEGUI_shared_modules.py
112
113 install-exec-hook: $(libdir)/_libSALOME_Swig.so
114
115 $(libdir)/_libSALOME_Swig.so:
116         (cd $(libdir); ln -sf libSALOME_Swigcmodule.so _libSALOME_Swig.so;)