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