Scicos Clean: Delete permutobj function.
[scilab.git] / scilab / modules / scicos / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2008 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 #
4 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10 #### Target ######
11 modulename=scicos
12 DISABLE_HELP_CLEAN=yes
13
14 libsciscicos_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(RT_LIB)
15
16
17 include $(top_srcdir)/Makefile.incl.am
18
19 # Build modelica stuff
20 include $(srcdir)/Makefile.modelica.am
21
22
23 if XCOS
24 # Code not factorized with the one on the bottom since sundials must be
25 # compiled first
26 pkglib_LTLIBRARIES = libscisundials.la libsciscicos.la
27 noinst_LTLIBRARIES = libsciscicos-algo.la
28
29 SCICOS_C_SOURCES = src/c/tree.c \
30 src/c/scicos_malloc.c \
31 src/c/import.c \
32 src/c/slider.c \
33 src/c/scicos.c \
34 src/c/scicos_free.c \
35 src/c/sciblk2.c \
36 src/c/scicosclip.c \
37 src/c/sciblk4.c \
38 src/c/ezxml.c \
39 src/c/il_state.c \
40 src/c/il_sim.c \
41 src/c/createblklist.c \
42 src/c/var2sci.c \
43 src/c/copyvarfromlistentry.c \
44 src/c/MlistGetFieldNumber.c \
45 src/c/extractblklist.c
46
47 SCICOS_FORTRAN_SOURCES = src/fortran/scitovv.f \
48 src/fortran/vvtosci.f \
49 src/fortran/skipvars.f \
50 src/fortran/coselm.f \
51 src/fortran/scitod.f \
52 src/fortran/sctree.f \
53 src/fortran/scierr.f \
54 src/fortran/ftree2.f \
55 src/fortran/ftree3.f \
56 src/fortran/list2vars.f \
57 src/fortran/ftree4.f \
58 src/fortran/scitoi.f \
59 src/fortran/scifunc.f
60
61 GATEWAY_C_SOURCES = sci_gateway/c/gw_scicos.c \
62 sci_gateway/c/sci_buildouttb.c \
63 sci_gateway/c/sci_callblk.c \
64 sci_gateway/c/sci_coserror.c \
65 sci_gateway/c/sci_ctree2.c \
66 sci_gateway/c/sci_ctree3.c \
67 sci_gateway/c/sci_ctree4.c \
68 sci_gateway/c/sci_curblock.c \
69 sci_gateway/c/sci_curblockc.c \
70 sci_gateway/c/sci_data2sig.c \
71 sci_gateway/c/sci_diffobjs.c \
72 sci_gateway/c/sci_duplicate.c \
73 sci_gateway/c/sci_end_scicosim.c \
74 sci_gateway/c/sci_ftree2.c \
75 sci_gateway/c/sci_ftree3.c \
76 sci_gateway/c/sci_ftree4.c \
77 sci_gateway/c/sci_getblocklabel.c \
78 sci_gateway/c/sci_getscicosvars.c \
79 sci_gateway/c/sci_haltscicos.c \
80 sci_gateway/c/sci_loadScicos.c \
81 sci_gateway/c/sci_model2blk.c \
82 sci_gateway/c/sci_phase_simulation.c \
83 sci_gateway/c/sci_pointer_xproperty.c \
84 sci_gateway/c/sci_scicos_debug.c \
85 sci_gateway/c/sci_scicos_debug_count.c \
86 sci_gateway/c/sci_scicosim.c \
87 sci_gateway/c/sci_scicos_time.c \
88 sci_gateway/c/sci_sctree.c \
89 sci_gateway/c/sci_set_blockerror.c \
90 sci_gateway/c/sci_set_xproperty.c \
91 sci_gateway/c/sci_sig2data.c \
92 sci_gateway/c/sci_var2vec.c \
93 sci_gateway/c/sci_vec2var.c
94
95
96 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_f_ctree.f \
97 sci_gateway/fortran/sci_f_curblock.f \
98 sci_gateway/fortran/sci_f_debug_count.f \
99 sci_gateway/fortran/sci_f_getblocklabel.f \
100 sci_gateway/fortran/sci_f_scicos_debug.f \
101 sci_gateway/fortran/sci_f_tree2.f \
102 sci_gateway/fortran/sci_f_tree3.f \
103 sci_gateway/fortran/sci_f_tree4.f \
104 sci_gateway/fortran/sci_f_var2vec.f \
105 sci_gateway/fortran/sci_f_vec2var.f
106
107 #CLEANFILES=includes/blocks.h build/Cblocknames build/Fblocknames
108
109 libsciscicos_la_CFLAGS= -I$(srcdir)/includes/ \
110                         -I$(srcdir)/src/c/ \
111                         -I$(top_srcdir)/libs/MALLOC/includes/ \
112                         -I$(top_srcdir)/modules/output_stream/includes \
113                         -I$(top_srcdir)/libs/doublylinkedlist/includes \
114                         -I$(top_srcdir)/modules/graphics/includes \
115                         -I$(top_srcdir)/modules/dynamic_link/includes \
116                         -I$(top_srcdir)/modules/string/includes \
117                         -I$(top_srcdir)/modules/localization/includes \
118                         -I$(top_srcdir)/modules/intersci/includes \
119                         -I$(top_srcdir)/modules/scicos_blocks/includes \
120                         -I$(top_srcdir)/modules/action_binding/includes \
121                         -I$(top_srcdir)/modules/time/includes \
122                         -I$(top_srcdir)/modules/api_scilab/includes \
123                         -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include \
124                         -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/sundials \
125                         -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/ida
126
127
128 libsciscicos_algo_la_SOURCES = $(SCICOS_C_SOURCES) $(SCICOS_FORTRAN_SOURCES)
129 libsciscicos_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
130 libsciscicos_algo_la_CFLAGS = $(libsciscicos_la_CFLAGS)
131
132 # For the code check (splint)
133 CHECK_SRC= $(SCICOS_C_SOURCES) $(GATEWAY_C_SOURCES)
134 INCLUDE_FLAGS = $(libsciscicos_la_CFLAGS)
135
136 libsciscicos_la_LIBADD = libsciscicos-algo.la $(top_builddir)/modules/string/libscistring.la \
137 $(top_builddir)/modules/mexlib/libmat.la \
138 $(top_builddir)/modules/mexlib/libmx.la \
139 $(top_builddir)/modules/intersci/libsciintersci.la \
140 $(top_builddir)/modules/graphics/libscigraphics.la \
141 $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
142 $(top_builddir)/modules/time/libscitime.la \
143 $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
144 $(top_builddir)/modules/scicos/libscisundials.la \
145 $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la \
146 $(top_builddir)/modules/mexlib/libmex.la \
147  \
148 $(top_builddir)/libs/MALLOC/libscimalloc.la \
149 $(top_builddir)/modules/output_stream/libscioutput_stream.la \
150 $(top_builddir)/modules/arnoldi/libsciarnoldi.la
151
152 #### scicos : Conf files ####
153 libsciscicos_la_rootdir = $(mydatadir)
154 libsciscicos_la_root_DATA =  license.txt
155
156
157 #### scicos : init scripts ####
158 libsciscicos_la_etcdir = $(mydatadir)/etc
159 libsciscicos_la_etc_DATA = etc/scicos.quit etc/scicos.start
160
161 #### scicos : gateway declaration ####
162 libsciscicos_la_sci_gatewaydir = $(mydatadir)/sci_gateway
163 libsciscicos_la_sci_gateway_DATA = sci_gateway/scicos_gateway.xml
164
165
166 #### scicos : include files ####
167 libsciscicos_la_includedir=$(pkgincludedir)/
168 libsciscicos_la_include_HEADERS = includes/scicos.h \
169 includes/scicos-def.h \
170 includes/scicos_free.h \
171 includes/scicos_malloc.h \
172 includes/scicos_math.h
173
174
175 #### scicos : cosf files ####
176 libsciscicos_la_cosfdir=$(mydatadir)
177 nobase_libsciscicos_la_cosf_DATA = palettes/Branching.cosf \
178 palettes/DemoBlocks.cosf \
179 palettes/Events.cosf \
180 palettes/Integer.cosf \
181 palettes/Linear.cosf \
182 palettes/Lookup_Tables.cosf \
183 palettes/Matrix.cosf \
184 palettes/Modelica.cosf \
185 palettes/Non_linear.cosf \
186 palettes/OldBlocks.cosf \
187 palettes/Others.cosf \
188 palettes/Sinks.cosf \
189 palettes/Sources.cosf \
190 palettes/Threshold.cosf
191
192 #### scicos : MACROS ####
193 MACROSDIRSEXT= macros/scicos_auto \
194 macros/scicos_menus \
195 macros/scicos_scicos \
196 macros/scicos_utils
197
198
199 #### scicos : SUNDIALS STUFF ####
200 SUNDIALS_SOURCES = src/scicos_sundials/src/cvode/cvode.c \
201 src/scicos_sundials/src/cvode/cvode_dense.c \
202 src/scicos_sundials/src/cvode/cvode_io.c \
203 src/scicos_sundials/src/ida/ida.c \
204 src/scicos_sundials/src/ida/ida_dense.c \
205 src/scicos_sundials/src/ida/ida_ic.c \
206 src/scicos_sundials/src/ida/ida_io.c \
207 src/scicos_sundials/src/kinsol/kinsol.c \
208 src/scicos_sundials/src/kinsol/kinsol_dense.c \
209 src/scicos_sundials/src/kinsol/kinsol_io.c \
210 src/scicos_sundials/src/nvec_ser/nvector_serial.c \
211 src/scicos_sundials/src/sundials/sundials_dense.c \
212 src/scicos_sundials/src/sundials/sundials_math.c \
213 src/scicos_sundials/src/sundials/sundials_nvector.c \
214 src/scicos_sundials/src/sundials/sundials_smalldense.c \
215 src/scicos_sundials/src/sundials/sundials_extension.c
216
217 libscisundials_la_CFLAGS = -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include \
218 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/cvode \
219 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/ida \
220 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/kinsol \
221 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/nvec_ser \
222 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/sundials \
223 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/cvode \
224 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/ida \
225 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/kinsol \
226 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/nvec_ser \
227 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/sundials
228
229
230 libscisundials_la_SOURCES = $(SUNDIALS_SOURCES)
231
232 else
233
234 pkglib_LTLIBRARIES = libsciscicos.la
235 NO_SCICOS_C_SOURCES = src/c/noscicos/noscicos.c
236
237 libsciscicos_la_SOURCES = $(NO_SCICOS_C_SOURCES)
238
239 libsciscicos_la_CFLAGS= -I$(top_srcdir)/modules/output_stream/includes \
240 -I$(top_srcdir)/modules/api_scilab/includes \
241 -I$(top_srcdir)/modules/scicos/includes
242
243 #### scicos : init scripts ####
244 libsciscicos_la_etcdir = $(mydatadir)/etc
245 libsciscicos_la_etc_DATA = etc/scicos.quit etc/scicos.start
246
247 endif
248
249 .NOTPARALLEL: libscisundials.la libsciscicos.la
250