Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/component.git] / src / SIGNALSComponent_Swig / 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 #  SuperVisionTest SIGNALSComponent : example of component that devides two numbers
23 #  File   : Makefile.in
24 #  Author : , CEA
25 #  Modified by : Alexander BORODIN (OCN) - autotools usage
26 #  Module : SuperVisionTest
27 #  $Header: 
28 #
29 include $(top_srcdir)/adm_local/unix/make_common_starter.am
30
31 # ===============================================================
32 # Swig targets
33 # ===============================================================
34 # (cf. http://www.geocities.com/foetsch/python/swig_linux.htm)
35 #
36 # Step 1: build the wrapping source files with swig
37 #
38 # libSALOME_LifeCycleCORBA.i -- swig --> swig_wrap.cpp
39 #                                        libSALOME_Swig.py
40 #
41 # Step 2: build the dynamic library from cpp built source files and
42 #         dependant libraries.
43 #
44 # swig_wrap.cpp -- gcc --> swig_wrap.o    |-- link --> _libSALOME_Swig.la
45 #                          +              |
46 #                          dependant libs |
47 #
48 # The file libSIGNALSComponent_Swig.py will be installed in
49 # <prefix>/lib/python<version>/site-package/salome.
50 # The library will be installed in the same place.
51 #
52
53 # this option puts it to dist
54 #BUILT_SOURCES = swig_wrap.cpp
55
56 SWIG_FLAGS    = @SWIG_FLAGS@ -I$(srcdir)
57 SWIG_SOURCES  = libSIGNALSComponent_Swig.i
58
59 # Libraries targets
60 lib_LTLIBRARIES = _libSIGNALSComponent_Swig.la
61 _libSIGNALSComponent_Swig_la_SOURCES = $(SWIG_SOURCES)
62 nodist__libSIGNALSComponent_Swig_la_SOURCES = swig_wrap.cpp
63 nodist_salomescript_DATA = libSIGNALSComponent_Swig.py
64
65 EXTRA_DIST += $(SWIG_SOURCES)
66
67 libSIGNALSComponent_Swig.py: swig_wrap.cpp
68
69 _libSIGNALSComponent_Swig_la_CPPFLAGS = \
70         $(PYTHON_INCLUDES) \
71         $(CORBA_CXXFLAGS) \
72         $(CORBA_INCLUDES) \
73         $(KERNEL_CXXFLAGS) \
74         -I$(srcdir)/../SIGNALSComponent \
75         -I$(top_builddir)/idl \
76         -I$(top_builddir)/salome_adm/unix
77
78 _libSIGNALSComponent_Swig_la_LDFLAGS = -module
79 _libSIGNALSComponent_Swig_la_LIBADD  = \
80         ../SIGNALSComponent/libSIGNALSComponentEngine.la \
81         $(KERNEL_LDFLAGS) \
82         -lSalomeContainer \
83         -lSalomeNS \
84         -lOpUtil \
85         -lRegistry \
86         -lSalomeNotification
87
88 swig_wrap.cpp : $(SWIG_SOURCES)
89         $(SWIG) $(SWIG_FLAGS) -o $@ $<
90
91 CLEANFILES = swig_wrap.cpp libSIGNALSComponent_Swig.py