Load libscilab instead of libscitypes. Avoid a stupid dependency.
[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-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
19 SUBDIRS = \
20 prebuildjava \
21 fileio \
22 mexlib \
23 functions \
24 parameters \
25 boolean \
26 cacsd \
27 signal_processing \
28 core \
29 call_scilab \
30 api_scilab \
31 data_structures \
32 differential_equations \
33 double \
34 elementary_functions \
35 integer \
36 intersci \
37 io \
38 linear_algebra \
39 localization \
40 polynomials \
41 special_functions \
42 time \
43 windows_tools \
44 sparse \
45 completion \
46 history_manager \
47 output_stream \
48 string \
49 hdf5 \
50 fftw \
51 statistics \
52 dynamic_link \
53 console \
54 arnoldi \
55 spreadsheet \
56 tclsci \
57 commons \
58 jvm \
59 action_binding \
60 renderer \
61 graphic_export \
62 gui \
63 graphics \
64 optimization \
65 symbolic \
66 randlib \
67 interpolation \
68 sound \
69 overloading \
70 m2sci \
71 development_tools \
72 compatibility_functions \
73 helptools \
74 umfpack \
75 demo_tools \
76 genetic_algorithms \
77 simulated_annealing \
78 matio \
79 atoms \
80 hdf5 \
81 graph\
82 xcos \
83 scinotes \
84 parallel \
85 modules_manager \
86 ui_data \
87 history_browser \
88 xml \
89 types
90
91 if XCOS
92 SUBDIRS += scicos_blocks
93 endif
94
95 SUBDIRS += scicos
96
97 SUBDIRS += .
98
99 # javasci should be compile at the end because it needs libscilab.la
100 # Don't forget that the order in subdirs does matter !!!
101 if JAVASCI
102 SUBDIRS += javasci
103 endif
104
105 #### Basic files ####
106 libscilab_la_rootdir = $(mydatadir)
107
108 # libscilab is the full library with the GUI
109 # libscilab-cli is for scilab-cli (without GUI)
110 pkglib_LTLIBRARIES = libscilab-cli.la libscilab.la
111 libscilab_la_SOURCES =
112 #libscilab_cli_la_SOURCES =
113
114 libscilab_la_LDFLAGS = $(LAPACK_LIBS) $(BLAS_LIBS)
115 #libscilab_cli_la_LDFLAGS = $(LAPACK_LIBS) $(BLAS_LIBS) -lstdc++
116
117 EXTERNAL_LIBS = $(top_builddir)/libs/hashtable/libscihashtable.la \
118 $(top_builddir)/libs/MALLOC/libscimalloc.la  \
119 $(top_builddir)/libs/doublylinkedlist/libscidoublylinkedlist.la  \
120 $(top_builddir)/libs/libst/libscilibst.la
121
122
123 GUI_LIBS =      $(top_builddir)/modules/gui/libscigui.la \
124         $(top_builddir)/modules/renderer/libscirenderer.la \
125         $(top_builddir)/modules/graphics/libscigraphics.la \
126         $(top_builddir)/modules/graphic_export/libscigraphic_export.la \
127         $(top_builddir)/modules/console/libsciconsole.la \
128         $(top_builddir)/modules/action_binding/libsciaction_binding.la \
129         $(top_builddir)/modules/jvm/libscijvm.la \
130         $(top_builddir)/modules/scinotes/libsciscinotes.la \
131         $(top_builddir)/modules/ui_data/libsciui_data.la \
132         $(top_builddir)/modules/history_browser/libscihistory_browser.la \
133         $(top_builddir)/modules/commons/libscicommons.la \
134         $(top_builddir)/modules/tclsci/libscitclsci.la
135
136 if HDF5
137 GUI_LIBS += $(top_builddir)/modules/hdf5/libscihdf5-forceload.la
138 # HDF5 is here because it needs the JVM (see bug #5481)
139 endif
140
141 NO_GUI_LIBS = $(top_builddir)/modules/gui/libscigui-disable.la \
142         $(top_builddir)/modules/graphics/libscigraphics-disable.la \
143         $(top_builddir)/modules/graphic_export/libscigraphic_export-disable.la \
144         $(top_builddir)/modules/console/libsciconsole-disable.la \
145         $(top_builddir)/modules/action_binding/libsciaction_binding-disable.la \
146         $(top_builddir)/modules/jvm/libscijvm-disable.la \
147         $(top_builddir)/modules/xcos/libscixcos-disable.la \
148         $(top_builddir)/modules/scinotes/libsciscinotes-disable.la \
149         $(top_builddir)/modules/ui_data/libsciui_data-disable.la \
150         $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la \
151         $(top_builddir)/modules/commons/libscicommons-disable.la
152
153 if HDF5
154 NO_GUI_LIBS += $(top_builddir)/modules/hdf5/libscihdf5-forceload-disable.la
155 # HDF5 is here because it needs the JVM (see bug #5481)
156 endif
157
158 ENGINE_LIBS =   $(top_builddir)/modules/fileio/libscifileio.la \
159         $(top_builddir)/modules/mexlib/libmex.la \
160         $(top_builddir)/modules/functions/libscifunctions.la \
161         $(top_builddir)/modules/parameters/libsciparameters.la \
162         $(top_builddir)/modules/boolean/libsciboolean.la \
163         $(top_builddir)/modules/cacsd/libscicacsd.la \
164         $(top_builddir)/modules/core/libscicore.la \
165         $(top_builddir)/modules/call_scilab/libscicall_scilab.la \
166         $(top_builddir)/modules/api_scilab/libsciapi_scilab.la \
167         $(top_builddir)/modules/data_structures/libscidata_structures.la \
168         $(top_builddir)/modules/differential_equations/libscidifferential_equations.la \
169         $(top_builddir)/modules/double/libscidouble.la \
170         $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
171         $(top_builddir)/modules/integer/libsciinteger.la \
172         $(top_builddir)/modules/intersci/libsciintersci.la \
173         $(top_builddir)/modules/io/libsciio.la \
174         $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la \
175         $(top_builddir)/modules/localization/libscilocalization.la \
176         $(top_builddir)/modules/polynomials/libscipolynomials.la \
177         $(top_builddir)/modules/special_functions/libscispecial_functions.la \
178         $(top_builddir)/modules/time/libscitime.la \
179         $(top_builddir)/modules/windows_tools/libsciwindows_tools.la \
180         $(top_builddir)/modules/sparse/libscisparse.la \
181         $(top_builddir)/modules/completion/libscicompletion.la \
182         $(top_builddir)/modules/history_manager/libscihistory_manager.la \
183         $(top_builddir)/modules/output_stream/libscioutput_stream.la \
184         $(top_builddir)/modules/string/libscistring.la \
185         $(top_builddir)/modules/hdf5/libscihdf5.la \
186         $(top_builddir)/modules/fftw/libscifftw.la \
187     $(top_builddir)/modules/statistics/libscistatistics.la \
188     $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
189         $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la
190
191 # These libraries are loaded dynamically from Scilab.
192 ENGINE_LIBS_DYNAMIC_LOAD = \
193         $(top_builddir)/modules/optimization/libscioptimization.la \
194         $(top_builddir)/modules/signal_processing/libscisignal_processing.la \
195         $(top_builddir)/modules/interpolation/libsciinterpolation.la \
196         $(top_builddir)/modules/symbolic/libscisymbolic.la \
197         $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
198         $(top_builddir)/modules/randlib/libscirandlib.la \
199         $(top_builddir)/modules/xcos/libscixcos.la \
200         $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la \
201         $(top_builddir)/modules/scicos/libsciscicos.la \
202         $(top_builddir)/modules/sound/libscisound.la \
203         $(top_builddir)/modules/spreadsheet/libscispreadsheet.la \
204         $(top_builddir)/modules/umfpack/libsciumfpack.la \
205         $(top_builddir)/modules/matio/libscimatio.la \
206         $(top_builddir)/modules/helptools/libscihelptools.la \
207         $(top_builddir)/modules/xml/libscixml.la \
208         $(top_builddir)/modules/parallel/libsciparallel.la
209
210
211 # Core modules
212 #libscilab_cli_la_LIBADD = $(ENGINE_LIBS) $(NO_GUI_LIBS) $(OTHER_LIBS) $(EXTERNAL_LIBS)
213
214 libscilab_la_LIBADD = #$(top_builddir)/modules/libscilab-cli.la
215
216 if GUI
217 libscilab_la_LIBADD += $(GUI_LIBS)
218 else
219 libscilab_la_LIBADD += $(NO_GUI_LIBS)
220 endif
221
222 # Core modules
223 libscilab_la_LIBADD += $(OTHER_LIBS) $(EXTERNAL_LIBS) $(top_builddir)/modules/types/libscitypes.la $(top_builddir)/modules/libscilab-cli.la
224
225
226 ################## libscilab-cli  ##################
227
228 libscilab_cli_la_SOURCES =
229
230 libscilab_cli_la_LDFLAGS = $(LAPACK_LIBS) $(BLAS_LIBS) -lstdc++
231
232 # Core modules
233 libscilab_cli_la_LIBADD = $(ENGINE_LIBS) $(NO_GUI_LIBS) $(OTHER_LIBS) $(EXTERNAL_LIBS)
234