utf: ast 2
[scilab.git] / scilab / modules / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA - 2006-2008 - Sylvestre Ledru
4 # Copyright (C) DIGITEO - 2009 - Sylvestre Ledru
5 #
6 # This file must be used under the terms of the CeCILL.
7 # This source file is licensed as described in the file COPYING, which
8 # you should have received as part of this distribution.  The terms
9 # are also available at
10 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11 #
12
13 # The order DOES matter !!!
14
15 # core is the main module of Scilab. All the compilation deps has been removed
16 # since it already linked almost the whole world
17
18 SUBDIRS = \
19 prebuildjava \
20 threads \
21 output_stream \
22 arnoldi \
23 elementary_functions \
24 functions_manager \
25 fileio \
26 mexlib \
27 functions \
28 parameters \
29 boolean \
30 cacsd \
31 signal_processing \
32 core \
33 call_scilab \
34 api_scilab \
35 data_structures \
36 differential_equations \
37 elementary_functions \
38 integer \
39 io \
40 linear_algebra \
41 localization \
42 polynomials \
43 special_functions \
44 time \
45 windows_tools \
46 sparse \
47 completion \
48 history_manager \
49 output_stream \
50 string \
51 hdf5 \
52 fftw \
53 statistics \
54 dynamic_link \
55 console \
56 arnoldi \
57 spreadsheet \
58 tclsci \
59 commons \
60 jvm \
61 action_binding \
62 graphic_objects \
63 renderer \
64 gui \
65 graphic_export \
66 graphics \
67 optimization \
68 randlib \
69 interpolation \
70 sound \
71 overloading \
72 m2sci \
73 development_tools \
74 compatibility_functions \
75 helptools \
76 umfpack \
77 demo_tools \
78 genetic_algorithms \
79 simulated_annealing \
80 parameters \
81 matio \
82 atoms \
83 hdf5 \
84 graph \
85 ast \
86 scinotes \
87 parallel \
88 modules_manager \
89 ui_data \
90 history_browser \
91 preferences \
92 xml \
93 types \
94 external_objects \
95 slint \
96 coverage
97
98 if GUI
99 SUBDIRS += external_objects_java
100 endif
101
102 if XCOS
103 SUBDIRS += scicos_blocks scicos xcos
104 else
105 SUBDIRS += xcos
106 endif
107
108 if MPI
109 SUBDIRS += mpi
110 endif
111
112 SUBDIRS += .
113
114 # javasci should be compile at the end because it needs libscilab.la
115 # Don't forget that the order in subdirs does matter !!!
116 if JAVASCI
117 SUBDIRS += javasci
118 endif
119
120 #### Basic files ####
121 libscilab_la_rootdir = $(mydatadir)
122
123 # libscilab is the full library with the GUI
124 # libscilab-cli is for scilab-cli (without GUI)
125 pkglib_LTLIBRARIES = libscilab-cli.la libscilab.la
126 libscilab_la_SOURCES =
127
128 libscilab_la_LDFLAGS = $(AM_LDFLAGS) $(SCI_LDFLAGS)
129
130
131 GUI_LIBS =      $(top_builddir)/modules/gui/libscigui.la \
132         $(top_builddir)/modules/renderer/libscirenderer.la \
133         $(top_builddir)/modules/graphics/libscigraphics.la \
134         $(top_builddir)/modules/graphic_export/libscigraphic_export.la \
135         $(top_builddir)/modules/console/libsciconsole.la \
136         $(top_builddir)/modules/action_binding/libsciaction_binding.la \
137         $(top_builddir)/modules/jvm/libscijvm.la \
138         $(top_builddir)/modules/graphic_objects/libscigraphic_objects.la \
139         $(top_builddir)/modules/scinotes/libsciscinotes.la \
140         $(top_builddir)/modules/ui_data/libsciui_data.la \
141         $(top_builddir)/modules/history_browser/libscihistory_browser.la \
142         $(top_builddir)/modules/commons/libscicommons.la \
143         $(top_builddir)/modules/preferences/libscipreferences.la \
144         $(top_builddir)/modules/external_objects_java/libsciexternal_objects_java.la \
145         $(top_builddir)/modules/helptools/libscihelptools.la \
146         $(top_builddir)/modules/tclsci/libscitclsci.la
147
148 NO_GUI_LIBS = $(top_builddir)/modules/gui/libscigui-disable.la \
149         $(top_builddir)/modules/graphics/libscigraphics-disable.la \
150         $(top_builddir)/modules/graphic_export/libscigraphic_export-disable.la \
151         $(top_builddir)/modules/console/libsciconsole-minimal.la \
152         $(top_builddir)/modules/action_binding/libsciaction_binding-disable.la \
153         $(top_builddir)/modules/jvm/libscijvm-disable.la \
154         $(top_builddir)/modules/xcos/libscixcos-disable.la \
155         $(top_builddir)/modules/graphic_objects/libscigraphic_objects-disable.la \
156         $(top_builddir)/modules/scinotes/libsciscinotes-disable.la \
157         $(top_builddir)/modules/ui_data/libsciui_data-disable.la \
158         $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la \
159         $(top_builddir)/modules/commons/libscicommons-disable.la \
160         $(top_builddir)/modules/preferences/libscipreferences-cli.la \
161         $(top_builddir)/modules/tclsci/libscitclsci-disable.la
162
163
164 ENGINE_LIBS =   $(top_builddir)/modules/fileio/libscifileio.la \
165         $(top_builddir)/modules/mexlib/libmex.la \
166         $(top_builddir)/modules/functions/libscifunctions.la \
167         $(top_builddir)/modules/parameters/libsciparameters.la \
168         $(top_builddir)/modules/boolean/libsciboolean.la \
169         $(top_builddir)/modules/cacsd/libscicacsd.la \
170         $(top_builddir)/modules/core/libscicore.la \
171         $(top_builddir)/modules/call_scilab/libscicall_scilab.la \
172         $(top_builddir)/modules/api_scilab/libsciapi_scilab.la \
173         $(top_builddir)/modules/data_structures/libscidata_structures.la \
174         $(top_builddir)/modules/differential_equations/libscidifferential_equations.la \
175         $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
176         $(top_builddir)/modules/integer/libsciinteger.la \
177         $(top_builddir)/modules/io/libsciio.la \
178         $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la \
179         $(top_builddir)/modules/localization/libscilocalization.la \
180         $(top_builddir)/modules/polynomials/libscipolynomials.la \
181         $(top_builddir)/modules/special_functions/libscispecial_functions.la \
182         $(top_builddir)/modules/time/libscitime.la \
183         $(top_builddir)/modules/windows_tools/libsciwindows_tools.la \
184         $(top_builddir)/modules/sparse/libscisparse.la \
185         $(top_builddir)/modules/completion/libscicompletion.la \
186         $(top_builddir)/modules/history_manager/libscihistory_manager.la \
187         $(top_builddir)/modules/output_stream/libscioutput_stream.la \
188         $(top_builddir)/modules/string/libscistring.la \
189         $(top_builddir)/modules/hdf5/libscihdf5.la \
190         $(top_builddir)/modules/fftw/libscifftw.la \
191         $(top_builddir)/modules/statistics/libscistatistics.la \
192         $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
193         $(top_builddir)/modules/threads/libscithreads.la \
194         $(top_builddir)/modules/ast/libsciast.la \
195         $(top_builddir)/modules/functions_manager/libscifunctions_manager.la \
196         $(top_builddir)/modules/xml/libscixml.la \
197         $(top_builddir)/modules/external_objects/libsciexternal_objects.la \
198         $(top_builddir)/modules/slint/libscislint.la \
199         $(top_builddir)/modules/coverage/libscicoverage.la
200
201 # These libraries are loaded dynamically from Scilab.
202 ENGINE_LIBS_DYNAMIC_LOAD = \
203         $(top_builddir)/modules/optimization/libscioptimization.la \
204         $(top_builddir)/modules/signal_processing/libscisignal_processing.la \
205         $(top_builddir)/modules/interpolation/libsciinterpolation.la \
206         $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
207         $(top_builddir)/modules/randlib/libscirandlib.la \
208         $(top_builddir)/modules/xcos/libscixcos.la \
209         $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la \
210         $(top_builddir)/modules/scicos/libsciscicos.la \
211         $(top_builddir)/modules/sound/libscisound.la \
212         $(top_builddir)/modules/spreadsheet/libscispreadsheet.la \
213         $(top_builddir)/modules/umfpack/libsciumfpack.la \
214         $(top_builddir)/modules/matio/libscimatio.la \
215         $(top_builddir)/modules/parallel/libsciparallel.la
216
217 if MPI
218 ENGINE_LIBS += $(top_builddir)/modules/mpi/libscimpi.la
219 endif
220
221 # Core modules
222
223 libscilab_la_LIBADD =
224
225 if GUI
226 # Force the libscijvm to be linked first. Under Debian, this avoid some reordering issues during the link
227 libscilab_la_LIBADD += $(top_builddir)/modules/jvm/libscijvm.la $(GUI_LIBS)
228 else
229 libscilab_la_LIBADD += $(NO_GUI_LIBS)
230 endif
231
232 libscilab_la_LIBADD += $(top_builddir)/modules/libscilab-cli.la
233
234 # Core modules
235 libscilab_la_LIBADD += $(OTHER_LIBS) $(EXTERNAL_LIBS)
236
237 if FORCE_LINK
238 # This should never be used in production. It forces the explicit link
239 # between libscilab and some "on-the-fly" loaded libraries.
240 # It has been added to make sure that the full link is correctly done
241 # and all symbols resolved.
242 libscilab_la_LIBADD += $(ENGINE_LIBS_DYNAMIC_LOAD)
243 endif
244
245 libscilab_la_LIBADD += $(LAPACK_LIBS) $(BLAS_LIBS)
246
247 ################## libscilab-cli  ##################
248
249 libscilab_cli_la_SOURCES =
250
251 libscilab_cli_la_LDFLAGS = $(AM_LDFLAGS) $(SCI_LDFLAGS)
252
253 # Core modules
254 libscilab_cli_la_LIBADD = $(ENGINE_LIBS) $(NO_GUI_LIBS) $(OTHER_LIBS) $(EXTERNAL_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS)
255
256 .NOTPARALLEL: libscilab-cli.la libscilab.la