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