72465f961c29fe15f236292e8f431dc9e0dd36ca
[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/comparehandles.c \
40     src/c/setPrecisionFPU.c \
41     src/c/LaunchScilabSignal.c \
42     src/c/getos.c \
43     src/c/mode_exec.c \
44     src/c/transposeMatrix.c \
45     src/c/recursionFunction.c \
46     src/c/eqid.c \
47     src/c/exitCodeValue.c \
48     src/c/getversion.c \
49     src/c/dynamic_tclsci.c \
50     src/c/dynamic_parallel.c \
51     src/c/backtrace.c \
52     src/c/signal_mgmt.c \
53     src/c/suspendProcess.c \
54     src/c/setlines.c \
55     src/c/setformat.c \
56     src/c/InitializePreferences.c \
57     src/c/saveCWDInPreferences.c \
58     src/c/sci_tools.c \
59     src/c/getmaxMALLOC.c \
60     src/c/sci_mem_alloc.c \
61     src/c/hashtable/hashtable.c \
62     src/c/hashtable/hashtable_utility.c \
63     src/c/scimem64.c
64
65 CORE_CPP_SOURCES = \
66     src/cpp/namstr.cpp \
67     src/cpp/demangle.cpp \
68     src/cpp/backtrace_print.cpp \
69     src/cpp/storeCommand.cpp \
70     src/cpp/banner.cpp \
71     src/cpp/with_module.cpp \
72     src/cpp/runner.cpp \
73     src/cpp/tasks.cpp \
74     src/cpp/getvariablesname.cpp \
75     src/cpp/getmacrosname.cpp \
76     src/cpp/getfunctionsname.cpp \
77     src/cpp/InitScilab.cpp
78
79 CORE_FORTRAN_SOURCES = \
80     src/fortran/clunit.f \
81     src/fortran/getlin.f \
82     src/fortran/allowptr.f \
83     src/fortran/isany.f \
84     src/fortran/setgetmode.f \
85     src/fortran/showstack.f \
86     src/fortran/setippty.f \
87     src/fortran/cmplxt.f \
88     src/fortran/folhp.f \
89     src/fortran/cvname.f \
90     src/fortran/prompt.f \
91     src/fortran/intstr.f \
92     src/fortran/createref.f \
93     src/fortran/btof.f \
94     src/fortran/btofm.f \
95     src/fortran/find.f \
96     src/fortran/ref2val.f \
97     src/fortran/isbrk.f \
98     src/fortran/xerbla.f \
99     src/fortran/dtosci.f \
100     src/fortran/bexec.f \
101     src/fortran/savlod.f \
102     src/fortran/error.f \
103     src/fortran/cvdm.f \
104     src/fortran/mkindx.f \
105     src/fortran/whatln.f \
106     src/fortran/errmgr.f \
107     src/fortran/mklist.f \
108     src/fortran/indxg.f \
109     src/fortran/istrue.f \
110     src/fortran/extlarg.f \
111     src/fortran/lst2vars.f \
112     src/fortran/basnms.f \
113     src/fortran/ptrback.f \
114     src/fortran/getch.f \
115     src/fortran/ftob.f \
116     src/fortran/expsum.f \
117     src/fortran/copyvar.f \
118     src/fortran/putid.f \
119     src/fortran/itosci.f \
120     src/fortran/stackr2d.f \
121     src/fortran/stacki2d.f \
122     src/fortran/stackc2i.f \
123     src/fortran/isinstring.f \
124     src/fortran/readinter.f \
125     src/fortran/rewindinter.f \
126     src/fortran/backspaceinter.f \
127     src/fortran/relocstack.f \
128         src/fortran/write_inter.f \
129         src/fortran/read_inter.f
130
131 GATEWAY_C_SOURCES = \
132         sci_gateway/c/gw_core.c \
133         sci_gateway/c/gw_user.c \
134         sci_gateway/c/gw_user2.c \
135         sci_gateway/c/sci_type.c \
136         sci_gateway/c/sci_getdebuginfo.c
137
138 GATEWAY_CPP_SOURCES = \
139         sci_gateway/cpp/core_gw.cpp \
140         sci_gateway/cpp/sci_getmodules.cpp \
141         sci_gateway/cpp/sci_clear.cpp \
142         sci_gateway/cpp/sci_clearfun.cpp \
143         sci_gateway/cpp/sci_newfun.cpp \
144         sci_gateway/cpp/sci_funptr.cpp \
145         sci_gateway/cpp/sci_banner.cpp \
146         sci_gateway/cpp/sci_quit.cpp \
147         sci_gateway/cpp/sci_exit.cpp \
148         sci_gateway/cpp/sci_argn.cpp \
149         sci_gateway/cpp/sci_clearglobal.cpp \
150         sci_gateway/cpp/sci_global.cpp \
151         sci_gateway/cpp/sci_isglobal.cpp \
152         sci_gateway/cpp/sci_getscilabmode.cpp \
153         sci_gateway/cpp/sci_getos.cpp \
154         sci_gateway/cpp/sci_exists.cpp \
155         sci_gateway/cpp/sci_with_module.cpp \
156         sci_gateway/cpp/sci_lasterror.cpp \
157         sci_gateway/cpp/sci_getversion.cpp \
158         sci_gateway/cpp/sci_warning.cpp \
159         sci_gateway/cpp/sci_getmd5.cpp \
160         sci_gateway/cpp/sci_error.cpp \
161         sci_gateway/cpp/sci_pause.cpp \
162         sci_gateway/cpp/sci_abort.cpp \
163         sci_gateway/cpp/sci_who.cpp \
164         sci_gateway/cpp/sci_stacksize.cpp \
165         sci_gateway/cpp/sci_format.cpp \
166         sci_gateway/cpp/sci_sciargs.cpp \
167         sci_gateway/cpp/sci_ieee.cpp \
168         sci_gateway/cpp/sci_funcprot.cpp \
169         sci_gateway/cpp/sci_mode.cpp \
170         sci_gateway/cpp/sci_typename.cpp \
171         sci_gateway/cpp/sci_where.cpp \
172         sci_gateway/cpp/sci_getmemory.cpp \
173         sci_gateway/cpp/sci_errclear.cpp \
174         sci_gateway/cpp/sci_intppty.cpp \
175         sci_gateway/cpp/sci_analyzeroptions.cpp \
176         sci_gateway/cpp/sci_macr2tree.cpp
177
178 libscicore_la_CPPFLAGS = \
179     -I$(srcdir)/includes/ \
180     -I$(srcdir)/src/c/ \
181     -I$(srcdir)/src/cpp/ \
182     -I$(top_srcdir)/modules/ast/includes/ast/ \
183     -I$(top_srcdir)/modules/ast/includes/exps/ \
184     -I$(top_srcdir)/modules/ast/includes/operations/ \
185     -I$(top_srcdir)/modules/ast/includes/parse/ \
186     -I$(top_srcdir)/modules/ast/includes/symbol/ \
187     -I$(top_srcdir)/modules/ast/includes/system_env/ \
188     -I$(top_srcdir)/modules/ast/includes/types/ \
189     -I$(top_srcdir)/modules/ast/includes/analysis/ \
190     -I$(top_srcdir)/modules/call_scilab/includes/ \
191     -I$(top_srcdir)/modules/api_scilab/includes/ \
192     -I$(top_srcdir)/modules/action_binding/includes/ \
193     -I$(top_srcdir)/modules/output_stream/includes/ \
194     -I$(top_srcdir)/modules/localization/includes/ \
195     -I$(top_srcdir)/modules/functions_manager/includes/ \
196     -I$(top_srcdir)/modules/elementary_functions/includes/ \
197     -I$(top_srcdir)/modules/io/includes/ \
198     -I$(top_srcdir)/modules/tclsci/includes/ \
199     -I$(top_srcdir)/modules/dynamic_link/includes/ \
200     -I$(top_srcdir)/modules/elementary_functions/includes/ \
201     -I$(top_srcdir)/modules/string/includes/ \
202     -I$(top_srcdir)/modules/fileio/includes/ \
203     -I$(top_srcdir)/modules/console/includes/ \
204     -I$(top_srcdir)/modules/threads/includes/ \
205     -I$(top_srcdir)/modules/history_manager/includes/ \
206     -I$(top_srcdir)/modules/preferences/includes/ \
207     -I$(top_srcdir)/modules/external_objects/includes/ \
208     -I$(top_srcdir)/modules/jvm/includes/ \
209     -I$(top_srcdir)/modules/jvm/src/c/ \
210     -I$(top_srcdir)/modules/gui/includes/ \
211     -I$(top_srcdir)/modules/graphics/includes/ \
212     -I$(top_srcdir)/modules/hdf5/includes/ \
213     -I$(top_srcdir)/modules/fftw/includes/ \
214     $(EIGEN_CPPFLAGS) \
215     $(XML_FLAGS) \
216     $(AM_CPPFLAGS)
217
218 # Used by sci_getdebuginfo:
219 if TCLTK
220 libscicore_la_CPPFLAGS += $(TCL_INC_PATH) \
221                                   $(TK_INC_PATH)
222 endif
223
224 if MAINTAINER_MODE
225 pkglib_LTLIBRARIES = libscicore.la
226 noinst_LTLIBRARIES = libscicore-algo.la
227 else
228 noinst_LTLIBRARIES = libscicore-algo.la libscicore.la
229 endif
230
231
232 libscicore_la_LDFLAGS = $(AM_LDFLAGS)
233 #-Wl,--version-script,LibScilab_Import.def
234
235 # For the code check (splint)
236 CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
237 INCLUDE_FLAGS = $(libscicore_la_CPPFLAGS)
238
239 libscicore_algo_la_SOURCES = $(CORE_C_SOURCES) $(CORE_CPP_SOURCES) $(CORE_FORTRAN_SOURCES)
240 libscicore_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
241 libscicore_algo_la_CPPFLAGS = $(libscicore_la_CPPFLAGS)
242
243 # Commented because it is easier to comment first the core module
244 libscicore_la_LIBADD = libscicore-algo.la $(XML_LIBS)
245
246 #### Target ######
247 modulename=core
248
249 #### core : Conf files ####
250 libscicore_la_rootdir = $(mydatadir)
251 libscicore_la_root_DATA =  license.txt
252
253
254 #### core : init scripts ####
255 libscicore_la_etcdir = $(mydatadir)/etc
256 libscicore_la_etc_DATA = etc/core.quit etc/core.start
257
258 #### core : gateway declaration ####
259 libscicore_la_sci_gatewaydir = $(mydatadir)/sci_gateway
260 libscicore_la_sci_gateway_DATA = sci_gateway/core_gateway.xml
261
262 #### core :  dtd files ####
263 libscicore_la_xmldir = $(mydatadir)/xml
264 libscicore_la_xml_DATA = xml/modules.dtd xml/version.dtd
265
266 #### core : include files ####
267 libscicore_la_includedir=$(pkgincludedir)
268 libscicore_la_include_HEADERS = \
269 includes/BOOL.h \
270 includes/core_math.h \
271 includes/ExceptionMessage.h \
272 includes/existfunction.h \
273 includes/freeArrayOfString.h \
274 includes/getcommandlineargs.h \
275 includes/getmemory.h \
276 includes/getos.h \
277 includes/machine.h \
278 includes/mode_exec.h \
279 includes/sci_malloc.h \
280 includes/PATH_MAX.h \
281 includes/scilabDefaults.h \
282 includes/scisparse.h \
283 includes/stack-c.h \
284 includes/sci_types.h \
285 includes/stack-def.h \
286 includes/stack.h \
287 includes/stack1.h \
288 includes/stack2.h \
289 includes/stack3.h \
290 includes/stack-optional.h \
291 includes/stackinfo.h \
292 includes/stackTypeVariable.h \
293 includes/version.h \
294 includes/getversion.h \
295 includes/backtrace_print.h \
296 includes/sci_mem_alloc.h \
297 includes/hashtable.h \
298 includes/hashtable_utility.h \
299 includes/exit_status.hxx \
300 includes/timer.hxx
301
302
303 if GUI
304 USEANT=1
305 endif
306
307
308 include $(top_srcdir)/Makefile.incl.am