7ee5310cf0e8054c428d2c584edcd5a47408f8fe
[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/fromjava.c \
17 src/c/run.c \
18 src/c/InitScilab.c \
19 src/c/getval.c \
20 src/c/md5.c \
21 src/c/inisci-c.c \
22 src/c/IsAScalar.c \
23 src/c/texmacs.c \
24 src/c/sciquit.c \
25 src/c/stack1.c \
26 src/c/scicurdir.c \
27 src/c/realmain.c \
28 src/c/stack3.c \
29 src/c/str2sci.c \
30 src/c/cluni0.c \
31 src/c/getmodules.c \
32 src/c/fromc.c \
33 src/c/setgetSCIpath.c \
34 src/c/getmemory.c \
35 src/c/Funtab.c \
36 src/c/csignal.c \
37 src/c/prompt.c \
38 src/c/CallScilab.c \
39 src/c/callinterf.c \
40 src/c/SendScilabJobs.c \
41 src/c/scimem.c \
42 src/c/banier.c \
43 src/c/isanan.c \
44 src/c/parse.c \
45 src/c/timer.c \
46 src/c/stack2.c \
47 src/c/xscion.c \
48 src/c/SetScilabEnvironment.c \
49 src/c/hashtable_core.c \
50 src/c/returnanan.c \
51 src/c/LoadFunctionsTab.c \
52 src/c/with_module.c \
53 src/c/loadversion.c \
54 src/c/version.c \
55 src/c/stackinfo.c \
56 src/c/scirun.c \
57 src/c/SCIHOME.c \
58 src/c/warningmode.c \
59 src/c/InitializeCore.c \
60 src/c/TerminateCore.c \
61 src/c/coretable.c \
62 src/c/returnProperty.c \
63 src/c/returnPropertyList.c \
64 src/c/scilabmode.c \
65 src/c/GetXmlFileEncoding.c \
66 src/c/GetenvB.c \
67 src/c/islittleendian.c \
68 src/c/terme.c \
69 src/c/ifexpr.c \
70 src/c/expr.c \
71 src/c/getcommandlineargs.c \
72 src/c/syncexec.c \
73 src/c/callFunctionFromGateway.c \
74 src/c/librarieslist.c \
75 src/c/libraryinfo.c \
76 src/c/getvariablesname.c \
77 src/c/commandwords.c \
78 src/c/freeArrayOfString.c \
79 src/c/getstaticdebuginfo.c \
80 src/c/getdynamicdebuginfo.c \
81 src/c/callDynamicGateway.c \
82 src/c/gw_dynamic_generic.c \
83 src/c/dynamic_gateways.c \
84 src/c/readGateway.c \
85 src/c/comparehandles.c \
86 src/c/setPrecisionFPU.c \
87 src/c/LaunchScilabSignal.c \
88 src/c/getos.c
89
90 if USE_DYNAMIC_STACK
91 CORE_C_SOURCES += src/c/scimem64.c
92 endif
93
94
95 CORE_FORTRAN_SOURCES = src/fortran/algebre.f \
96 src/fortran/clunit.f \
97 src/fortran/getlin.f \
98 src/fortran/allowptr.f \
99 src/fortran/dldsp.f \
100 src/fortran/isany.f \
101 src/fortran/hmcreate.f \
102 src/fortran/nextj.f \
103 src/fortran/functionsforbasout.f \
104 src/fortran/setgetmode.f \
105 src/fortran/showstack.f \
106 src/fortran/misops.f \
107 src/fortran/iseye.f \
108 src/fortran/chkvar.f \
109 src/fortran/setippty.f \
110 src/fortran/compil.f \
111 src/fortran/funnam.f \
112 src/fortran/isnum.f \
113 src/fortran/cmdstr.f \
114 src/fortran/logops.f \
115 src/fortran/atome.f \
116 src/fortran/hndlops.f \
117 src/fortran/cmplxt.f \
118 src/fortran/skpins.f \
119 src/fortran/folhp.f \
120 src/fortran/cvname.f \
121 src/fortran/funs.f \
122 src/fortran/fact.f \
123 src/fortran/inibrk.f \
124 src/fortran/typ2cod.f \
125 src/fortran/prompt.f \
126 src/fortran/intstr.f \
127 src/fortran/createref.f \
128 src/fortran/btof.f \
129 src/fortran/matzs.f \
130 src/fortran/getnum.f \
131 src/fortran/btofm.f \
132 src/fortran/getsym.f \
133 src/fortran/findequal.f \
134 src/fortran/stackg.f \
135 src/fortran/find.f \
136 src/fortran/israt.f \
137 src/fortran/setlnb.f \
138 src/fortran/mrknmd.f \
139 src/fortran/stackgl.f \
140 src/fortran/allops.f \
141 src/fortran/print.f \
142 src/fortran/mname.f \
143 src/fortran/prntid.f \
144 src/fortran/command.f \
145 src/fortran/ref2val.f \
146 src/fortran/namstr.f \
147 src/fortran/stack.f \
148 src/fortran/isbrk.f \
149 src/fortran/majmin.f \
150 src/fortran/dmdspf.f \
151 src/fortran/xerbla.f \
152 src/fortran/dtosci.f \
153 src/fortran/bexec.f \
154 src/fortran/varfunptr.f \
155 src/fortran/getfun.f \
156 src/fortran/savlod.f \
157 src/fortran/error.f \
158 src/fortran/cvdm.f \
159 src/fortran/tradsl.f \
160 src/fortran/mkindx.f \
161 src/fortran/whatln.f \
162 src/fortran/errmgr.f \
163 src/fortran/defmat.f \
164 src/fortran/mklist.f \
165 src/fortran/dmdsp.f \
166 src/fortran/sigbas.f \
167 src/fortran/indxg.f \
168 src/fortran/matz.f \
169 src/fortran/istrue.f \
170 src/fortran/inisci.f \
171 src/fortran/ptover.f \
172 src/fortran/getfunction.f \
173 src/fortran/stackp.f \
174 src/fortran/dbasin.f \
175 src/fortran/macro.f \
176 src/fortran/lspdsp.f \
177 src/fortran/extlarg.f \
178 src/fortran/getstr.f \
179 src/fortran/cvwm.f \
180 src/fortran/storeglobal.f \
181 src/fortran/lst2vars.f \
182 src/fortran/fmttyp.f \
183 src/fortran/basnms.f \
184 src/fortran/matc.f \
185 src/fortran/ptrback.f \
186 src/fortran/getch.f \
187 src/fortran/ftob.f \
188 src/fortran/seteol.f \
189 src/fortran/basin.f \
190 src/fortran/clause.f \
191 src/fortran/compcl.f \
192 src/fortran/termf.f \
193 src/fortran/expsum.f \
194 src/fortran/eqid.f \
195 src/fortran/copyvar.f \
196 src/fortran/putid.f \
197 src/fortran/itosci.f \
198 src/fortran/formatnumber.f \
199 src/fortran/wmdsp.f \
200 src/fortran/stackr2d.f \
201 src/fortran/stacki2d.f \
202 src/fortran/stackc2i.f \
203 src/fortran/isinstring.f \
204 src/fortran/promptecho.f
205
206 if USE_DYNAMIC_STACK
207 CORE_FORTRAN_SOURCES += src/fortran/relocstack.f
208 endif
209
210 GATEWAY_C_SOURCES = sci_gateway/c/sci_stacksize.c \
211 sci_gateway/c/sci_resume.c \
212 sci_gateway/c/sci_mtlb_mode.c \
213 sci_gateway/c/sci_banner.c \
214 sci_gateway/c/sci_where.c \
215 sci_gateway/c/sci_errcatch.c \
216 sci_gateway/c/sci_getos.c \
217 sci_gateway/c/sci_format.c \
218 sci_gateway/c/sci_fromjava.c \
219 sci_gateway/c/sci_getmemory.c \
220 sci_gateway/c/sci_fromc.c \
221 sci_gateway/c/sci_havewindow.c \
222 sci_gateway/c/sci_delbpt.c \
223 sci_gateway/c/sci_macr2lst.c \
224 sci_gateway/c/sci_isdef.c \
225 sci_gateway/c/sci_isglobal.c \
226 sci_gateway/c/sci_who.c \
227 sci_gateway/c/sci_errclear.c \
228 sci_gateway/c/sci_global.c \
229 sci_gateway/c/sci_funcprot.c \
230 sci_gateway/c/sci_newfun.c \
231 sci_gateway/c/sci_warning.c \
232 sci_gateway/c/sci_dispbpt.c \
233 sci_gateway/c/sci_whereis.c \
234 sci_gateway/c/sci_intppty.c \
235 sci_gateway/c/sci_ieee.c \
236 sci_gateway/c/sci_gstacksize.c \
237 sci_gateway/c/sci_lasterror.c \
238 sci_gateway/c/sci_funptr.c \
239 sci_gateway/c/sci_return.c \
240 sci_gateway/c/sci_exists.c \
241 sci_gateway/c/sci_getmd5.c \
242 sci_gateway/c/sci_clear.c \
243 sci_gateway/c/sci_chdir.c \
244 sci_gateway/c/sci_comp.c \
245 sci_gateway/c/sci_clearfun.c \
246 sci_gateway/c/sci_setbpt.c \
247 sci_gateway/c/sci_getmodules.c \
248 sci_gateway/c/sci_what.c \
249 sci_gateway/c/sci_predef.c \
250 sci_gateway/c/sci_clearglobal.c \
251 sci_gateway/c/sci_arg.c \
252 sci_gateway/c/sci_getcwd.c \
253 sci_gateway/c/sci_type.c \
254 sci_gateway/c/sci_typename.c \
255 sci_gateway/c/sci_mode.c \
256 sci_gateway/c/sci_macr2tree.c \
257 sci_gateway/c/sci_iserror.c \
258 sci_gateway/c/sci_getversion.c \
259 sci_gateway/c/sci_getdebuginfo.c \
260 sci_gateway/c/sci_debug.c \
261 sci_gateway/c/gw_core.c \
262 sci_gateway/c/gw_user.c \
263 sci_gateway/c/gw_user2.c \
264 sci_gateway/c/sci_error.c \
265 sci_gateway/c/sci_sciargs.c \
266 sci_gateway/c/sci_with_module.c \
267 sci_gateway/c/sci_islittleendian.c \
268 sci_gateway/c/sci_getscilabmode.c \
269 sci_gateway/c/sci_librarieslist.c \
270 sci_gateway/c/sci_libraryinfo.c \
271 sci_gateway/c/sci_getvariablesonstack.c \
272 sci_gateway/c/sci_readgateway.c
273
274 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_errclear.f \
275 sci_gateway/fortran/sci_funcprot.f \
276 sci_gateway/fortran/sci_global.f \
277 sci_gateway/fortran/sci_mtlb_mode.f \
278 sci_gateway/fortran/sci_resume.f \
279 sci_gateway/fortran/sci_dispbpt.f \
280 sci_gateway/fortran/sci_useascommand.f \
281 sci_gateway/fortran/sci_whereis.f \
282 sci_gateway/fortran/sci_intppty.f \
283 sci_gateway/fortran/sci_ieee.f \
284 sci_gateway/fortran/sci_macrovar.f \
285 sci_gateway/fortran/sci_funptr.f \
286 sci_gateway/fortran/sci_exists.f \
287 sci_gateway/fortran/sci_errcatch.f \
288 sci_gateway/fortran/sci_clear.f \
289 sci_gateway/fortran/sci_argn.f \
290 sci_gateway/fortran/sci_comp.f \
291 sci_gateway/fortran/sci_setbpt.f \
292 sci_gateway/fortran/sci_predef.f \
293 sci_gateway/fortran/sci_typnam.f \
294 sci_gateway/fortran/sci_clearglobal.f \
295 sci_gateway/fortran/sci_delbpt.f \
296 sci_gateway/fortran/where.f \
297 sci_gateway/fortran/sci_iserror.f \
298 sci_gateway/fortran/sci_type.f \
299 sci_gateway/fortran/sci_mode.f \
300 sci_gateway/fortran/sci_debug.f \
301 sci_gateway/fortran/sci_isglobal.f
302
303 libscicore_la_CFLAGS = -I$(srcdir)/includes/ \
304                         -I$(srcdir)/src/c/ \
305                         -I$(top_srcdir)/libs/MALLOC/includes/ \
306             -I$(top_srcdir)/libs/dynamiclibrary/includes/ \
307                         -I$(top_srcdir)/libs/doublylinkedlist/includes \
308             -I$(top_srcdir)/modules/intersci/includes \
309             -I$(top_srcdir)/modules/action_binding/includes \
310                         -I$(top_srcdir)/modules/output_stream/includes \
311                         -I$(top_srcdir)/modules/localization/includes \
312                         -I$(top_srcdir)/modules/tclsci/includes \
313                 -I$(top_srcdir)/modules/dynamic_link/includes \
314                 -I$(top_srcdir)/modules/pvm/includes \
315                         -I$(top_srcdir)/modules/elementary_functions/includes \
316             -I$(top_srcdir)/modules/string/includes \
317             -I$(top_srcdir)/modules/fileio/includes \
318                         $(XML_FLAGS)
319
320
321
322 # Used by sci_getdebuginfo:
323 if TCLTK
324 libscicore_la_CFLAGS +=   $(TCL_INC_PATH) \
325                                   $(TK_INC_PATH)
326 endif
327
328 pkglib_LTLIBRARIES = libscicore.la
329
330 libscicore_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(XML_LIBS)
331
332 # For the code check (splint)
333 CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
334 INCLUDE_FLAGS = $(libscicore_la_CFLAGS)
335
336 libscicore_la_SOURCES = $(CORE_C_SOURCES) $(CORE_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(JNI_SOURCES)
337
338 # Commented because it is easier to comment first the core module
339 #´┐Żlibscicore_la_LIBADD =  $(top_builddir)/modules/io/libsciio.la $(top_builddir)/modules/fftw/libscifftw.la $(top_builddir)/modules/console/libsciconsole.la $(top_builddir)/modules/special_functions/libscispecial_functions.la $(top_builddir)/modules/cacsd/libscicacsd.la $(top_builddir)/modules/polynomials/libscipolynomials.la $(top_builddir)/modules/data_structures/libscidata_structures.la $(top_builddir)/modules/boolean/libsciboolean.la $(top_builddir)/modules/dynamic_link/libscidynamic_link.la $(top_builddir)/modules/randlib/libscirandlib.la $(top_builddir)/modules/localization/libscilocalization.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/signal_processing/libscisignal_processing.la $(top_builddir)/modules/completion/libscicompletion.la $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/differential_equations/libscidifferential_equations.la $(top_builddir)/modules/tclsci/libscitclsci.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/shell/libscishell.la $(top_builddir)/modules/pvm/libscipvm.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/double/libscidouble.la $(top_builddir)/modules/sound/libscisound.la $(top_builddir)/modules/intersci/libsciintersci.la $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/graphic_export/libscigraphic_export.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/spreadsheet/libscispreadsheet.la $(top_builddir)/modules/gui/libscigui.la $(top_builddir)/modules/history_manager/libscihistory_manager.la $(top_builddir)/modules/time/libscitime.la $(top_builddir)/modules/metanet/libscimetanet.la $(top_builddir)/modules/windows_tools/libsciwindows_tools.la $(top_builddir)/modules/interpolation/libsciinterpolation.la $(top_builddir)/modules/symbolic/libscisymbolic.la $(top_builddir)/libs/blas/libsciblas.la $(top_builddir)/modules/statistics/libscistatistics.la $(top_builddir)/modules/jvm/libscijvm.la $(top_builddir)/modules/sparse/libscisparse.la $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la $(top_builddir)/modules/optimization/libscioptimization.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/lapack/libscilapack.la
340
341 #### Target ######
342 modulename=core
343
344 #### core : Conf files ####
345 libscicore_la_rootdir = $(mydatadir)
346 libscicore_la_root_DATA = changelog.txt license.txt readme.txt version.xml
347
348
349 #### core : init scripts ####
350 libscicore_la_etcdir = $(mydatadir)/etc
351 libscicore_la_etc_DATA = etc/core.quit etc/core.start
352
353 #### core : gateway declaration ####
354 libscicore_la_sci_gatewaydir = $(mydatadir)/sci_gateway
355 libscicore_la_sci_gateway_DATA = sci_gateway/core_gateway.xml
356
357 #### core :  dtd files ####
358 libscicore_la_xmldir = $(mydatadir)/xml
359 libscicore_la_xml_DATA = xml/modules.dtd xml/version.dtd
360
361 #### core : include files ####
362 libscicore_la_includedir=$(pkgincludedir)/core
363 libscicore_la_include_HEADERS = \
364 includes/BOOL.h \
365 includes/callFunctionFromGateway.h \
366 includes/callinter.h \
367 includes/callinterf.h \
368 includes/CallScilab.h \
369 includes/cluni0.h \
370 includes/commandwords.h \
371 includes/core_math.h \
372 includes/doublecomplex.h \
373 includes/ExceptionMessage.h \
374 includes/existfunction.h \
375 includes/freeArrayOfString.h \
376 includes/fromjava.h \
377 includes/Funtab.h \
378 includes/getcommandlineargs.h \
379 includes/GetenvB.h \
380 includes/GetExceptionCode.h \
381 includes/getfunctionslist.h \
382 includes/getmemory.h \
383 includes/getmodules.h \
384 includes/getvariablesname.h \
385 includes/GetXmlFileEncoding.h \
386 includes/gw_core.h \
387 includes/gw_user.h \
388 includes/gw_user2.h \
389 includes/inffic.h \
390 includes/inisci-c.h \
391 includes/InitializeCore.h \
392 includes/intmacr2tree.h \
393 includes/isanan.h \
394 includes/IsAScalar.h \
395 includes/islittleendian.h \
396 includes/librarieslist.h \
397 includes/libraryinfo.h \
398 includes/loadversion.h \
399 includes/machine.h \
400 includes/machine.h.in \
401 includes/machine.h.vc \
402 includes/Os_specific.h \
403 includes/PARAMS.h \
404 includes/PATH_MAX.h \
405 includes/prompt.h \
406 includes/realmain.h \
407 includes/returnanan.h \
408 includes/returnProperty.h \
409 includes/returnPropertyList.h \
410 includes/SCIHOME.h \
411 includes/scilabDefaults.h \
412 includes/scilabmode.h \
413 includes/scimem.h \
414 includes/sciquit.h \
415 includes/scirun.h \
416 includes/setgetSCIpath.h \
417 includes/SetScilabEnvironment.h \
418 includes/sigbas.h \
419 includes/stack-c.h \
420 includes/stack-def.h \
421 includes/stack.h \
422 includes/stack1.h \
423 includes/stack2.h \
424 includes/stack3.h \
425 includes/stackinfo.h \
426 includes/stackTypeVariable.h \
427 includes/stamp-h1 \
428 includes/syncexec.h \
429 includes/scisparse.h \
430 includes/texmacs.h \
431 includes/timerEvents.h \
432 includes/tmpdir.h \
433 includes/version.h \
434 includes/warningmode.h \
435 includes/x_main.h \
436 includes/xscion.h \
437 includes/Thread_Wrapper.h \
438 includes/setPrecisionFPU.h \
439 includes/LaunchScilabSignal.h \
440 includes/getos.h
441
442 include $(top_srcdir)/Makefile.incl.am