module preferences plugged
[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/md5.c \
14     src/c/texmacs.c \
15     src/c/getmodules.c \
16     src/c/getmemory.c \
17     src/c/isanan.c \
18     src/c/returnanan.c \
19     src/c/loadversion.c \
20     src/c/version.c \
21     src/c/GetXmlFileEncoding.c \
22     src/c/islittleendian.c \
23     src/c/getcommandlineargs.c \
24     src/c/commandwords.c \
25     src/c/freeArrayOfString.c \
26     src/c/getstaticdebuginfo.c \
27     src/c/getdynamicdebuginfo.c \
28     src/c/dynamic_gateways.c \
29     src/c/setPrecisionFPU.c \
30     src/c/getos.c \
31     src/c/transposeMatrix.c \
32     src/c/getversion.c \
33     src/c/dynamic_tclsci.c \
34     src/c/dynamic_parallel.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_type.c \
72         sci_gateway/c/sci_getdebuginfo.c
73
74 GATEWAY_CPP_SOURCES = \
75         sci_gateway/cpp/core_gw.cpp \
76         sci_gateway/cpp/sci_getmodules.cpp \
77         sci_gateway/cpp/sci_clear.cpp \
78         sci_gateway/cpp/sci_clearfun.cpp \
79         sci_gateway/cpp/sci_newfun.cpp \
80         sci_gateway/cpp/sci_funptr.cpp \
81         sci_gateway/cpp/sci_banner.cpp \
82         sci_gateway/cpp/sci_quit.cpp \
83         sci_gateway/cpp/sci_exit.cpp \
84         sci_gateway/cpp/sci_argn.cpp \
85         sci_gateway/cpp/sci_clearglobal.cpp \
86         sci_gateway/cpp/sci_global.cpp \
87         sci_gateway/cpp/sci_isglobal.cpp \
88         sci_gateway/cpp/sci_getscilabmode.cpp \
89         sci_gateway/cpp/sci_getos.cpp \
90         sci_gateway/cpp/sci_exists.cpp \
91         sci_gateway/cpp/sci_with_module.cpp \
92         sci_gateway/cpp/sci_lasterror.cpp \
93         sci_gateway/cpp/sci_getversion.cpp \
94         sci_gateway/cpp/sci_warning.cpp \
95         sci_gateway/cpp/sci_getmd5.cpp \
96         sci_gateway/cpp/sci_error.cpp \
97         sci_gateway/cpp/sci_pause.cpp \
98         sci_gateway/cpp/sci_abort.cpp \
99         sci_gateway/cpp/sci_who.cpp \
100         sci_gateway/cpp/sci_format.cpp \
101         sci_gateway/cpp/sci_sciargs.cpp \
102         sci_gateway/cpp/sci_ieee.cpp \
103         sci_gateway/cpp/sci_funcprot.cpp \
104         sci_gateway/cpp/sci_mode.cpp \
105         sci_gateway/cpp/sci_typename.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
114 libscicore_la_CPPFLAGS = \
115     -I$(srcdir)/includes/ \
116     -I$(srcdir)/src/c/ \
117     -I$(srcdir)/src/cpp/ \
118     -I$(top_srcdir)/modules/ast/includes/ast/ \
119     -I$(top_srcdir)/modules/ast/includes/exps/ \
120     -I$(top_srcdir)/modules/ast/includes/operations/ \
121     -I$(top_srcdir)/modules/ast/includes/parse/ \
122     -I$(top_srcdir)/modules/ast/includes/symbol/ \
123     -I$(top_srcdir)/modules/ast/includes/system_env/ \
124     -I$(top_srcdir)/modules/ast/includes/types/ \
125     -I$(top_srcdir)/modules/ast/includes/analysis/ \
126     -I$(top_srcdir)/modules/call_scilab/includes/ \
127     -I$(top_srcdir)/modules/api_scilab/includes/ \
128     -I$(top_srcdir)/modules/action_binding/includes/ \
129     -I$(top_srcdir)/modules/output_stream/includes/ \
130     -I$(top_srcdir)/modules/localization/includes/ \
131     -I$(top_srcdir)/modules/functions_manager/includes/ \
132     -I$(top_srcdir)/modules/elementary_functions/includes/ \
133     -I$(top_srcdir)/modules/io/includes/ \
134     -I$(top_srcdir)/modules/tclsci/includes/ \
135     -I$(top_srcdir)/modules/dynamic_link/includes/ \
136     -I$(top_srcdir)/modules/elementary_functions/includes/ \
137     -I$(top_srcdir)/modules/string/includes/ \
138     -I$(top_srcdir)/modules/fileio/includes/ \
139     -I$(top_srcdir)/modules/console/includes/ \
140     -I$(top_srcdir)/modules/threads/includes/ \
141     -I$(top_srcdir)/modules/history_manager/includes/ \
142     -I$(top_srcdir)/modules/preferences/includes/ \
143     -I$(top_srcdir)/modules/external_objects/includes/ \
144     -I$(top_srcdir)/modules/jvm/includes/ \
145     -I$(top_srcdir)/modules/jvm/src/c/ \
146     -I$(top_srcdir)/modules/gui/includes/ \
147     -I$(top_srcdir)/modules/graphics/includes/ \
148     -I$(top_srcdir)/modules/hdf5/includes/ \
149     -I$(top_srcdir)/modules/fftw/includes/ \
150     -I$(top_srcdir)/modules/ui_data/includes/ \
151     $(XML_FLAGS) \
152     $(AM_CPPFLAGS)
153
154 # Used by sci_getdebuginfo:
155 if TCLTK
156 libscicore_la_CPPFLAGS += $(TCL_INC_PATH) \
157                                   $(TK_INC_PATH)
158 endif
159
160 if MAINTAINER_MODE
161 pkglib_LTLIBRARIES = libscicore.la
162 noinst_LTLIBRARIES = libscicore-algo.la
163 else
164 noinst_LTLIBRARIES = libscicore-algo.la libscicore.la
165 endif
166
167
168 libscicore_la_LDFLAGS = $(AM_LDFLAGS)
169 #-Wl,--version-script,LibScilab_Import.def
170
171 # For the code check (splint)
172 CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
173 INCLUDE_FLAGS = $(libscicore_la_CPPFLAGS)
174
175 libscicore_algo_la_SOURCES = $(CORE_C_SOURCES) $(CORE_CPP_SOURCES) $(CORE_FORTRAN_SOURCES)
176 libscicore_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
177 libscicore_algo_la_CPPFLAGS = $(libscicore_la_CPPFLAGS)
178
179 # Commented because it is easier to comment first the core module
180 libscicore_la_LIBADD = libscicore-algo.la $(XML_LIBS)
181
182 #### Target ######
183 modulename=core
184
185 #### core : Conf files ####
186 libscicore_la_rootdir = $(mydatadir)
187 libscicore_la_root_DATA =  license.txt
188
189
190 #### core : init scripts ####
191 libscicore_la_etcdir = $(mydatadir)/etc
192 libscicore_la_etc_DATA = etc/core.quit etc/core.start
193
194 #### core : gateway declaration ####
195 libscicore_la_sci_gatewaydir = $(mydatadir)/sci_gateway
196 libscicore_la_sci_gateway_DATA = sci_gateway/core_gateway.xml
197
198 #### core :  dtd files ####
199 libscicore_la_xmldir = $(mydatadir)/xml
200 libscicore_la_xml_DATA = xml/modules.dtd xml/version.dtd
201
202 #### core : include files ####
203 libscicore_la_includedir=$(pkgincludedir)
204 libscicore_la_include_HEADERS = \
205 includes/BOOL.h \
206 includes/core_math.h \
207 includes/ExceptionMessage.h \
208 includes/existfunction.h \
209 includes/freeArrayOfString.h \
210 includes/getcommandlineargs.h \
211 includes/getmemory.h \
212 includes/getos.h \
213 includes/machine.h \
214 includes/sci_malloc.h \
215 includes/PATH_MAX.h \
216 includes/scilabDefaults.h \
217 includes/scisparse.h \
218 includes/sci_types.h \
219 includes/version.h \
220 includes/getversion.h \
221 includes/backtrace_print.h \
222 includes/sci_mem_alloc.h \
223 includes/hashtable.h \
224 includes/hashtable_utility.h \
225 includes/exit_status.hxx \
226 includes/timer.hxx
227
228
229 if GUI
230 USEANT=1
231 endif
232
233
234 include $(top_srcdir)/Makefile.incl.am