* Bug #14375 fixed - Calling input function with a argument of 64 characters or more...
[scilab.git] / scilab / modules / console / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA   - 2006-2008 - Sylvestre Ledru
4 # Copyright (C) INRIA   - 2007 - Vincent COUVERT
5 # Copyright (C) DIGITEO - 2009 - Sylvestre Ledru
6 # Copyright (C) DIGITEO - 2009 - Pierre MARECHAL
7 # Copyright (C) DIGITEO - 2011 - Allan CORNET
8 # Copyright (C) DIGITEO - 2011 - Antoine ELIAS
9 #
10 # Copyright (C) 2012 - 2016 - Scilab Enterprises
11 #
12 # This file is hereby licensed under the terms of the GNU GPL v2.0,
13 # pursuant to article 5.3.4 of the CeCILL v.2.1.
14 # This file was originally licensed under the terms of the CeCILL v2.1,
15 # and continues to be available under such terms.
16 # For more information, see the COPYING file which you should have received
17 # along with this program.
18 #
19
20
21 #### Target ######
22 modulename=console
23
24 #### console : Conf files ####
25 libsciconsole_la_rootdir = $(mydatadir)
26 libsciconsole_la_root_DATA =  license.txt
27
28 #### console : init scripts ####
29 libsciconsole_la_etcdir = $(mydatadir)/etc
30 libsciconsole_la_etc_DATA = \
31         etc/console.quit \
32         etc/console.start \
33         etc/configuration.xml \
34         etc/XConfiguration-console.xml \
35         etc/XConfiguration-console.xsl \
36         etc/XConfiguration-general.xml \
37         etc/XConfiguration-general.xsl \
38         etc/Actions-Configuration.xml
39
40 #### console : List of the cpp files ####
41 CONSOLE_CPP_JNI_SOURCES = src/jni/CallScilabBridge.cpp
42
43 CONSOLE_CPP_SOURCES = \
44     src/cpp/ClearConsole.cpp \
45     src/cpp/ClearConsolePart.cpp \
46     src/cpp/ConsolePrintf.cpp \
47     src/cpp/ConsoleRead.cpp \
48     src/cpp/ConsoleIsWaitingForInput.cpp \
49     src/cpp/GetCharWithoutOutput.cpp \
50     src/cpp/PromptToHome.cpp \
51     src/cpp/ScilabLinesUpdate.cpp \
52     src/cpp/SetConsolePrompt.cpp
53
54 #### console : List of the c files ####
55 CONSOLE_C_JNI_SOURCES = \
56     src/jni/GuiManagement_wrap.c \
57     src/jni/DropFiles_wrap.c
58
59 GIWS_WRAPPERS = src/jni/CallScilabBridge.giws.xml
60
61 BUILT_SOURCES=
62
63 if GIWS
64 BUILT_SOURCES+=giws
65 endif
66
67 if SWIG
68 BUILT_SOURCES+=swig
69 endif
70
71 # List of the c files
72
73 libsciconsole_minimal_la_SOURCES = \
74     src/noconsole/noconsole.c \
75     sci_gateway/cpp/sci_clc.cpp \
76     sci_gateway/cpp/sci_tohome.cpp \
77     sci_gateway/cpp/sci_lines.cpp \
78     sci_gateway/cpp/sci_prompt.cpp \
79     sci_gateway/cpp/sci_iswaitingforinput.cpp \
80     src/c/clc.c \
81     src/c/tohome.c \
82     src/c/more.c \
83     src/c/scilines.c \
84     src/c/others/gotoxy_nw.c \
85     src/c/others/clrscr_nw.c \
86     src/c/prompt.c \
87     src/c/promptecho.c \
88     src/c/getpipeline.c \
89     src/c/cmdLine/autoCompletionCli.c \
90     src/c/cmdLine/charactersManagement.c \
91     src/c/cmdLine/cliDisplayManagement.c \
92     src/c/cmdLine/cliHistory.c \
93     src/c/cmdLine/cliPrompt.c \
94     src/c/cmdLine/getKey.c \
95     src/c/cmdLine/getNbrLine.c \
96     src/c/cmdLine/gotoFunctions.c \
97     src/c/cmdLine/initConsoleMode.c \
98     src/c/cmdLine/termcapManagement.c \
99     src/cpp/scilabRead.cpp \
100     sci_gateway/cpp/console_gw.cpp
101
102 CONSOLE_C_SOURCES = \
103     src/c/GuiManagement.c \
104     src/c/dropFiles.c
105
106 if IS_MACOSX
107 CONSOLE_C_SOURCES += src/c/others/initMacOSXEnv.c
108 endif
109
110
111 libsciconsole_minimal_la_CPPFLAGS = \
112     -I$(srcdir)/includes/ \
113     -I$(srcdir)/src/c/ \
114     -I$(top_srcdir)/modules/ast/includes/ast/ \
115     -I$(top_srcdir)/modules/ast/includes/exps/ \
116     -I$(top_srcdir)/modules/ast/includes/operations/ \
117     -I$(top_srcdir)/modules/ast/includes/parse/ \
118     -I$(top_srcdir)/modules/ast/includes/symbol/ \
119     -I$(top_srcdir)/modules/ast/includes/system_env/ \
120     -I$(top_srcdir)/modules/ast/includes/types/ \
121     -I$(top_srcdir)/modules/ast/includes/analysis/ \
122     -I$(top_srcdir)/modules/fileio/includes/ \
123     -I$(top_srcdir)/modules/output_stream/includes/ \
124     -I$(top_srcdir)/modules/history_manager/includes/ \
125     -I$(top_srcdir)/modules/output_stream/includes/ \
126     -I$(top_srcdir)/modules/core/includes/ \
127     -I$(top_srcdir)/modules/completion/includes/ \
128     -I$(top_srcdir)/modules/localization/includes/ \
129     -I$(top_srcdir)/modules/action_binding/includes/ \
130     -I$(top_srcdir)/modules/fileio/src/c/ \
131     -I$(top_srcdir)/modules/api_scilab/includes/ \
132     -I$(top_srcdir)/modules/fileio/includes/ \
133     -I$(top_srcdir)/modules/ui_data/includes/ \
134     -I$(top_srcdir)/modules/jvm/includes \
135     -I$(top_srcdir)/modules/threads/includes \
136     -I$(top_srcdir)/modules/string/includes \
137     -I$(top_srcdir)/modules/dynamic_link/includes \
138     $(AM_CPPFLAGS)
139
140 # Includes need for the compilation
141 libsciconsole_la_CPPFLAGS = \
142     -I$(top_srcdir)/modules/api_scilab/includes \
143     -I$(srcdir)/includes/ \
144     -I$(srcdir)/src/cpp/ \
145     -I$(srcdir)/src/c/ \
146     -I$(srcdir)/src/jni/ \
147     -I$(top_srcdir)/modules/ast/includes/ast/ \
148     -I$(top_srcdir)/modules/ast/includes/exps/ \
149     -I$(top_srcdir)/modules/ast/includes/operations/ \
150     -I$(top_srcdir)/modules/ast/includes/parse/ \
151     -I$(top_srcdir)/modules/ast/includes/symbol/ \
152     -I$(top_srcdir)/modules/ast/includes/system_env/ \
153     -I$(top_srcdir)/modules/ast/includes/types/ \
154     -I$(top_srcdir)/modules/jvm/includes/ \
155     -I$(top_srcdir)/modules/action_binding/includes \
156     -I$(top_srcdir)/modules/history_manager/includes/ \
157     -I$(top_srcdir)/modules/ui_data/includes/ \
158     -I$(top_srcdir)/modules/threads/includes \
159     -I$(top_srcdir)/modules/completion/includes \
160     -I$(top_srcdir)/modules/output_stream/includes \
161     -I$(top_srcdir)/modules/string/includes \
162     -I$(top_srcdir)/modules/fileio/includes \
163     -I$(top_srcdir)/modules/localization/includes \
164     -I$(top_srcdir)/modules/commons/src/jni \
165     -I$(top_srcdir)/modules/dynamic_link/includes \
166     $(JAVA_JNI_INCLUDE) \
167     $(AM_CPPFLAGS)
168
169
170 # FIXME: Plateform specific optimisation flags should be set on configure.ac
171 if IS_MACOSX
172 libsciconsole_la_CPPFLAGS += -msse2
173 endif
174
175 # Name of the library
176 pkglib_LTLIBRARIES = libsciconsole-minimal.la
177
178 if GUI
179 pkglib_LTLIBRARIES += libsciconsole.la
180 endif
181
182 libsciconsole_la_LIBADD = libsciconsole-minimal.la
183
184 # All the sources needed by libsciconsole.la
185 libsciconsole_la_SOURCES = $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES) $(CONSOLE_CPP_JNI_SOURCES) $(CONSOLE_CPP_SOURCES) $(CONSOLE_GATEWAY_C_SOURCES) $(CONSOLE_GATEWAY_CPP_SOURCES)
186
187 # For the code check (splint)
188 CHECK_SRC= $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES)
189 INCLUDE_FLAGS = $(libsciconsole_la_CPPFLAGS)
190
191 #### console : gateway declaration ####
192 libsciconsole_la_sci_gatewaydir = $(mydatadir)/sci_gateway
193 libsciconsole_la_sci_gateway_DATA = sci_gateway/console_gateway.xml
194
195 #### SWIG Declaration ####
196 SWIG_WRAPPERS = src/jni/GuiManagement.i \
197         src/jni/DropFiles.i
198
199 # Provides macros compilation, Java compilation, cleaning
200 # If you want Makefile to call ant, add USEANT=1
201
202 if GUI
203 USEANT=1
204 endif
205
206 #### console : include files ####
207 libsciconsole_la_includedir=$(pkgincludedir)
208 libsciconsole_la_include_HEADERS = \
209 includes/autoCompletionCli.h \
210 includes/charactersManagement.h \
211 includes/cliDisplayManagement.h \
212 includes/cliHistory.h \
213 includes/cliPrompt.h \
214 includes/console_gw.hxx \
215 includes/ConsolePrintf.h \
216 includes/ConsoleRead.h \
217 includes/dynlib_console_gw.h \
218 includes/dynlib_console.h \
219 includes/getKey.h \
220 includes/getNbrLine.h \
221 includes/gotoFunctions.h \
222 includes/gw_console.h \
223 includes/initConsoleMode.h \
224 includes/InitializeConsole.h \
225 includes/initMacOSXEnv.h \
226 includes/more.h \
227 includes/prompt.h \
228 includes/scilabRead.h \
229 includes/scilines.h \
230 includes/SetConsolePrompt.h \
231 includes/termcapManagement.h
232
233
234 include $(top_srcdir)/Makefile.incl.am