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