We no longer need jhdf5. deleting all dependencies. Closes bug #11556 and remove...
[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 graphic_objects \
61 renderer \
62 graphic_export \
63 gui \
64 graphics \
65 optimization \
66 symbolic \
67 randlib \
68 interpolation \
69 sound \
70 overloading \
71 m2sci \
72 development_tools \
73 compatibility_functions \
74 helptools \
75 umfpack \
76 demo_tools \
77 genetic_algorithms \
78 simulated_annealing \
79 matio \
80 atoms \
81 hdf5 \
82 graph\
83 xcos \
84 scinotes \
85 parallel \
86 modules_manager \
87 ui_data \
88 history_browser \
89 preferences \
90 xml \
91 types \
92 external_objects
93
94 if XCOS
95 SUBDIRS += scicos_blocks
96 endif
97
98 SUBDIRS += scicos
99
100 SUBDIRS += .
101
102 # javasci should be compile at the end because it needs libscilab.la
103 # Don't forget that the order in subdirs does matter !!!
104 if JAVASCI
105 SUBDIRS += javasci
106 endif
107
108 #### Basic files ####
109 libscilab_la_rootdir = $(mydatadir)
110
111 # libscilab is the full library with the GUI
112 # libscilab-cli is for scilab-cli (without GUI)
113 pkglib_LTLIBRARIES = libscilab-cli.la libscilab.la
114 libscilab_la_SOURCES =
115 #libscilab_cli_la_SOURCES =
116
117 libscilab_la_LDFLAGS = $(LAPACK_LIBS) $(BLAS_LIBS) $(AM_LDFLAGS)
118 #libscilab_cli_la_LDFLAGS = $(LAPACK_LIBS) $(BLAS_LIBS) -lstdc++
119
120 EXTERNAL_LIBS = $(top_builddir)/libs/hashtable/libscihashtable.la \
121 $(top_builddir)/libs/MALLOC/libscimalloc.la  \
122 $(top_builddir)/libs/doublylinkedlist/libscidoublylinkedlist.la  \
123 $(top_builddir)/libs/libst/libscilibst.la
124
125
126 GUI_LIBS = $(top_builddir)/modules/gui/libscigui.la \
127         $(top_builddir)/modules/renderer/libscirenderer.la \
128         $(top_builddir)/modules/graphics/libscigraphics.la \
129         $(top_builddir)/modules/graphic_export/libscigraphic_export.la \
130         $(top_builddir)/modules/console/libsciconsole.la \
131         $(top_builddir)/modules/action_binding/libsciaction_binding.la \
132         $(top_builddir)/modules/jvm/libscijvm.la \
133         $(top_builddir)/modules/graphic_objects/libscigraphic_objects.la \
134         $(top_builddir)/modules/scinotes/libsciscinotes.la \
135         $(top_builddir)/modules/ui_data/libsciui_data.la \
136         $(top_builddir)/modules/history_browser/libscihistory_browser.la \
137         $(top_builddir)/modules/commons/libscicommons.la \
138         $(top_builddir)/modules/tclsci/libscitclsci.la \
139         $(top_builddir)/modules/preferences/libscipreferences.la
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-minimal.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/graphic_objects/libscigraphic_objects-disable.la \
149         $(top_builddir)/modules/scinotes/libsciscinotes-disable.la \
150         $(top_builddir)/modules/ui_data/libsciui_data-disable.la \
151         $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la \
152         $(top_builddir)/modules/commons/libscicommons-disable.la
153
154
155 ENGINE_LIBS =   $(top_builddir)/modules/fileio/libscifileio.la \
156         $(top_builddir)/modules/mexlib/libmex.la \
157         $(top_builddir)/modules/functions/libscifunctions.la \
158         $(top_builddir)/modules/parameters/libsciparameters.la \
159         $(top_builddir)/modules/boolean/libsciboolean.la \
160         $(top_builddir)/modules/cacsd/libscicacsd.la \
161         $(top_builddir)/modules/core/libscicore.la \
162         $(top_builddir)/modules/call_scilab/libscicall_scilab.la \
163         $(top_builddir)/modules/api_scilab/libsciapi_scilab.la \
164         $(top_builddir)/modules/data_structures/libscidata_structures.la \
165         $(top_builddir)/modules/differential_equations/libscidifferential_equations.la \
166         $(top_builddir)/modules/double/libscidouble.la \
167         $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
168         $(top_builddir)/modules/integer/libsciinteger.la \
169         $(top_builddir)/modules/intersci/libsciintersci.la \
170         $(top_builddir)/modules/io/libsciio.la \
171         $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la \
172         $(top_builddir)/modules/localization/libscilocalization.la \
173         $(top_builddir)/modules/polynomials/libscipolynomials.la \
174         $(top_builddir)/modules/special_functions/libscispecial_functions.la \
175         $(top_builddir)/modules/time/libscitime.la \
176         $(top_builddir)/modules/windows_tools/libsciwindows_tools.la \
177         $(top_builddir)/modules/sparse/libscisparse.la \
178         $(top_builddir)/modules/completion/libscicompletion.la \
179         $(top_builddir)/modules/history_manager/libscihistory_manager.la \
180         $(top_builddir)/modules/output_stream/libscioutput_stream.la \
181         $(top_builddir)/modules/string/libscistring.la \
182         $(top_builddir)/modules/hdf5/libscihdf5.la \
183         $(top_builddir)/modules/fftw/libscifftw.la \
184         $(top_builddir)/modules/statistics/libscistatistics.la \
185         $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
186         $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la \
187         $(top_builddir)/modules/xml/libscixml.la \
188         $(top_builddir)/modules/external_objects/libsciexternal_objects.la \
189         $(top_builddir)/modules/preferences/libscipreferences-cli.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/parallel/libsciparallel.la
208
209
210 # Core modules
211 #libscilab_cli_la_LIBADD = $(ENGINE_LIBS) $(NO_GUI_LIBS) $(OTHER_LIBS) $(EXTERNAL_LIBS)
212
213 libscilab_la_LIBADD =
214
215 if GUI
216 libscilab_la_LIBADD += $(GUI_LIBS)      $(top_builddir)/modules/types/libscitypes.la
217 else
218 libscilab_la_LIBADD += $(NO_GUI_LIBS)
219 endif
220
221 # Core modules
222 libscilab_la_LIBADD += $(OTHER_LIBS) $(EXTERNAL_LIBS) \
223         $(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) $(AM_LDFLAGS)
231
232 # Core modules
233 libscilab_cli_la_LIBADD = $(ENGINE_LIBS) $(NO_GUI_LIBS) $(OTHER_LIBS) $(EXTERNAL_LIBS)
234
235 .NOTPARALLEL: libscilab-cli.la libscilab.la