8a392f96b467cf544505051cfc37413f8497237d
[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.1-en.txt
9
10 #### Target ######
11 modulename=scicos
12 DISABLE_HELP_CLEAN=yes
13
14 #### Source listing ######
15
16 SCICOS_C_SOURCES = \
17 src/c/scilab5_needed_stubs.c \
18 src/c/tree.c \
19 src/c/scicos_malloc.c \
20 src/c/scicos_print.c \
21 src/c/import.c \
22 src/c/scicos.c \
23 src/c/scicos_free.c \
24 src/c/sciblk2.c \
25 src/c/sciblk4.c \
26 src/c/ezxml.c \
27 src/c/il_state.c \
28 src/c/il_sim.c \
29 src/c/createblklist.c \
30 src/c/var2sci.c \
31 src/c/copyvarfromlistentry.c \
32 src/c/MlistGetFieldNumber.c \
33 src/c/extractblklist.c \
34 src/c/lsodar.c \
35 src/c/ddaskr.c
36
37 SCICOS_FORTRAN_SOURCES = src/fortran/scitovv.f \
38 src/fortran/vvtosci.f \
39 src/fortran/skipvars.f \
40 src/fortran/coselm.f \
41 src/fortran/scitod.f \
42 src/fortran/sctree.f \
43 src/fortran/scierr.f \
44 src/fortran/ftree2.f \
45 src/fortran/ftree3.f \
46 src/fortran/list2vars.f \
47 src/fortran/ftree4.f \
48 src/fortran/scitoi.f \
49 src/fortran/scifunc.f
50
51 NO_SCICOS_C_SOURCES = src/c/noscicos/noscicos.c
52
53 GATEWAY_C_SOURCES = sci_gateway/c/gw_scicos.c \
54 sci_gateway/c/sci_buildouttb.c \
55 sci_gateway/c/sci_callblk.c \
56 sci_gateway/c/sci_coserror.c \
57 sci_gateway/c/sci_ctree2.c \
58 sci_gateway/c/sci_ctree3.c \
59 sci_gateway/c/sci_ctree4.c \
60 sci_gateway/c/sci_curblock.c \
61 sci_gateway/c/sci_curblockc.c \
62 sci_gateway/c/sci_data2sig.c \
63 sci_gateway/c/sci_diffobjs.c \
64 sci_gateway/c/sci_duplicate.c \
65 sci_gateway/c/sci_end_scicosim.c \
66 sci_gateway/c/sci_ftree2.c \
67 sci_gateway/c/sci_ftree3.c \
68 sci_gateway/c/sci_ftree4.c \
69 sci_gateway/c/sci_getblocklabel.c \
70 sci_gateway/c/sci_getscicosvars.c \
71 sci_gateway/c/sci_haltscicos.c \
72 sci_gateway/c/sci_loadScicos.c \
73 sci_gateway/c/sci_model2blk.c \
74 sci_gateway/c/sci_phase_simulation.c \
75 sci_gateway/c/sci_pointer_xproperty.c \
76 sci_gateway/c/sci_scicos_debug.c \
77 sci_gateway/c/sci_scicos_debug_count.c \
78 sci_gateway/c/sci_scicosim.c \
79 sci_gateway/c/sci_scicos_time.c \
80 sci_gateway/c/sci_sctree.c \
81 sci_gateway/c/sci_set_blockerror.c \
82 sci_gateway/c/sci_set_xproperty.c \
83 sci_gateway/c/sci_sig2data.c \
84 sci_gateway/c/sci_var2vec.c \
85 sci_gateway/c/sci_vec2var.c
86
87 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_f_ctree.f \
88 sci_gateway/fortran/sci_f_curblock.f \
89 sci_gateway/fortran/sci_f_debug_count.f \
90 sci_gateway/fortran/sci_f_getblocklabel.f \
91 sci_gateway/fortran/sci_f_scicos_debug.f \
92 sci_gateway/fortran/sci_f_tree2.f \
93 sci_gateway/fortran/sci_f_tree3.f \
94 sci_gateway/fortran/sci_f_tree4.f \
95 sci_gateway/fortran/sci_f_var2vec.f \
96 sci_gateway/fortran/sci_f_vec2var.f
97
98 #### Multi-libraries handling ######
99
100 noinst_LTLIBRARIES = libsciscicos-algo.la
101 if XCOS
102 pkglib_LTLIBRARIES = libscisundials.la \
103                      libsciscicos-cli.la
104 if GUI
105 pkglib_LTLIBRARIES += libsciscicos.la
106 endif
107 endif
108
109 libsciscicos_algo_la_LDFLAGS = $(AM_LDFLAGS)
110 libsciscicos_cli_la_LDFLAGS = $(AM_LDFLAGS)
111 libsciscicos_la_LDFLAGS = $(AM_LDFLAGS)
112
113 if XCOS
114 libsciscicos_algo_la_CPPFLAGS= -I$(srcdir)/includes/ \
115                         -I$(srcdir)/src/c/ \
116                         -I$(top_srcdir)/modules/output_stream/includes/ \
117                         -I$(top_srcdir)/modules/dynamic_link/includes/ \
118                         -I$(top_srcdir)/modules/string/includes/ \
119                         -I$(top_srcdir)/modules/localization/includes/ \
120                         -I$(top_srcdir)/modules/intersci/includes/ \
121                         -I$(top_srcdir)/modules/scicos_blocks/includes/ \
122                         -I$(top_srcdir)/modules/action_binding/includes/ \
123                         -I$(top_srcdir)/modules/time/includes/ \
124                         -I$(top_srcdir)/modules/api_scilab/includes/ \
125                         -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/ \
126                         -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/sundials/ \
127                         -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/ida/ \
128                         $(AM_CPPFLAGS)
129 else
130 libsciscicos_algo_la_CPPFLAGS= -I$(top_srcdir)/modules/output_stream/includes/ \
131                         -I$(top_srcdir)/modules/api_scilab/includes/ \
132                         -I$(top_srcdir)/modules/scicos/includes/ \
133                         $(AM_CPPFLAGS)
134 endif
135 libsciscicos_cli_la_CPPFLAGS = $(libsciscicos_algo_la_CPPFLAGS)
136 libsciscicos_la_CPPFLAGS = $(libsciscicos_algo_la_CPPFLAGS)
137
138 if XCOS
139 libsciscicos_algo_la_SOURCES = $(SCICOS_C_SOURCES) $(SCICOS_FORTRAN_SOURCES)
140 libsciscicos_cli_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
141 libsciscicos_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
142 else
143 libsciscicos_algo_la_SOURCES = $(NO_SCICOS_C_SOURCES)
144 libsciscicos_cli_la_SOURCES =
145 libsciscicos_la_SOURCES =
146 endif
147
148 libsciscicos_algo_la_LIBADD =
149 libsciscicos_cli_la_LIBADD = libsciscicos-algo.la
150 libsciscicos_la_LIBADD = libsciscicos-algo.la
151 if XCOS
152 libsciscicos_cli_la_LIBADD += libscisundials.la \
153     $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks-cli.la
154 if GUI
155 libsciscicos_la_LIBADD += libscisundials.la \
156     $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la
157 endif
158 endif
159
160 libsciscicos_algo_la_LIBADD += $(RT_LIB)
161 libsciscicos_cli_la_LIBADD += $(RT_LIB)
162 libsciscicos_la_LIBADD += $(RT_LIB)
163
164
165 # For the code check (splint)
166 CHECK_SRC= $(SCICOS_C_SOURCES) $(GATEWAY_C_SOURCES)
167 INCLUDE_FLAGS = $(libsciscicos_la_CFLAGS)
168
169 #### scicos : Conf files ####
170 libsciscicos_la_rootdir = $(mydatadir)
171 libsciscicos_la_root_DATA =  license.txt
172
173
174 #### scicos : init scripts ####
175 libsciscicos_la_etcdir = $(mydatadir)/etc
176 libsciscicos_la_etc_DATA = etc/scicos.quit etc/scicos.start
177
178 #### scicos : tcl scripts ####
179 libsciscicos_la_tcldir = $(mydatadir)/tcl
180 libsciscicos_la_tcl_DATA = tcl/MIHM.tcl \
181 tcl/scicos.gif \
182 tcl/scicos2.gif
183
184 #### scicos : gateway declaration ####
185 libsciscicos_la_sci_gatewaydir = $(mydatadir)/sci_gateway
186 libsciscicos_la_sci_gateway_DATA = sci_gateway/scicos_gateway.xml
187
188
189 #### scicos : include files ####
190 libsciscicos_la_includedir=$(pkgincludedir)/
191 libsciscicos_la_include_HEADERS = includes/scicos.h \
192 includes/scicos-def.h \
193 includes/scicos_free.h \
194 includes/scicos_malloc.h \
195 includes/scicos_math.h \
196 includes/scicos_print.h \
197 includes/dynlib_scicos.h \
198 includes/import.h
199
200
201
202 #### scicos : cosf files ####
203 libsciscicos_la_cosfdir=$(mydatadir)
204 nobase_libsciscicos_la_cosf_DATA = palettes/Branching.cosf \
205 palettes/DemoBlocks.cosf \
206 palettes/Events.cosf \
207 palettes/Integer.cosf \
208 palettes/Linear.cosf \
209 palettes/Matrix.cosf \
210 palettes/Non_linear.cosf \
211 palettes/OldBlocks.cosf \
212 palettes/Others.cosf \
213 palettes/Sinks.cosf \
214 palettes/Sources.cosf \
215 palettes/Threshold.cosf
216
217 #### scicos : MACROS ####
218 MACROSDIRSEXT= macros/scicos_auto \
219 macros/scicos_scicos \
220 macros/scicos_utils
221
222
223 #### scicos : SUNDIALS STUFF ####
224 SUNDIALS_SOURCES = src/scicos_sundials/src/cvode/cvode.c \
225 src/scicos_sundials/src/cvode/cvode_dense.c \
226 src/scicos_sundials/src/cvode/cvode_direct.c \
227 src/scicos_sundials/src/cvode/cvode_io.c \
228 src/scicos_sundials/src/ida/ida.c \
229 src/scicos_sundials/src/ida/ida_dense.c \
230 src/scicos_sundials/src/ida/ida_direct.c \
231 src/scicos_sundials/src/ida/ida_ic.c \
232 src/scicos_sundials/src/ida/ida_io.c \
233 src/scicos_sundials/src/kinsol/kinsol.c \
234 src/scicos_sundials/src/kinsol/kinsol_dense.c \
235 src/scicos_sundials/src/kinsol/kinsol_direct.c \
236 src/scicos_sundials/src/kinsol/kinsol_io.c \
237 src/scicos_sundials/src/nvec_ser/nvector_serial.c \
238 src/scicos_sundials/src/sundials/sundials_dense.c \
239 src/scicos_sundials/src/sundials/sundials_direct.c \
240 src/scicos_sundials/src/sundials/sundials_math.c \
241 src/scicos_sundials/src/sundials/sundials_nvector.c \
242 src/scicos_sundials/src/sundials/sundials_extension.c
243
244 libscisundials_la_CFLAGS = -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include \
245 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/cvode \
246 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/ida \
247 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/kinsol \
248 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/nvec_ser \
249 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/sundials \
250 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/cvode \
251 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/ida \
252 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/kinsol \
253 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/nvec_ser \
254 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/sundials
255
256
257 libscisundials_la_SOURCES = $(SUNDIALS_SOURCES)
258
259 .NOTPARALLEL: libscisundials.la libsciscicos-algo.la
260
261 include $(top_srcdir)/Makefile.incl.am
262
263 # Build modelica stuff
264 include $(srcdir)/Makefile.modelica.am
265