]> SALOME platform Git repositories - modules/kernel.git/blob - src/Batch_SWIG/Makefile.am
Salome HOME
Now study declared as being modifyed after change variables.
[modules/kernel.git] / src / Batch_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.am
23 #  Author : Guillaume Boulant (CSSI)
24 #  Module : KERNEL
25 #  $Header$
26
27
28 include $(top_srcdir)/salome_adm/unix/make_common_starter.am
29
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 # libBatch_Swig.i -- swig --> swig_wrap.cpp
39 #                             libBatch_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 --> _libBatch_Swig.la
45 #                          +              |
46 #                          dependant libs |
47 #
48 # The file libBatch_Swig.py will be installed in
49 # <prefix>/lib/python<version>/site-package/salome.
50 # The library will be installed in the common place.
51 #
52
53 SWIG_FLAGS    = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../Batch
54 SWIG_SOURCES  = libBatch_Swig.i libBatch_Swig_exception.i libBatch_Swig_typemap.i
55
56 nodist_salomepython_PYTHON = libBatch_Swig.py
57 salomepyexec_LTLIBRARIES   = _libBatch_Swig.la
58 nodist__libBatch_Swig_la_SOURCES = swig_wrap.cpp
59 _libBatch_Swig_la_SOURCES  = $(SWIG_SOURCES)
60 _libBatch_Swig_la_CPPFLAGS = @PYTHON_INCLUDES@ -I$(srcdir) -I$(srcdir)/../Batch
61 _libBatch_Swig_la_LDFLAGS  = -module
62 _libBatch_Swig_la_LIBADD   = ../Batch/libSalomeBatch.la @PYTHON_LIBS@
63
64 if WITH_OPENPBS
65 _libBatch_Swig_la_CPPFLAGS += @OPENPBS_INCLUDES@
66 _libBatch_Swig_la_LIBADD   += @OPENPBS_LIBDIR@ @OPENPBS_LIBS@
67 endif
68
69 swig_wrap.cpp : $(SWIG_SOURCES)
70         $(SWIG) $(SWIG_FLAGS) -o $@ $<
71
72 CLEANFILES = swig_wrap.cpp libBatch_Swig.py
73
74
75 #
76 # ===============================================================
77 # Files to be installed
78 # ===============================================================
79 #
80
81 # Scripts to be installed.
82 dist_salomescript_SCRIPTS = Batch_test.py
83
84 # You don't need to specify libBatch_Swig.py. It is automatically
85 # installed by means of the swig target salomepython_PYTHON.