Move jit code into a dedicated modules (was in core)
[scilab.git] / scilab / modules / core / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU
3 #
4 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
9
10
11 CORE_C_SOURCES = \
12 src/c/csignal.c \
13 src/c/cs2st.c \
14 src/c/getval.c \
15 src/c/md5.c \
16 src/c/texmacs.c \
17 src/c/str2sci.c \
18 src/c/getmodules.c \
19 src/c/getmemory.c \
20 src/c/scimem.c \
21 src/c/isanan.c \
22 src/c/xscion.c \
23 src/c/returnanan.c \
24 src/c/loadversion.c \
25 src/c/version.c \
26 src/c/InitializeCore.c \
27 src/c/coretable.c \
28 src/c/GetXmlFileEncoding.c \
29 src/c/islittleendian.c \
30 src/c/ifexpr.c \
31 src/c/getcommandlineargs.c \
32 src/c/callFunctionFromGateway.c \
33 src/c/commandwords.c \
34 src/c/freeArrayOfString.c \
35 src/c/getstaticdebuginfo.c \
36 src/c/getdynamicdebuginfo.c \
37 src/c/gw_dynamic_generic.c \
38 src/c/dynamic_gateways.c \
39 src/c/readGateway.c \
40 src/c/comparehandles.c \
41 src/c/setPrecisionFPU.c \
42 src/c/LaunchScilabSignal.c \
43 src/c/getos.c \
44 src/c/mode_exec.c \
45 src/c/transposeMatrix.c \
46 src/c/recursionFunction.c \
47 src/c/eqid.c \
48 src/c/exitCodeValue.c \
49 src/c/getversion.c \
50 src/c/dynamic_tclsci.c \
51 src/c/dynamic_parallel.c \
52 src/c/backtrace.c \
53 src/c/signal_mgmt.c \
54 src/c/suspendProcess.c \
55 src/c/setlines.c \
56 src/c/setformat.c \
57 src/c/InitializePreferences.c \
58 src/c/getmaxMALLOC.c \
59 src/c/sci_mem_alloc.c \
60 src/c/hashtable/hashtable.c \
61 src/c/hashtable/hashtable_utility.c
62
63 CORE_CPP_SOURCES = \
64 src/cpp/namstr.cpp \
65 src/cpp/demangle.cpp \
66 src/cpp/backtrace_print.cpp \
67 src/cpp/storeCommand.cpp \
68 src/cpp/banner.cpp \
69 src/cpp/with_module.cpp \
70 src/cpp/runner.cpp \
71 src/cpp/tasks.cpp \
72 src/cpp/getvariablesname.cpp \
73 src/cpp/getmacrosname.cpp \
74 src/cpp/getfunctionsname.cpp \
75 src/cpp/InitScilab.cpp
76 src/cpp/storeCommand.cpp \
77 src/cpp/banner.cpp \
78 src/cpp/with_module.cpp \
79 src/cpp/runner.cpp
80
81 if USE_DYNAMIC_STACK
82 CORE_C_SOURCES += src/c/scimem64.c
83 endif
84
85 CORE_FORTRAN_SOURCES = src/fortran/clunit.f \
86 src/fortran/getlin.f \
87 src/fortran/allowptr.f \
88 src/fortran/isany.f \
89 src/fortran/setgetmode.f \
90 src/fortran/showstack.f \
91 src/fortran/setippty.f \
92 src/fortran/cmplxt.f \
93 src/fortran/folhp.f \
94 src/fortran/cvname.f \
95 src/fortran/prompt.f \
96 src/fortran/intstr.f \
97 src/fortran/createref.f \
98 src/fortran/btof.f \
99 src/fortran/btofm.f \
100 src/fortran/find.f \
101 src/fortran/ref2val.f \
102 src/fortran/isbrk.f \
103 src/fortran/xerbla.f \
104 src/fortran/dtosci.f \
105 src/fortran/bexec.f \
106 src/fortran/savlod.f \
107 src/fortran/error.f \
108 src/fortran/cvdm.f \
109 src/fortran/mkindx.f \
110 src/fortran/whatln.f \
111 src/fortran/errmgr.f \
112 src/fortran/mklist.f \
113 src/fortran/indxg.f \
114 src/fortran/istrue.f \
115 src/fortran/extlarg.f \
116 src/fortran/lst2vars.f \
117 src/fortran/basnms.f \
118 src/fortran/ptrback.f \
119 src/fortran/getch.f \
120 src/fortran/ftob.f \
121 src/fortran/expsum.f \
122 src/fortran/copyvar.f \
123 src/fortran/putid.f \
124 src/fortran/itosci.f \
125 src/fortran/stackr2d.f \
126 src/fortran/stacki2d.f \
127 src/fortran/stackc2i.f \
128 src/fortran/isinstring.f \
129 src/fortran/read_inter.f \
130 src/fortran/rewind_inter.f \
131 src/fortran/backspace_inter.f
132
133 if USE_DYNAMIC_STACK
134 CORE_FORTRAN_SOURCES += src/fortran/relocstack.f
135 endif
136
137 GATEWAY_C_SOURCES = \
138         sci_gateway/c/gw_core.c \
139         sci_gateway/c/gw_user.c \
140         sci_gateway/c/gw_user2.c \
141         sci_gateway/c/sci_type.c \
142         sci_gateway/c/sci_getdebuginfo.c \
143         sci_gateway/c/gw_user2.c \
144         sci_gateway/c/sci_getvariablesonstack.c \
145         sci_gateway/c/sci_readgateway.c \
146         sci_gateway/c/sci_comp.c
147
148 GATEWAY_FORTRAN_SOURCES =  \
149 sci_gateway/fortran/where.f
150
151 GATEWAY_CPP_SOURCES =   \
152         sci_gateway/cpp/core_gw.cpp \
153         sci_gateway/cpp/sci_getmodules.cpp \
154         sci_gateway/cpp/sci_clear.cpp \
155         sci_gateway/cpp/sci_banner.cpp \
156         sci_gateway/cpp/sci_quit.cpp \
157         sci_gateway/cpp/sci_exit.cpp \
158         sci_gateway/cpp/sci_argn.cpp \
159         sci_gateway/cpp/sci_clearglobal.cpp \
160         sci_gateway/cpp/sci_global.cpp \
161         sci_gateway/cpp/sci_isglobal.cpp \
162         sci_gateway/cpp/sci_getscilabmode.cpp \
163         sci_gateway/cpp/sci_getos.cpp \
164         sci_gateway/cpp/sci_exists.cpp \
165         sci_gateway/cpp/sci_with_module.cpp \
166         sci_gateway/cpp/sci_lasterror.cpp \
167         sci_gateway/cpp/sci_getversion.cpp \
168         sci_gateway/cpp/sci_warning.cpp \
169         sci_gateway/cpp/sci_getmd5.cpp \
170         sci_gateway/cpp/sci_error.cpp \
171         sci_gateway/cpp/sci_pause.cpp \
172         sci_gateway/cpp/sci_abort.cpp \
173         sci_gateway/cpp/sci_who.cpp \
174         sci_gateway/cpp/sci_stacksize.cpp \
175         sci_gateway/cpp/sci_format.cpp \
176         sci_gateway/cpp/sci_sciargs.cpp \
177         sci_gateway/cpp/sci_ieee.cpp \
178         sci_gateway/cpp/sci_funcprot.cpp \
179         sci_gateway/cpp/sci_mode.cpp \
180         sci_gateway/cpp/sci_typename.cpp \
181         sci_gateway/cpp/sci_where.cpp \
182         sci_gateway/cpp/sci_getmemory.cpp
183         sci_gateway/cpp/sci_format.cpp \
184         sci_gateway/cpp/sci_sciargs.cpp \
185         sci_gateway/cpp/sci_ieee.cpp \
186         sci_gateway/cpp/sci_funcprot.cpp \
187         sci_gateway/cpp/sci_mode.cpp \
188         sci_gateway/cpp/sci_runASTwithVMKit.cpp
189
190 libscicore_la_CPPFLAGS = \
191 -I$(srcdir)/includes/ \
192 -I$(srcdir)/src/c/ \
193 -I$(srcdir)/src/cpp/ \
194 -I$(top_srcdir)/modules/intersci/includes/ \
195 -I$(top_srcdir)/modules/call_scilab/includes/ \
196 -I$(top_srcdir)/modules/api_scilab/includes/ \
197 -I$(top_srcdir)/modules/action_binding/includes/ \
198 -I$(top_srcdir)/modules/output_stream/includes/ \
199 -I$(top_srcdir)/modules/localization/includes/ \
200 -I$(top_srcdir)/modules/functions_manager/includes/ \
201 -I$(top_srcdir)/modules/elementary_functions/includes/ \
202 -I$(top_srcdir)/modules/ast/includes/ \
203 -I$(top_srcdir)/modules/parse/includes/ \
204 -I$(top_srcdir)/modules/symbol/includes/ \
205 -I$(top_srcdir)/modules/system_env/includes/ \
206 -I$(top_srcdir)/modules/types/includes/ \
207 -I$(top_srcdir)/modules/io/includes/ \
208 -I$(top_srcdir)/modules/tclsci/includes/ \
209 -I$(top_srcdir)/modules/dynamic_link/includes/ \
210 -I$(top_srcdir)/modules/elementary_functions/includes/ \
211 -I$(top_srcdir)/modules/string/includes/ \
212 -I$(top_srcdir)/modules/fileio/includes/ \
213 -I$(top_srcdir)/modules/operations/includes/ \
214 -I$(top_srcdir)/modules/console/includes/ \
215 -I$(top_srcdir)/modules/threads/includes/ \
216 -I$(top_srcdir)/modules/history_manager/includes/ \
217 -I$(top_srcdir)/modules/preferences/includes/ \
218 -I$(top_srcdir)/modules/external_objects/includes/ \
219 -I$(top_srcdir)/modules/jvm/includes/ \
220 -I$(top_srcdir)/modules/gui/includes/ \
221 -I$(top_srcdir)/modules/graphics/includes/ \
222 -I$(top_srcdir)/modules/system_env/includes/ \
223 $(EIGEN_CPPFLAGS) \
224 $(XML_FLAGS) \
225 $(AM_CPPFLAGS)
226
227 # Used by sci_getdebuginfo:
228 if TCLTK
229 libscicore_la_CPPFLAGS += $(TCL_INC_PATH) \
230                                   $(TK_INC_PATH)
231 endif
232
233 if MAINTAINER_MODE
234 pkglib_LTLIBRARIES = libscicore.la
235 noinst_LTLIBRARIES = libscicore-algo.la
236 else
237 noinst_LTLIBRARIES = libscicore-algo.la libscicore.la
238 endif
239
240
241 libscicore_la_LDFLAGS = $(XML_LIBS) $(AM_LDFLAGS)
242 #-Wl,--version-script,LibScilab_Import.def
243
244 # For the code check (splint)
245 CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
246 INCLUDE_FLAGS = $(libscicore_la_CPPFLAGS)
247
248 libscicore_algo_la_SOURCES = $(CORE_C_SOURCES) $(CORE_CPP_SOURCES) $(CORE_FORTRAN_SOURCES)
249 libscicore_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_CPP_SOURCES)
250 libscicore_algo_la_CPPFLAGS = $(libscicore_la_CPPFLAGS)
251
252 # Commented because it is easier to comment first the core module
253 libscicore_la_LIBADD = libscicore-algo.la
254
255 #### Target ######
256 modulename=core
257
258 #### core : Conf files ####
259 libscicore_la_rootdir = $(mydatadir)
260 libscicore_la_root_DATA =  license.txt
261
262
263 #### core : init scripts ####
264 libscicore_la_etcdir = $(mydatadir)/etc
265 libscicore_la_etc_DATA = etc/core.quit etc/core.start
266
267 #### core : gateway declaration ####
268 libscicore_la_sci_gatewaydir = $(mydatadir)/sci_gateway
269 libscicore_la_sci_gateway_DATA = sci_gateway/core_gateway.xml
270
271 #### core :  dtd files ####
272 libscicore_la_xmldir = $(mydatadir)/xml
273 libscicore_la_xml_DATA = xml/modules.dtd xml/version.dtd
274
275 #### core : include files ####
276 libscicore_la_includedir=$(pkgincludedir)
277 libscicore_la_include_HEADERS = \
278 includes/BOOL.h \
279 includes/core_math.h \
280 includes/ExceptionMessage.h \
281 includes/existfunction.h \
282 includes/freeArrayOfString.h \
283 includes/getcommandlineargs.h \
284 includes/getmemory.h \
285 includes/getos.h \
286 includes/machine.h \
287 includes/mode_exec.h \
288 includes/MALLOC.h \
289 includes/PATH_MAX.h \
290 includes/scilabDefaults.h \
291 includes/scisparse.h \
292 includes/stack-c.h \
293 includes/sci_types.h \
294 includes/stack-def.h \
295 includes/stack.h \
296 includes/stack1.h \
297 includes/stack2.h \
298 includes/stack3.h \
299 includes/stackinfo.h \
300 includes/stackTypeVariable.h \
301 includes/version.h \
302 includes/getversion.h \
303 includes/backtrace_print.h \
304 includes/sci_mem_alloc.h \
305 includes/hashtable.h \
306 includes/hashtable_utility.h
307
308
309 if GUI
310 USEANT=1
311 endif
312
313
314 include $(top_srcdir)/Makefile.incl.am