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
10 # Copyright (C) 2012 - 2016 - Scilab Enterprises
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.
24 #### console : Conf files ####
25 libsciconsole_la_rootdir = $(mydatadir)
26 libsciconsole_la_root_DATA = license.txt
28 #### console : init scripts ####
29 libsciconsole_la_etcdir = $(mydatadir)/etc
30 libsciconsole_la_etc_DATA = \
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
40 #### console : List of the cpp files ####
41 CONSOLE_CPP_JNI_SOURCES = src/jni/CallScilabBridge.cpp
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
54 #### console : List of the c files ####
55 CONSOLE_C_JNI_SOURCES = \
56 src/jni/GuiManagement_wrap.c \
57 src/jni/DropFiles_wrap.c
59 GIWS_WRAPPERS = src/jni/CallScilabBridge.giws.xml
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 \
84 src/c/others/gotoxy_nw.c \
85 src/c/others/clrscr_nw.c \
88 src/c/cmdLine/autoCompletionCli.c \
89 src/c/cmdLine/charactersManagement.c \
90 src/c/cmdLine/cliDisplayManagement.c \
91 src/c/cmdLine/cliHistory.c \
92 src/c/cmdLine/cliPrompt.c \
93 src/c/cmdLine/getKey.c \
94 src/c/cmdLine/getNbrLine.c \
95 src/c/cmdLine/gotoFunctions.c \
96 src/c/cmdLine/initConsoleMode.c \
97 src/c/cmdLine/termcapManagement.c \
98 src/cpp/scilabRead.cpp \
99 sci_gateway/cpp/console_gw.cpp
101 CONSOLE_C_SOURCES = \
102 src/c/GuiManagement.c \
106 CONSOLE_C_SOURCES += src/c/others/initMacOSXEnv.c
110 libsciconsole_minimal_la_CPPFLAGS = \
111 -I$(srcdir)/includes/ \
113 -I$(top_srcdir)/modules/ast/includes/ast/ \
114 -I$(top_srcdir)/modules/ast/includes/exps/ \
115 -I$(top_srcdir)/modules/ast/includes/operations/ \
116 -I$(top_srcdir)/modules/ast/includes/parse/ \
117 -I$(top_srcdir)/modules/ast/includes/symbol/ \
118 -I$(top_srcdir)/modules/ast/includes/system_env/ \
119 -I$(top_srcdir)/modules/ast/includes/types/ \
120 -I$(top_srcdir)/modules/ast/includes/analysis/ \
121 -I$(top_srcdir)/modules/fileio/includes/ \
122 -I$(top_srcdir)/modules/output_stream/includes/ \
123 -I$(top_srcdir)/modules/history_manager/includes/ \
124 -I$(top_srcdir)/modules/output_stream/includes/ \
125 -I$(top_srcdir)/modules/core/includes/ \
126 -I$(top_srcdir)/modules/completion/includes/ \
127 -I$(top_srcdir)/modules/localization/includes/ \
128 -I$(top_srcdir)/modules/action_binding/includes/ \
129 -I$(top_srcdir)/modules/fileio/src/c/ \
130 -I$(top_srcdir)/modules/api_scilab/includes/ \
131 -I$(top_srcdir)/modules/fileio/includes/ \
132 -I$(top_srcdir)/modules/ui_data/includes/ \
133 -I$(top_srcdir)/modules/jvm/includes \
134 -I$(top_srcdir)/modules/threads/includes \
135 -I$(top_srcdir)/modules/string/includes \
136 -I$(top_srcdir)/modules/dynamic_link/includes \
139 # Includes need for the compilation
140 libsciconsole_la_CPPFLAGS = \
141 -I$(top_srcdir)/modules/api_scilab/includes \
142 -I$(srcdir)/includes/ \
143 -I$(srcdir)/src/cpp/ \
145 -I$(srcdir)/src/jni/ \
146 -I$(top_srcdir)/modules/ast/includes/ast/ \
147 -I$(top_srcdir)/modules/ast/includes/exps/ \
148 -I$(top_srcdir)/modules/ast/includes/operations/ \
149 -I$(top_srcdir)/modules/ast/includes/parse/ \
150 -I$(top_srcdir)/modules/ast/includes/symbol/ \
151 -I$(top_srcdir)/modules/ast/includes/system_env/ \
152 -I$(top_srcdir)/modules/ast/includes/types/ \
153 -I$(top_srcdir)/modules/jvm/includes/ \
154 -I$(top_srcdir)/modules/action_binding/includes \
155 -I$(top_srcdir)/modules/history_manager/includes/ \
156 -I$(top_srcdir)/modules/ui_data/includes/ \
157 -I$(top_srcdir)/modules/threads/includes \
158 -I$(top_srcdir)/modules/completion/includes \
159 -I$(top_srcdir)/modules/output_stream/includes \
160 -I$(top_srcdir)/modules/string/includes \
161 -I$(top_srcdir)/modules/fileio/includes \
162 -I$(top_srcdir)/modules/localization/includes \
163 -I$(top_srcdir)/modules/commons/src/jni \
164 -I$(top_srcdir)/modules/dynamic_link/includes \
165 $(JAVA_JNI_INCLUDE) \
169 # FIXME: Plateform specific optimisation flags should be set on configure.ac
171 libsciconsole_la_CPPFLAGS += -msse2
174 # Name of the library
175 pkglib_LTLIBRARIES = libsciconsole-minimal.la
178 pkglib_LTLIBRARIES += libsciconsole.la
181 libsciconsole_la_LIBADD = libsciconsole-minimal.la
183 # All the sources needed by libsciconsole.la
184 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 # For the code check (splint)
187 CHECK_SRC= $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES)
188 INCLUDE_FLAGS = $(libsciconsole_la_CPPFLAGS)
190 #### SWIG Declaration ####
191 SWIG_WRAPPERS = src/jni/GuiManagement.i \
194 # Provides macros compilation, Java compilation, cleaning
195 # If you want Makefile to call ant, add USEANT=1
201 #### console : include files ####
202 libsciconsole_la_includedir=$(pkgincludedir)
203 libsciconsole_la_include_HEADERS = \
204 includes/autoCompletionCli.h \
205 includes/charactersManagement.h \
206 includes/cliDisplayManagement.h \
207 includes/cliHistory.h \
208 includes/cliPrompt.h \
209 includes/console_gw.hxx \
210 includes/ConsolePrintf.h \
211 includes/ConsoleRead.h \
212 includes/dynlib_console_gw.h \
213 includes/dynlib_console.h \
215 includes/getNbrLine.h \
216 includes/gotoFunctions.h \
217 includes/gw_console.h \
218 includes/initConsoleMode.h \
219 includes/InitializeConsole.h \
220 includes/initMacOSXEnv.h \
223 includes/scilabRead.h \
224 includes/scilines.h \
225 includes/SetConsolePrompt.h \
226 includes/termcapManagement.h
229 include $(top_srcdir)/Makefile.incl.am