bug_16190 fixed
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
5 #
6 # This file is hereby licensed under the terms of the GNU GPL v2.0,
7 # pursuant to article 5.3.4 of the CeCILL v.2.1.
8 # This file was originally licensed under the terms of the CeCILL v2.1,
9 # and continues to be available under such terms.
10 # For more information, see the COPYING file which you should have received
11 # along with this program.
12
13
14 CORE_C_SOURCES = \
15     src/c/csignal.c \
16     src/c/resizesignal.c \
17     src/c/md5.c \
18     src/c/getmodules.c \
19     src/c/getmemory.c \
20     src/c/isanan.c \
21     src/c/returnanan.c \
22     src/c/loadversion.c \
23     src/c/version.c \
24     src/c/GetXmlFileEncoding.c \
25     src/c/islittleendian.c \
26     src/c/getcommandlineargs.c \
27     src/c/commandwords.c \
28     src/c/freeArrayOfString.c \
29     src/c/getstaticdebuginfo.c \
30     src/c/getdynamicdebuginfo.c \
31     src/c/dynamic_gateways.c \
32     src/c/setPrecisionFPU.c \
33     src/c/getos.c \
34     src/c/transposeMatrix.c \
35     src/c/getversion.c \
36     src/c/backtrace.c \
37     src/c/signal_mgmt.c \
38     src/c/suspendProcess.c \
39     src/c/saveCWDInPreferences.c \
40     src/c/getmaxMALLOC.c \
41     src/c/sci_mem_alloc.c \
42     src/c/hashtable/hashtable.c \
43     src/c/hashtable/hashtable_utility.c \
44     src/c/InitializePreferences.c
45
46 CORE_CPP_SOURCES = \
47     src/cpp/demangle.cpp \
48     src/cpp/backtrace_print.cpp \
49     src/cpp/storeCommand.cpp \
50     src/cpp/banner.cpp \
51     src/cpp/with_module.cpp \
52     src/cpp/runner.cpp \
53     src/cpp/tasks.cpp \
54     src/cpp/getvariablesname.cpp \
55     src/cpp/getmacrosname.cpp \
56     src/cpp/getfunctionsname.cpp \
57     src/cpp/InitScilab.cpp \
58     src/cpp/parsecommand.cpp \
59     src/cpp/pause.cpp \
60     src/cpp/setformat.cpp
61
62 CORE_FORTRAN_SOURCES = \
63     src/fortran/clunit.f \
64     src/fortran/folhp.f \
65     src/fortran/xerbla.f \
66     src/fortran/expsum.f \
67     src/fortran/readinter.f \
68     src/fortran/rewindinter.f \
69     src/fortran/backspaceinter.f \
70         src/fortran/write_inter.f \
71         src/fortran/read_inter.f
72
73 GATEWAY_C_SOURCES = \
74         sci_gateway/c/sci_getdebuginfo.c
75
76 GATEWAY_CPP_SOURCES = \
77         sci_gateway/cpp/core_gw.cpp \
78         sci_gateway/cpp/sci_getmodules.cpp \
79         sci_gateway/cpp/sci_clear.cpp \
80         sci_gateway/cpp/sci_clearfun.cpp \
81         sci_gateway/cpp/sci_newfun.cpp \
82         sci_gateway/cpp/sci_funptr.cpp \
83         sci_gateway/cpp/sci_banner.cpp \
84         sci_gateway/cpp/sci_quit.cpp \
85         sci_gateway/cpp/sci_exit.cpp \
86         sci_gateway/cpp/sci_argn.cpp \
87         sci_gateway/cpp/sci_clearglobal.cpp \
88         sci_gateway/cpp/sci_global.cpp \
89         sci_gateway/cpp/sci_isglobal.cpp \
90         sci_gateway/cpp/sci_getscilabmode.cpp \
91         sci_gateway/cpp/sci_getos.cpp \
92         sci_gateway/cpp/sci_exists.cpp \
93         sci_gateway/cpp/sci_with_module.cpp \
94         sci_gateway/cpp/sci_lasterror.cpp \
95         sci_gateway/cpp/sci_getversion.cpp \
96         sci_gateway/cpp/sci_warning.cpp \
97         sci_gateway/cpp/sci_getmd5.cpp \
98         sci_gateway/cpp/sci_error.cpp \
99         sci_gateway/cpp/sci_pause.cpp \
100         sci_gateway/cpp/sci_abort.cpp \
101         sci_gateway/cpp/sci_who.cpp \
102         sci_gateway/cpp/sci_format.cpp \
103         sci_gateway/cpp/sci_sciargs.cpp \
104         sci_gateway/cpp/sci_ieee.cpp \
105         sci_gateway/cpp/sci_funcprot.cpp \
106         sci_gateway/cpp/sci_mode.cpp \
107         sci_gateway/cpp/sci_typename.cpp \
108         sci_gateway/cpp/sci_what.cpp \
109         sci_gateway/cpp/sci_where.cpp \
110         sci_gateway/cpp/sci_getmemory.cpp \
111         sci_gateway/cpp/sci_errclear.cpp \
112         sci_gateway/cpp/sci_intppty.cpp \
113         sci_gateway/cpp/sci_analyzeroptions.cpp \
114         sci_gateway/cpp/sci_macr2tree.cpp \
115         sci_gateway/cpp/sci_predef.cpp \
116         sci_gateway/cpp/sci_debug.cpp \
117         sci_gateway/cpp/sci_recursionlimit.cpp \
118         sci_gateway/cpp/sci_type.cpp \
119         sci_gateway/cpp/sci_list.cpp \
120         sci_gateway/cpp/sci_struct.cpp \
121         sci_gateway/cpp/sci_insert.cpp \
122         sci_gateway/cpp/sci_null.cpp \
123         sci_gateway/cpp/sci_cell.cpp \
124         sci_gateway/cpp/sci_makecell.cpp \
125         sci_gateway/cpp/sci_typeof.cpp \
126         sci_gateway/cpp/sci_tlist.cpp \
127         sci_gateway/cpp/sci_mlist.cpp \
128         sci_gateway/cpp/sci_isfield.cpp \
129         sci_gateway/cpp/sci_oldEmptyBehaviour.cpp \
130         sci_gateway/cpp/sci_fieldnames.cpp \
131         sci_gateway/cpp/sci_checkNamedArguments.cpp
132
133 if ENABLE_DEBUG
134 GATEWAY_CPP_SOURCES += \
135     sci_gateway/cpp/sci_inspectorDeleteUnreferencedItems.cpp \
136         sci_gateway/cpp/sci_inspectorGetItem.cpp \
137         sci_gateway/cpp/sci_inspectorGetItemCount.cpp \
138         sci_gateway/cpp/sci_inspectorGetUnreferencedItem.cpp \
139         sci_gateway/cpp/sci_inspectorShowItem.cpp \
140         sci_gateway/cpp/sci_inspectorShowUnreferencedItem.cpp \
141         sci_gateway/cpp/sci_inspectorGetFunctionList.cpp
142 endif
143
144 libscicore_la_CPPFLAGS = \
145     -I$(srcdir)/includes/ \
146     -I$(srcdir)/src/c/ \
147     -I$(srcdir)/src/cpp/ \
148     -I$(top_srcdir)/modules/ast/includes/ast/ \
149     -I$(top_srcdir)/modules/ast/includes/exps/ \
150     -I$(top_srcdir)/modules/ast/includes/operations/ \
151     -I$(top_srcdir)/modules/ast/includes/parse/ \
152     -I$(top_srcdir)/modules/ast/includes/symbol/ \
153     -I$(top_srcdir)/modules/ast/includes/system_env/ \
154     -I$(top_srcdir)/modules/ast/includes/types/ \
155     -I$(top_srcdir)/modules/ast/includes/analysis/ \
156     -I$(top_srcdir)/modules/call_scilab/includes/ \
157     -I$(top_srcdir)/modules/api_scilab/includes/ \
158     -I$(top_srcdir)/modules/action_binding/includes/ \
159     -I$(top_srcdir)/modules/output_stream/includes/ \
160     -I$(top_srcdir)/modules/localization/includes/ \
161     -I$(top_srcdir)/modules/functions_manager/includes/ \
162     -I$(top_srcdir)/modules/elementary_functions/includes/ \
163     -I$(top_srcdir)/modules/io/includes/ \
164     -I$(top_srcdir)/modules/tclsci/includes/ \
165     -I$(top_srcdir)/modules/dynamic_link/includes/ \
166     -I$(top_srcdir)/modules/elementary_functions/includes/ \
167     -I$(top_srcdir)/modules/string/includes/ \
168     -I$(top_srcdir)/modules/fileio/includes/ \
169     -I$(top_srcdir)/modules/console/includes/ \
170     -I$(top_srcdir)/modules/threads/includes/ \
171     -I$(top_srcdir)/modules/history_manager/includes/ \
172     -I$(top_srcdir)/modules/preferences/includes/ \
173     -I$(top_srcdir)/modules/external_objects/includes/ \
174     -I$(top_srcdir)/modules/jvm/includes/ \
175     -I$(top_srcdir)/modules/jvm/src/c/ \
176     -I$(top_srcdir)/modules/gui/includes/ \
177     -I$(top_srcdir)/modules/graphics/includes/ \
178     -I$(top_srcdir)/modules/hdf5/includes/ \
179     -I$(top_srcdir)/modules/fftw/includes/ \
180     -I$(top_srcdir)/modules/ui_data/includes/ \
181     $(HDF5_CFLAGS) \
182     $(XML_FLAGS) \
183     $(AM_CPPFLAGS)
184
185 # Used by sci_getdebuginfo:
186 if TCLTK
187 libscicore_la_CPPFLAGS += $(TCL_INC_PATH) \
188                                   $(TK_INC_PATH)
189 endif
190
191 if MAINTAINER_MODE
192 pkglib_LTLIBRARIES = libscicore.la
193 noinst_LTLIBRARIES = libscicore-algo.la
194 else
195 noinst_LTLIBRARIES = libscicore-algo.la libscicore.la
196 endif
197
198
199 libscicore_la_LDFLAGS = $(AM_LDFLAGS)
200 #-Wl,--version-script,LibScilab_Import.def
201
202 # For the code check (splint)
203 CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
204 INCLUDE_FLAGS = $(libscicore_la_CPPFLAGS)
205
206 libscicore_algo_la_SOURCES = $(CORE_C_SOURCES) $(CORE_CPP_SOURCES) $(CORE_FORTRAN_SOURCES)
207 libscicore_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
208 libscicore_algo_la_CPPFLAGS = $(libscicore_la_CPPFLAGS)
209
210 # Commented because it is easier to comment first the core module
211 libscicore_la_LIBADD = libscicore-algo.la $(XML_LIBS) $(FLIBS)
212
213 #### Target ######
214 modulename=core
215
216 #### core : Conf files ####
217 libscicore_la_rootdir = $(mydatadir)
218 libscicore_la_root_DATA =  license.txt
219
220
221 #### core : init scripts ####
222 libscicore_la_etcdir = $(mydatadir)/etc
223 libscicore_la_etc_DATA = etc/core.quit etc/core.start
224
225 #### core :  dtd files ####
226 libscicore_la_xmldir = $(mydatadir)/xml
227 libscicore_la_xml_DATA = xml/modules.dtd xml/version.dtd
228
229 #### core : include files ####
230 libscicore_la_includedir=$(pkgincludedir)
231 libscicore_la_include_HEADERS = \
232 includes/backtrace_print.h \
233 includes/BOOL.h \
234 includes/core_math.h \
235 includes/existfunction.h \
236 includes/exit_status.hxx \
237 includes/freeArrayOfString.h \
238 includes/getcommandlineargs.h \
239 includes/getmemory.h \
240 includes/getos.h \
241 includes/getversion.h \
242 includes/hashtable.h \
243 includes/hashtable_utility.h \
244 includes/machine.h \
245 includes/PATH_MAX.h \
246 includes/scilabDefaults.h \
247 includes/sci_malloc.h \
248 includes/sci_mem_alloc.h \
249 includes/scisparse.h \
250 includes/sci_types.h \
251 includes/storeCommand.h \
252 includes/timer.hxx \
253 includes/version.h
254
255
256 if GUI
257 USEANT=1
258 endif
259
260
261 include $(top_srcdir)/Makefile.incl.am