2ab1c8a36f5165f7d8226c28f9b77f9b8f87661d
[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 src/jni/GiwsException.cpp
22
23 # List of the gateway c files
24 CONSOLE_C_JNI_SOURCES = src/jni/InterpreterManagement_wrap.c
25
26 GATEWAY_C_SOURCES = sci_gateway/c/gw_action_binding.c
27
28 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_notify.cpp
29
30 #### SWIG Declaration ####
31 SWIG_WRAPPERS = src/jni/InterpreterManagement.i
32
33 else
34 # List of the c files
35 ACTION_BINDING_C_SOURCES = src/noaction_binding/noaction_binding.c
36 endif
37
38 if SWIG
39 BUILT_SOURCES=swig
40 endif
41
42 GIWS_WRAPPERS = src/jni/Signal.giws.xml
43
44 if GIWS
45 BUILT_SOURCES=giws
46 endif
47
48 libsciaction_binding_disable_la_SOURCES = src/noaction_binding/noaction_binding.c
49 libsciaction_binding_disable_la_CFLAGS =        -I$(srcdir)/includes/ \
50                                                                                         -I$(top_srcdir)/modules/output_stream/includes
51
52 # Includes need for the compilation
53 libsciaction_binding_la_CFLAGS=         $(JAVA_JNI_INCLUDE) \
54 -I$(srcdir)/includes/ \
55 -I$(srcdir)/src/c/ \
56 -I$(srcdir)/src/jni/ \
57 -I$(top_srcdir)/libs/MALLOC/includes/ \
58 -I$(top_srcdir)/modules/jvm/includes/ \
59 -I$(top_srcdir)/modules/api_scilab/includes \
60 -I$(top_srcdir)/modules/output_stream/includes \
61 -I$(top_srcdir)/modules/types/includes
62
63 # Includes need for the compilation
64 libsciaction_binding_la_CPPFLAGS=       $(JAVA_JNI_INCLUDE) \
65 -I$(srcdir)/includes/ \
66 -I$(srcdir)/src/c/ \
67 -I$(srcdir)/src/jni/ \
68 -I$(top_srcdir)/libs/MALLOC/includes/ \
69 -I$(top_srcdir)/modules/jvm/includes/ \
70 -I$(top_srcdir)/modules/api_scilab/includes \
71 -I$(top_srcdir)/modules/output_stream/includes \
72 -I$(top_srcdir)/modules/types/includes
73
74 # Name of the future library (.la will be replace by .so, .a, etc regarding
75 # the system)
76 pkglib_LTLIBRARIES = libsciaction_binding-disable.la
77
78 if GUI
79 pkglib_LTLIBRARIES += libsciaction_binding.la
80 noinst_LTLIBRARIES = libsciaction_binding-algo.la
81 endif
82
83 libsciaction_binding_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
84
85 # All the sources needed by libsciaction_binding.la
86 libsciaction_binding_algo_la_SOURCES = $(ACTION_BINDING_C_SOURCES) $(ACTION_BINDING_CPP_SOURCES) $(CONSOLE_C_JNI_SOURCES)
87 libsciaction_binding_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
88 libsciaction_binding_algo_la_CFLAGS = $(libsciaction_binding_la_CFLAGS)
89 libsciaction_binding_algo_la_CPPFLAGS = $(libsciaction_binding_la_CPPFLAGS)
90
91
92 # For the code check (splint)
93 CHECK_SRC= $(ACTION_BINDING_C_SOURCES) $(GATEWAY_C_SOURCES)
94 INCLUDE_FLAGS = $(libsciaction_binding_la_CFLAGS)
95
96 ## Libraries necessary
97 ## Change to include other Scilab modules/lib
98 libsciaction_binding_la_LIBADD = libsciaction_binding-algo.la   $(top_builddir)/libs/MALLOC/libscimalloc.la \
99                                                                         $(top_builddir)/modules/output_stream/libscioutput_stream.la
100
101 # Cyclic dependancy
102 #                                                                       $(top_builddir)/modules/jvm/libscijvm.la
103
104 #### Name of the module and the path ######
105 modulename=action_binding
106
107 #### action_binding : Conf files ####
108 libsciaction_binding_la_rootdir = $(mydatadir)
109 libsciaction_binding_la_root_DATA =  license.txt
110
111 ####´┐Żaction_binding : init scripts ####
112 libsciaction_binding_la_etcdir = $(mydatadir)/etc
113 libsciaction_binding_la_etc_DATA = etc/action_binding.quit etc/action_binding.start
114
115
116 ####´┐Żaction_binding : gateway declaration ####
117 libsciaction_binding_la_sci_gatewaydir = $(mydatadir)/sci_gateway
118 libsciaction_binding_la_sci_gateway_DATA = sci_gateway/action_binding_gateway.xml
119
120 # Provides macros compilation, Java compilation, cleaning
121 # If you want Makefile to call ant, added USEANT=1
122 include $(top_srcdir)/Makefile.incl.am