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