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