module preferences plugged
[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
96 if GUI
97 SUBDIRS += external_objects_java
98 endif
99
100 if XCOS
101 SUBDIRS += scicos_blocks scicos xcos
102 else
103 SUBDIRS += xcos
104 endif
105
106 if MPI
107 SUBDIRS += mpi
108 endif
109
110 SUBDIRS += .
111
112 # javasci should be compile at the end because it needs libscilab.la
113 # Don't forget that the order in subdirs does matter !!!
114 if JAVASCI
115 SUBDIRS += javasci
116 endif
117
118 #### Basic files ####
119 libscilab_la_rootdir = $(mydatadir)
120
121 # libscilab is the full library with the GUI
122 # libscilab-cli is for scilab-cli (without GUI)
123 pkglib_LTLIBRARIES = libscilab-cli.la libscilab.la
124 libscilab_la_SOURCES =
125
126 libscilab_la_LDFLAGS = $(AM_LDFLAGS) $(SCI_LDFLAGS)
127
128
129 GUI_LIBS =      $(top_builddir)/modules/gui/libscigui.la \
130         $(top_builddir)/modules/renderer/libscirenderer.la \
131         $(top_builddir)/modules/graphics/libscigraphics.la \
132         $(top_builddir)/modules/graphic_export/libscigraphic_export.la \
133         $(top_builddir)/modules/console/libsciconsole.la \
134         $(top_builddir)/modules/action_binding/libsciaction_binding.la \
135         $(top_builddir)/modules/jvm/libscijvm.la \
136         $(top_builddir)/modules/graphic_objects/libscigraphic_objects.la \
137         $(top_builddir)/modules/scinotes/libsciscinotes.la \
138         $(top_builddir)/modules/ui_data/libsciui_data.la \
139         $(top_builddir)/modules/history_browser/libscihistory_browser.la \
140         $(top_builddir)/modules/commons/libscicommons.la \
141         $(top_builddir)/modules/tclsci/libscitclsci.la \
142         $(top_builddir)/modules/preferences/libscipreferences.la \
143         $(top_builddir)/modules/external_objects_java/libsciexternal_objects_java.la \
144         $(top_builddir)/modules/helptools/libscihelptools.la
145
146 NO_GUI_LIBS = $(top_builddir)/modules/gui/libscigui-disable.la \
147         $(top_builddir)/modules/graphics/libscigraphics-disable.la \
148         $(top_builddir)/modules/graphic_export/libscigraphic_export-disable.la \
149         $(top_builddir)/modules/console/libsciconsole-minimal.la \
150         $(top_builddir)/modules/action_binding/libsciaction_binding-disable.la \
151         $(top_builddir)/modules/jvm/libscijvm-disable.la \
152         $(top_builddir)/modules/xcos/libscixcos-disable.la \
153         $(top_builddir)/modules/graphic_objects/libscigraphic_objects-disable.la \
154         $(top_builddir)/modules/scinotes/libsciscinotes-disable.la \
155         $(top_builddir)/modules/ui_data/libsciui_data-disable.la \
156         $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la \
157         $(top_builddir)/modules/commons/libscicommons-disable.la \
158         $(top_builddir)/modules/preferences/libscipreferences-cli.la
159
160
161 ENGINE_LIBS =   $(top_builddir)/modules/fileio/libscifileio.la \
162         $(top_builddir)/modules/mexlib/libmex.la \
163         $(top_builddir)/modules/functions/libscifunctions.la \
164         $(top_builddir)/modules/parameters/libsciparameters.la \
165         $(top_builddir)/modules/boolean/libsciboolean.la \
166         $(top_builddir)/modules/cacsd/libscicacsd.la \
167         $(top_builddir)/modules/core/libscicore.la \
168         $(top_builddir)/modules/call_scilab/libscicall_scilab.la \
169         $(top_builddir)/modules/api_scilab/libsciapi_scilab.la \
170         $(top_builddir)/modules/data_structures/libscidata_structures.la \
171         $(top_builddir)/modules/differential_equations/libscidifferential_equations.la \
172         $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
173         $(top_builddir)/modules/integer/libsciinteger.la \
174         $(top_builddir)/modules/io/libsciio.la \
175         $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la \
176         $(top_builddir)/modules/localization/libscilocalization.la \
177         $(top_builddir)/modules/polynomials/libscipolynomials.la \
178         $(top_builddir)/modules/special_functions/libscispecial_functions.la \
179         $(top_builddir)/modules/time/libscitime.la \
180         $(top_builddir)/modules/windows_tools/libsciwindows_tools.la \
181         $(top_builddir)/modules/sparse/libscisparse.la \
182         $(top_builddir)/modules/completion/libscicompletion.la \
183         $(top_builddir)/modules/history_manager/libscihistory_manager.la \
184         $(top_builddir)/modules/output_stream/libscioutput_stream.la \
185         $(top_builddir)/modules/string/libscistring.la \
186         $(top_builddir)/modules/hdf5/libscihdf5.la \
187         $(top_builddir)/modules/fftw/libscifftw.la \
188         $(top_builddir)/modules/statistics/libscistatistics.la \
189         $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
190         $(top_builddir)/modules/threads/libscithreads.la \
191         $(top_builddir)/modules/ast/libsciast.la \
192         $(top_builddir)/modules/functions_manager/libscifunctions_manager.la \
193         $(top_builddir)/modules/types/libscitypes.la \
194         $(top_builddir)/modules/xml/libscixml.la \
195         $(top_builddir)/modules/external_objects/libsciexternal_objects.la
196
197 # These libraries are loaded dynamically from Scilab.
198 ENGINE_LIBS_DYNAMIC_LOAD = \
199         $(top_builddir)/modules/optimization/libscioptimization.la \
200         $(top_builddir)/modules/signal_processing/libscisignal_processing.la \
201         $(top_builddir)/modules/interpolation/libsciinterpolation.la \
202         $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
203         $(top_builddir)/modules/randlib/libscirandlib.la \
204         $(top_builddir)/modules/xcos/libscixcos.la \
205         $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la \
206         $(top_builddir)/modules/scicos/libsciscicos.la \
207         $(top_builddir)/modules/sound/libscisound.la \
208         $(top_builddir)/modules/spreadsheet/libscispreadsheet.la \
209         $(top_builddir)/modules/umfpack/libsciumfpack.la \
210         $(top_builddir)/modules/matio/libscimatio.la \
211         $(top_builddir)/modules/parallel/libsciparallel.la
212
213 if MPI
214 ENGINE_LIBS += $(top_builddir)/modules/mpi/libscimpi.la
215 endif
216
217 # Core modules
218
219 libscilab_la_LIBADD =
220
221 if GUI
222 # Force the libscijvm to be linked first. Under Debian, this avoid some reordering issues during the link
223 libscilab_la_LIBADD += $(top_builddir)/modules/jvm/libscijvm.la $(GUI_LIBS)
224 else
225 libscilab_la_LIBADD += $(NO_GUI_LIBS)
226 endif
227
228 libscilab_la_LIBADD += $(top_builddir)/modules/libscilab-cli.la
229
230 # Core modules
231 libscilab_la_LIBADD += $(OTHER_LIBS) $(EXTERNAL_LIBS)
232
233 if FORCE_LINK
234 # This should never be used in production. It forces the explicit link
235 # between libscilab and some "on-the-fly" loaded libraries.
236 # It has been added to make sure that the full link is correctly done
237 # and all symbols resolved.
238 libscilab_la_LIBADD += $(ENGINE_LIBS_DYNAMIC_LOAD)
239 endif
240
241 libscilab_la_LIBADD += $(LAPACK_LIBS) $(BLAS_LIBS)
242
243 ################## libscilab-cli  ##################
244
245 libscilab_cli_la_SOURCES =
246
247 libscilab_cli_la_LDFLAGS = $(AM_LDFLAGS) $(SCI_LDFLAGS)
248
249 # Core modules
250 libscilab_cli_la_LIBADD = $(ENGINE_LIBS) $(NO_GUI_LIBS) $(OTHER_LIBS) $(EXTERNAL_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS)
251
252 .NOTPARALLEL: libscilab-cli.la libscilab.la