]> SALOME platform Git repositories - samples/component.git/blob - src/SIGNALSComponent_Swig/Makefile.am
Salome HOME
7943ef28934f5fd755ea8886f09bf081f338d917
[samples/component.git] / src / SIGNALSComponent_Swig / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  SuperVisionTest SIGNALSComponent : example of component that devides two numbers
21 #  File   : Makefile.in
22 #  Author : , CEA
23 #  Modified by : Alexander BORODIN (OCN) - autotools usage
24 #  Module : SuperVisionTest
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 libSIGNALSComponent_Swig.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  = libSIGNALSComponent_Swig.i
56
57 # Libraries targets
58 lib_LTLIBRARIES = _libSIGNALSComponent_Swig.la
59 _libSIGNALSComponent_Swig_la_SOURCES = $(SWIG_SOURCES)
60 nodist__libSIGNALSComponent_Swig_la_SOURCES = swig_wrap.cpp
61 nodist_salomescript_DATA = libSIGNALSComponent_Swig.py
62
63 EXTRA_DIST += $(SWIG_SOURCES)
64
65 libSIGNALSComponent_Swig.py: swig_wrap.cpp
66
67 _libSIGNALSComponent_Swig_la_CPPFLAGS = \
68         $(PYTHON_INCLUDES) \
69         $(CORBA_CXXFLAGS) \
70         $(CORBA_INCLUDES) \
71         $(KERNEL_CXXFLAGS) \
72         -I$(srcdir)/../SIGNALSComponent \
73         -I$(top_builddir)/idl
74
75 _libSIGNALSComponent_Swig_la_LDFLAGS = -module
76 _libSIGNALSComponent_Swig_la_LIBADD  = \
77         ../SIGNALSComponent/libSIGNALSComponentEngine.la \
78         $(KERNEL_LDFLAGS) \
79         -lSalomeGenericObj \
80         -lSalomeContainer \
81         -lSalomeNS \
82         -lOpUtil \
83         -lRegistry \
84         -lSalomeNotification
85
86 swig_wrap.cpp : $(SWIG_SOURCES)
87         $(SWIG) $(SWIG_FLAGS) -o $@ $<
88
89 CLEANFILES = swig_wrap.cpp libSIGNALSComponent_Swig.py