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