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