Merge remote-tracking branch 'origin/master' into YaSp
[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-en.txt
9
10
11 CORE_C_SOURCES = \
12 src/c/inffic.c \
13 src/c/cs2st.c \
14 src/c/intmacr2tree.c \
15 src/c/InitScilab.c \
16 src/c/getval.c \
17 src/c/md5.c \
18 src/c/inisci-c.c \
19 src/c/IsAScalar.c \
20 src/c/texmacs.c \
21 src/c/sciquit.c \
22 src/c/stack1.c \
23 src/c/stack3.c \
24 src/c/str2sci.c \
25 src/c/getmodules.c \
26 src/c/getmemory.c \
27 src/c/Funtab.c \
28 src/c/csignal.c \
29 src/c/callinterf.c \
30 src/c/scimem.c \
31 src/c/isanan.c \
32 src/c/timer.c \
33 src/c/stack2.c \
34 src/c/xscion.c \
35 src/c/returnanan.c \
36 src/c/LoadFunctionsTab.c \
37 src/c/loadversion.c \
38 src/c/version.c \
39 src/c/stackinfo.c \
40 src/c/InitializeCore.c \
41 src/c/TerminateCore.c \
42 src/c/coretable.c \
43 src/c/GetXmlFileEncoding.c \
44 src/c/islittleendian.c \
45 src/c/terme.c \
46 src/c/ifexpr.c \
47 src/c/getcommandlineargs.c \
48 src/c/callFunctionFromGateway.c \
49 src/c/getvariablesname.c \
50 src/c/commandwords.c \
51 src/c/freeArrayOfString.c \
52 src/c/getstaticdebuginfo.c \
53 src/c/getdynamicdebuginfo.c \
54 src/c/gw_dynamic_generic.c \
55 src/c/dynamic_gateways.c \
56 src/c/readGateway.c \
57 src/c/comparehandles.c \
58 src/c/setPrecisionFPU.c \
59 src/c/LaunchScilabSignal.c \
60 src/c/getos.c \
61 src/c/mode_exec.c \
62 src/c/predef.c \
63 src/c/transposeMatrix.c \
64 src/c/recursionFunction.c \
65 src/c/typename.c \
66 src/c/inittypenames.c \
67 src/c/funcprot.c \
68 src/c/eqid.c \
69 src/c/exitCodeValue.c \
70 src/c/getversion.c \
71 src/c/dynamic_tclsci.c \
72 src/c/dynamic_parallel.c \
73 src/c/backtrace.c \
74 src/c/signal_mgmt.c \
75 src/c/suspendProcess.c \
76 src/c/windowsChangeManagement.c \
77 src/c/setlines.c \
78 src/c/setformat.c \
79 src/c/InitializePreferences.c
80
81 CORE_CPP_SOURCES = \
82 src/cpp/core_gw.cpp \
83 src/cpp/hashtable_core.cpp \
84 src/cpp/namstr.cpp \
85 src/cpp/search_functions.cpp \
86 src/cpp/demangle.cpp \
87 src/cpp/backtrace_print.cpp \
88 src/cpp/storeCommand.cpp \
89 src/cpp/banner.cpp \
90 src/cpp/with_module.cpp \
91 src/cpp/runner.cpp
92
93 if USE_DYNAMIC_STACK
94 CORE_C_SOURCES += src/c/scimem64.c
95 endif
96
97 CORE_FORTRAN_SOURCES = src/fortran/clunit.f \
98 src/fortran/getlin.f \
99 src/fortran/allowptr.f \
100 src/fortran/isany.f \
101 src/fortran/hmcreate.f \
102 src/fortran/nextj.f \
103 src/fortran/setgetmode.f \
104 src/fortran/showstack.f \
105 src/fortran/setippty.f \
106 src/fortran/compil.f \
107 src/fortran/funnam.f \
108 src/fortran/isnum.f \
109 src/fortran/cmdstr.f \
110 src/fortran/hndlops.f \
111 src/fortran/cmplxt.f \
112 src/fortran/skpins.f \
113 src/fortran/folhp.f \
114 src/fortran/cvname.f \
115 src/fortran/typ2cod.f \
116 src/fortran/prompt.f \
117 src/fortran/intstr.f \
118 src/fortran/createref.f \
119 src/fortran/btof.f \
120 src/fortran/getnum.f \
121 src/fortran/btofm.f \
122 src/fortran/getsym.f \
123 src/fortran/findequal.f \
124 src/fortran/stackg.f \
125 src/fortran/find.f \
126 src/fortran/setlnb.f \
127 src/fortran/mrknmd.f \
128 src/fortran/ref2val.f \
129 src/fortran/stack.f \
130 src/fortran/isbrk.f \
131 src/fortran/xerbla.f \
132 src/fortran/dtosci.f \
133 src/fortran/bexec.f \
134 src/fortran/varfunptr.f \
135 src/fortran/getfun.f \
136 src/fortran/savlod.f \
137 src/fortran/error.f \
138 src/fortran/cvdm.f \
139 src/fortran/tradsl.f \
140 src/fortran/mkindx.f \
141 src/fortran/whatln.f \
142 src/fortran/errmgr.f \
143 src/fortran/defmat.f \
144 src/fortran/mklist.f \
145 src/fortran/sigbas.f \
146 src/fortran/indxg.f \
147 src/fortran/istrue.f \
148 src/fortran/inisci.f \
149 src/fortran/getfunction.f \
150 src/fortran/extlarg.f \
151 src/fortran/getstr.f \
152 src/fortran/cvwm.f \
153 src/fortran/storeglobal.f \
154 src/fortran/lst2vars.f \
155 src/fortran/basnms.f \
156 src/fortran/ptrback.f \
157 src/fortran/getch.f \
158 src/fortran/ftob.f \
159 src/fortran/seteol.f \
160 src/fortran/compcl.f \
161 src/fortran/termf.f \
162 src/fortran/expsum.f \
163 src/fortran/copyvar.f \
164 src/fortran/putid.f \
165 src/fortran/itosci.f \
166 src/fortran/stackr2d.f \
167 src/fortran/stacki2d.f \
168 src/fortran/stackc2i.f \
169 src/fortran/isinstring.f
170
171 if USE_DYNAMIC_STACK
172 CORE_FORTRAN_SOURCES += src/fortran/relocstack.f
173 endif
174
175 GATEWAY_C_SOURCES = \
176         sci_gateway/c/sci_mtlb_mode.c \
177         sci_gateway/c/sci_where.c \
178         sci_gateway/c/sci_errcatch.c \
179         sci_gateway/c/sci_getmemory.c \
180         sci_gateway/c/sci_havewindow.c \
181         sci_gateway/c/sci_delbpt.c \
182         sci_gateway/c/sci_macr2lst.c \
183         sci_gateway/c/sci_errclear.c \
184         sci_gateway/c/sci_funcprot.c \
185         sci_gateway/c/sci_newfun.c \
186         sci_gateway/c/sci_dispbpt.c \
187         sci_gateway/c/sci_intppty.c \
188         sci_gateway/c/sci_gstacksize.c \
189         sci_gateway/c/sci_funptr.c \
190         sci_gateway/c/sci_return.c \
191         sci_gateway/c/sci_clearfun.c \
192         sci_gateway/c/sci_setbpt.c \
193         sci_gateway/c/sci_what.c \
194         sci_gateway/c/sci_predef.c \
195         sci_gateway/c/sci_type.c \
196         sci_gateway/c/sci_typename.c \
197         sci_gateway/c/sci_mode.c \
198         sci_gateway/c/sci_macr2tree.c \
199         sci_gateway/c/sci_iserror.c \
200         sci_gateway/c/sci_getdebuginfo.c \
201         sci_gateway/c/sci_debug.c \
202         sci_gateway/c/gw_core.c \
203         sci_gateway/c/gw_user.c \
204         sci_gateway/c/gw_user2.c \
205         sci_gateway/c/sci_getvariablesonstack.c \
206         sci_gateway/c/sci_readgateway.c \
207         sci_gateway/c/sci_comp.c
208
209 GATEWAY_FORTRAN_SOURCES =  \
210 sci_gateway/fortran/sci_f_mtlb_mode.f \
211 sci_gateway/fortran/sci_f_dispbpt.f \
212 sci_gateway/fortran/sci_f_intppty.f \
213 sci_gateway/fortran/sci_f_macrovar.f \
214 sci_gateway/fortran/sci_f_errcatch.f \
215 sci_gateway/fortran/sci_f_setbpt.f \
216 sci_gateway/fortran/sci_f_delbpt.f \
217 sci_gateway/fortran/where.f \
218 sci_gateway/fortran/sci_f_iserror.f
219
220 GATEWAY_CPP_SOURCES =   \
221         sci_gateway/cpp/sci_getmodules.cpp \
222         sci_gateway/cpp/sci_clear.cpp \
223         sci_gateway/cpp/sci_banner.cpp \
224         sci_gateway/cpp/sci_quit.cpp \
225         sci_gateway/cpp/sci_exit.cpp \
226         sci_gateway/cpp/sci_argn.cpp \
227         sci_gateway/cpp/sci_clearglobal.cpp \
228         sci_gateway/cpp/sci_global.cpp \
229         sci_gateway/cpp/sci_isglobal.cpp \
230         sci_gateway/cpp/sci_getscilabmode.cpp \
231         sci_gateway/cpp/sci_getos.cpp \
232         sci_gateway/cpp/sci_exists.cpp \
233         sci_gateway/cpp/sci_with_module.cpp \
234         sci_gateway/cpp/sci_lasterror.cpp \
235         sci_gateway/cpp/sci_getversion.cpp \
236         sci_gateway/cpp/sci_warning.cpp \
237         sci_gateway/cpp/sci_getmd5.cpp \
238         sci_gateway/cpp/sci_error.cpp \
239         sci_gateway/cpp/sci_pause.cpp \
240         sci_gateway/cpp/sci_resume.cpp \
241         sci_gateway/cpp/sci_abort.cpp \
242         sci_gateway/cpp/sci_who.cpp \
243         sci_gateway/cpp/sci_stacksize.cpp \
244         sci_gateway/cpp/sci_format.cpp \
245         sci_gateway/cpp/sci_sciargs.cpp \
246         sci_gateway/cpp/sci_ieee.cpp
247
248
249 libscicore_la_CPPFLAGS = -I$(srcdir)/includes/ \
250         -I$(srcdir)/src/c/ \
251         -I$(top_srcdir)/libs/MALLOC/includes/ \
252         -I$(top_srcdir)/libs/dynamiclibrary/includes/ \
253         -I$(top_srcdir)/libs/doublylinkedlist/includes/ \
254         -I$(top_srcdir)/modules/intersci/includes/ \
255         -I$(top_srcdir)/modules/call_scilab/includes/ \
256         -I$(top_srcdir)/modules/api_scilab/includes/ \
257         -I$(top_srcdir)/modules/action_binding/includes/ \
258         -I$(top_srcdir)/modules/output_stream/includes/ \
259         -I$(top_srcdir)/modules/localization/includes/ \
260         -I$(top_srcdir)/modules/functions_manager/includes/ \
261         -I$(top_srcdir)/modules/elementary_functions/includes/ \
262         -I$(top_srcdir)/modules/ast/includes/ \
263         -I$(top_srcdir)/modules/parse/includes/ \
264         -I$(top_srcdir)/modules/symbol/includes/ \
265         -I$(top_srcdir)/modules/system_env/includes/ \
266         -I$(top_srcdir)/modules/types/includes/ \
267         -I$(top_srcdir)/modules/io/includes/ \
268         -I$(top_srcdir)/modules/tclsci/includes/ \
269         -I$(top_srcdir)/modules/dynamic_link/includes/ \
270         -I$(top_srcdir)/modules/elementary_functions/includes/ \
271         -I$(top_srcdir)/modules/string/includes/ \
272         -I$(top_srcdir)/modules/fileio/includes/ \
273         -I$(top_srcdir)/modules/operations/includes/ \
274         -I$(top_srcdir)/modules/console/includes/ \
275         -I$(top_srcdir)/modules/threads/includes/ \
276         -I$(top_srcdir)/modules/history_manager/includes/ \
277         -I$(top_srcdir)/modules/preferences/includes/ \
278         -I$(top_srcdir)/modules/external_objects/includes/ \
279         $(EIGEN_CPPFLAGS) \
280         $(XML_FLAGS) \
281         $(AM_CPPFLAGS)
282
283 # Used by sci_getdebuginfo:
284 if TCLTK
285 libscicore_la_CPPFLAGS += $(TCL_INC_PATH) \
286                                   $(TK_INC_PATH)
287 endif
288
289 if MAINTAINER_MODE
290 pkglib_LTLIBRARIES = libscicore.la
291 noinst_LTLIBRARIES = libscicore-algo.la
292 else
293 noinst_LTLIBRARIES = libscicore-algo.la libscicore.la
294 endif
295
296
297 libscicore_la_LDFLAGS = $(XML_LIBS) $(AM_LDFLAGS)
298 #-Wl,--version-script,LibScilab_Import.def
299
300 # For the code check (splint)
301 CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
302 INCLUDE_FLAGS = $(libscicore_la_CPPFLAGS)
303
304 libscicore_algo_la_SOURCES = $(CORE_C_SOURCES) $(CORE_CPP_SOURCES) $(CORE_FORTRAN_SOURCES)
305 libscicore_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_CPP_SOURCES)
306 libscicore_algo_la_CPPFLAGS = $(libscicore_la_CPPFLAGS)
307
308 # Commented because it is easier to comment first the core module
309 libscicore_la_LIBADD = libscicore-algo.la
310
311 #### Target ######
312 modulename=core
313
314 #### core : Conf files ####
315 libscicore_la_rootdir = $(mydatadir)
316 libscicore_la_root_DATA =  license.txt
317
318
319 #### core : init scripts ####
320 libscicore_la_etcdir = $(mydatadir)/etc
321 libscicore_la_etc_DATA = etc/core.quit etc/core.start
322
323 #### core : gateway declaration ####
324 libscicore_la_sci_gatewaydir = $(mydatadir)/sci_gateway
325 libscicore_la_sci_gateway_DATA = sci_gateway/core_gateway.xml
326
327 #### core :  dtd files ####
328 libscicore_la_xmldir = $(mydatadir)/xml
329 libscicore_la_xml_DATA = xml/modules.dtd xml/version.dtd
330
331 #### core : include files ####
332 libscicore_la_includedir=$(pkgincludedir)
333 libscicore_la_include_HEADERS = \
334 includes/BOOL.h \
335 includes/core_math.h \
336 includes/ExceptionMessage.h \
337 includes/existfunction.h \
338 includes/freeArrayOfString.h \
339 includes/getcommandlineargs.h \
340 includes/getmemory.h \
341 includes/getos.h \
342 includes/machine.h \
343 includes/mode_exec.h \
344 includes/PATH_MAX.h \
345 includes/scilabDefaults.h \
346 includes/scisparse.h \
347 includes/sciquit.h \
348 includes/stack-c.h \
349 includes/sci_types.h \
350 includes/stack-def.h \
351 includes/stack.h \
352 includes/stack1.h \
353 includes/stack2.h \
354 includes/stack3.h \
355 includes/stackinfo.h \
356 includes/stackTypeVariable.h \
357 includes/version.h \
358 includes/getversion.h \
359 includes/backtrace_print.h
360
361 if GUI
362 USEANT=1
363 endif
364
365
366 include $(top_srcdir)/Makefile.incl.am