Salome HOME
Update copyright information
[modules/smesh.git] / src / SMESH_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 # SMESH SMESHGUI : GUI for SMESH component
23 # File   : Makefile.am
24 # Author : Alexander BORODIN, Open CASCADE S.A.S.
25 #
26 include $(top_srcdir)/adm_local/unix/make_common_starter.am
27
28 # ===============================================================
29 # Swig targets
30 # ===============================================================
31 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
32 #
33 # Step 1: build the wrapping source files with swig
34 #
35 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
36 #                                        libSALOME_Swig.py
37 #
38 # Step 2: build the dynamic library from cpp built source files and
39 #         dependant libraries.
40 #
41 # swig_wrap.cpp -- gcc --> swig_wrap.o    |-- link --> _libSMESH_Swig.la
42 #                          +              |
43 #                          dependant libs |
44 #
45 # The file libSMESH_Swig.py will be installed to the
46 # <prefix>/bin/salome directory.
47 # The library _libSMESH_Swig.so will be installed to the 
48 # <prefix>/lib/python<version>/site-package/salome directory.
49 #
50
51 SWIG_FLAGS    = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../SMESHGUI
52 SWIG_SOURCES  = libSMESH_Swig.i
53
54 salomeinclude_HEADERS = $(SWIG_SOURCES) libSMESH_Swig.h
55
56 # Libraries targets
57 lib_LTLIBRARIES                  = _libSMESH_Swig.la
58 _libSMESH_Swig_la_SOURCES        = $(SWIG_SOURCES) libSMESH_Swig.h libSMESH_Swig.cxx
59 nodist__libSMESH_Swig_la_SOURCES = swig_wrap.cpp
60
61 _libSMESH_Swig_la_CPPFLAGS =    \
62         $(QT_INCLUDES)          \
63         $(PYTHON_INCLUDES)      \
64         $(CAS_CPPFLAGS)         \
65         $(VTK_INCLUDES)         \
66         $(OGL_INCLUDES)         \
67         $(KERNEL_CXXFLAGS)      \
68         $(GUI_CXXFLAGS)         \
69         $(MED_CXXFLAGS)         \
70         $(GEOM_CXXFLAGS)        \
71         $(CORBA_CXXFLAGS)       \
72         $(CORBA_INCLUDES)       \
73         $(BOOST_CPPFLAGS)       \
74         -I$(srcdir)/../SMESHGUI \
75         -I$(top_builddir)/idl   \
76         -I$(top_builddir)/salome_adm/unix
77
78 _libSMESH_Swig_la_LDFLAGS  = -module
79 _libSMESH_Swig_la_LIBADD   = ../SMESHGUI/libSMESH.la                    \
80         $(KERNEL_LDFLAGS) -lSalomeGenericObj -lSALOMELocalTrace         \
81         $(GUI_LDFLAGS) -lCAM -lsuit -lqtx -lSalomeApp -lstd -lEvent     \
82         $(PYTHON_LIBS) $(QT_MT_LIBS)
83
84 swig_wrap.cpp : $(SWIG_SOURCES)
85         $(SWIG) $(SWIG_FLAGS) -o $@ $<
86
87 libSMESH_Swig.py: swig_wrap.cpp
88
89 CLEANFILES = swig_wrap.cpp libSMESH_Swig.py
90
91 #
92 # ===============================================================
93 # Files to be installed
94 # ===============================================================
95 #
96
97 # Scripts to be installed (distributed)
98 dist_salomescript_DATA =
99
100 # Scripts to be installed (non-distributed)
101 nodist_salomescript_DATA = libSMESH_Swig.py