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