Update of the localization templates
[scilab.git] / scilab / modules / action_binding / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2007-2008 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 # Copyright (C) 2007-2008 - INRIA - Vincent COUVERT <vincent.couvert@inria.fr>
4 #
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at
9 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11 if GUI
12
13 USEANT=1
14
15 # List of the c files
16 ACTION_BINDING_C_SOURCES = src/c/InterpreterManagement.c
17
18 # List of the c++ file
19 ACTION_BINDING_CPP_SOURCES = src/jni/Signal.cpp \
20 src/jni/Signal.hxx
21
22 # List of the gateway c files
23 CONSOLE_C_JNI_SOURCES = src/jni/InterpreterManagement_wrap.c
24
25 GATEWAY_C_SOURCES = sci_gateway/c/gw_action_binding.c
26
27 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_notify.cpp
28
29 endif
30
31 SWIG_WRAPPERS = src/jni/InterpreterManagement.i
32 GIWS_WRAPPERS = src/jni/Signal.giws.xml
33
34 BUILT_SOURCES=
35 if SWIG
36 BUILT_SOURCES+=swig
37 endif
38 if GIWS
39 BUILT_SOURCES+=giws
40 endif
41
42 libsciaction_binding_disable_la_SOURCES = src/noaction_binding/noaction_binding.c
43 libsciaction_binding_disable_la_CFLAGS =        -I$(srcdir)/includes/ \
44                                                                                         -I$(top_srcdir)/modules/output_stream/includes
45
46 # Includes need for the compilation
47 libsciaction_binding_la_CFLAGS=         $(JAVA_JNI_INCLUDE) \
48 -I$(srcdir)/includes/ \
49 -I$(srcdir)/src/c/ \
50 -I$(srcdir)/src/jni/ \
51 -I$(top_srcdir)/libs/MALLOC/includes/ \
52 -I$(top_srcdir)/modules/jvm/includes/ \
53 -I$(top_srcdir)/modules/api_scilab/includes \
54 -I$(top_srcdir)/modules/output_stream/includes
55
56 # Includes need for the compilation
57 libsciaction_binding_la_CPPFLAGS=       $(JAVA_JNI_INCLUDE) \
58 -I$(srcdir)/includes/ \
59 -I$(srcdir)/src/c/ \
60 -I$(srcdir)/src/jni/ \
61 -I$(top_srcdir)/libs/MALLOC/includes/ \
62 -I$(top_srcdir)/modules/jvm/includes/ \
63 -I$(top_srcdir)/modules/api_scilab/includes \
64 -I$(top_srcdir)/modules/commons/src/jni/ \
65 -I$(top_srcdir)/modules/output_stream/includes
66
67 # Name of the future library (.la will be replace by .so, .a, etc regarding
68 # the system)
69 pkglib_LTLIBRARIES = libsciaction_binding-disable.la
70
71 if GUI
72 pkglib_LTLIBRARIES += libsciaction_binding.la
73 noinst_LTLIBRARIES = libsciaction_binding-algo.la
74 endif
75
76 libsciaction_binding_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
77
78 # All the sources needed by libsciaction_binding.la
79 libsciaction_binding_algo_la_SOURCES = $(ACTION_BINDING_C_SOURCES) $(ACTION_BINDING_CPP_SOURCES) $(CONSOLE_C_JNI_SOURCES)
80 libsciaction_binding_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
81 libsciaction_binding_algo_la_CFLAGS = $(libsciaction_binding_la_CFLAGS)
82 libsciaction_binding_algo_la_CPPFLAGS = $(libsciaction_binding_la_CPPFLAGS)
83
84
85 # For the code check (splint)
86 CHECK_SRC= $(ACTION_BINDING_C_SOURCES) $(GATEWAY_C_SOURCES)
87 INCLUDE_FLAGS = $(libsciaction_binding_la_CFLAGS)
88
89 ## Libraries necessary
90 libsciaction_binding_la_LIBADD = libsciaction_binding-algo.la
91
92 #### Name of the module and the path ######
93 modulename=action_binding
94
95 #### action_binding : Conf files ####
96 libsciaction_binding_la_rootdir = $(mydatadir)
97 libsciaction_binding_la_root_DATA =  license.txt 
98
99 ####´┐Żaction_binding : init scripts ####
100 libsciaction_binding_la_etcdir = $(mydatadir)/etc
101 libsciaction_binding_la_etc_DATA = etc/action_binding.quit etc/action_binding.start
102
103
104 ####´┐Żaction_binding : gateway declaration ####
105 libsciaction_binding_la_sci_gatewaydir = $(mydatadir)/sci_gateway
106 libsciaction_binding_la_sci_gateway_DATA = sci_gateway/action_binding_gateway.xml
107
108 # Provides macros compilation, Java compilation, cleaning
109 # If you want Makefile to call ant, added USEANT=1
110 include $(top_srcdir)/Makefile.incl.am