Update of the localization templates
[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 = $(RT_LIB) $(AM_LDFLAGS)
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_CPPFLAGS= -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                         $(AM_CPPFLAGS)
127
128
129 libsciscicos_algo_la_SOURCES = $(SCICOS_C_SOURCES) $(SCICOS_FORTRAN_SOURCES)
130 libsciscicos_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
131 libsciscicos_algo_la_CPPFLAGS = $(libsciscicos_la_CPPFLAGS)
132
133 # For the code check (splint)
134 CHECK_SRC= $(SCICOS_C_SOURCES) $(GATEWAY_C_SOURCES)
135 INCLUDE_FLAGS = $(libsciscicos_la_CPPFLAGS)
136
137 libsciscicos_la_LIBADD = libsciscicos-algo.la libscisundials.la \
138         $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la 
139
140 if GUI
141 libsciscicos_la_LIBADD += $(top_builddir)/modules/graphics/libscigraphics.la 
142 endif
143
144 #### scicos : Conf files ####
145 libsciscicos_la_rootdir = $(mydatadir)
146 libsciscicos_la_root_DATA =  license.txt
147
148
149 #### scicos : init scripts ####
150 libsciscicos_la_etcdir = $(mydatadir)/etc
151 libsciscicos_la_etc_DATA = etc/scicos.quit etc/scicos.start
152
153 #### scicos : gateway declaration ####
154 libsciscicos_la_sci_gatewaydir = $(mydatadir)/sci_gateway
155 libsciscicos_la_sci_gateway_DATA = sci_gateway/scicos_gateway.xml
156
157
158 #### scicos : include files ####
159 libsciscicos_la_includedir=$(pkgincludedir)/
160 libsciscicos_la_include_HEADERS = includes/scicos.h \
161 includes/scicos-def.h \
162 includes/scicos_free.h \
163 includes/scicos_malloc.h \
164 includes/scicos_math.h \
165 includes/dynlib_scicos.h \
166 includes/import.h
167
168
169
170 #### scicos : cosf files ####
171 libsciscicos_la_cosfdir=$(mydatadir)
172 nobase_libsciscicos_la_cosf_DATA = palettes/Branching.cosf \
173 palettes/DemoBlocks.cosf \
174 palettes/Events.cosf \
175 palettes/Integer.cosf \
176 palettes/Linear.cosf \
177 palettes/Lookup_Tables.cosf \
178 palettes/Matrix.cosf \
179 palettes/Modelica.cosf \
180 palettes/Non_linear.cosf \
181 palettes/OldBlocks.cosf \
182 palettes/Others.cosf \
183 palettes/Sinks.cosf \
184 palettes/Sources.cosf \
185 palettes/Threshold.cosf
186
187 #### scicos : MACROS ####
188 MACROSDIRSEXT= macros/scicos_auto \
189 macros/scicos_scicos \
190 macros/scicos_utils
191
192
193 #### scicos : SUNDIALS STUFF ####
194 SUNDIALS_SOURCES = src/scicos_sundials/src/cvode/cvode.c \
195 src/scicos_sundials/src/cvode/cvode_dense.c \
196 src/scicos_sundials/src/cvode/cvode_io.c \
197 src/scicos_sundials/src/ida/ida.c \
198 src/scicos_sundials/src/ida/ida_dense.c \
199 src/scicos_sundials/src/ida/ida_ic.c \
200 src/scicos_sundials/src/ida/ida_io.c \
201 src/scicos_sundials/src/kinsol/kinsol.c \
202 src/scicos_sundials/src/kinsol/kinsol_dense.c \
203 src/scicos_sundials/src/kinsol/kinsol_io.c \
204 src/scicos_sundials/src/nvec_ser/nvector_serial.c \
205 src/scicos_sundials/src/sundials/sundials_dense.c \
206 src/scicos_sundials/src/sundials/sundials_math.c \
207 src/scicos_sundials/src/sundials/sundials_nvector.c \
208 src/scicos_sundials/src/sundials/sundials_smalldense.c \
209 src/scicos_sundials/src/sundials/sundials_extension.c
210
211 libscisundials_la_CPPFLAGS = -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include \
212 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/cvode \
213 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/ida \
214 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/kinsol \
215 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/nvec_ser \
216 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/include/sundials \
217 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/cvode \
218 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/ida \
219 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/kinsol \
220 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/nvec_ser \
221 -I$(top_srcdir)/modules/scicos/src/scicos_sundials/src/sundials \
222 $(AM_CPPFLAGS)
223
224
225 libscisundials_la_SOURCES = $(SUNDIALS_SOURCES)
226
227 else
228
229 pkglib_LTLIBRARIES = libsciscicos.la
230 NO_SCICOS_C_SOURCES = src/c/noscicos/noscicos.c
231
232 libsciscicos_la_SOURCES = $(NO_SCICOS_C_SOURCES)
233
234 libsciscicos_la_CPPFLAGS= -I$(top_srcdir)/modules/output_stream/includes/ \
235 -I$(top_srcdir)/modules/api_scilab/includes/ \
236 -I$(top_srcdir)/modules/scicos/includes/ \
237 $(AM_CPPFLAGS)
238
239 #### scicos : init scripts ####
240 libsciscicos_la_etcdir = $(mydatadir)/etc
241 libsciscicos_la_etc_DATA = etc/scicos.quit etc/scicos.start
242
243 endif
244
245 .NOTPARALLEL: libscisundials.la libsciscicos.la
246