Add DEBUG_SCICOS block image for palettes
[scilab.git] / scilab / modules / xcos / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2009 - Allan CORNET
4
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at    
9 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 #
11
12 #### Target ######
13 modulename=xcos
14
15
16 #### xcos : Conf files ####
17 libscixcos_la_rootdir = $(mydatadir)
18 libscixcos_la_root_DATA = changelog.txt license.txt readme.txt version.xml
19
20
21 #### xcos : init scripts ####
22 libscixcos_la_etcdir = $(mydatadir)/etc
23 libscixcos_la_etc_DATA =        etc/xcos.quit \
24                                 etc/xcos.start \
25                                 etc/Xcos-style.xml \
26                                 etc/xcosConfiguration.xml
27
28 XCOS_C_SOURCES = 
29
30 XCOS_CPP_SOURCES =      src/cpp/callxcos.cpp \
31                         src/jni/Xcos.cpp \
32                         src/jni/Xcos.hxx \
33                         src/jni/Signal.cpp \
34                         src/jni/Signal.hxx \
35                         src/jni/GiwsException.cpp
36
37 GIWS_WRAPPERS = src/jni/Xcos.giws.xml \
38 src/jni/XcosUtils.giws.xml
39
40 if GIWS
41 BUILT_SOURCES=giws
42 endif
43
44
45 GATEWAY_C_SOURCES = sci_gateway/c/gw_xcos.c
46
47 GATEWAY_CPP_SOURCES = \
48         sci_gateway/cpp/sci_Xcos.cpp \
49         sci_gateway/cpp/sci_xcosNotify.cpp \
50         sci_gateway/cpp/sci_warnBlockByUID.cpp \
51         sci_gateway/cpp/sci_closeXcosFromScilab.cpp \
52         sci_gateway/cpp/sci_xcosDiagramToHDF5.cpp \
53         sci_gateway/cpp/sci_xcosDiagramOpen.cpp \
54         sci_gateway/cpp/sci_xcosDiagramClose.cpp
55
56 libscixcos_la_CFLAGS= $(JAVA_JNI_INCLUDE) \
57                         -I$(top_srcdir)/libs/MALLOC/includes/ \
58                         -I$(top_srcdir)/modules/jvm/includes/ \
59                         -I$(top_srcdir)/modules/output_stream/includes \
60                         -I$(top_srcdir)/modules/fileio/includes \
61                         -I$(top_srcdir)/modules/localization/includes \
62                         -I$(top_srcdir)/modules/api_scilab/includes     
63
64 libscixcos_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
65                         -I$(srcdir)/includes/ \
66                         -I$(srcdir)/src/jni/ \
67                         -I$(srcdir)/src/cpp/ \
68                         -I$(srcdir)/src/c/ \
69                         -I$(top_srcdir)/modules/jvm/includes/ \
70                         -I$(top_srcdir)/modules/output_stream/includes \
71                         -I$(top_srcdir)/modules/localization/includes \
72                         -I$(top_srcdir)/modules/fileio/includes \
73                         -I$(top_srcdir)/modules/scicos_blocks/src/jni \
74                         -I$(top_srcdir)/modules/api_scilab/includes
75
76 # Without the xcos module 
77 libscixcos_disable_la_CFLAGS = -Iincludes/ \
78                         -I$(top_srcdir)/modules/output_stream/includes
79
80 XCOS_DISABLE_C_SOURCES = src/noxcos/noxcos.c
81 libscixcos_disable_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
82 libscixcos_disable_la_SOURCES = $(XCOS_DISABLE_C_SOURCES)
83
84 pkglib_LTLIBRARIES = libscixcos-disable.la
85
86 if GUI
87 pkglib_LTLIBRARIES += libscixcos.la 
88 endif
89
90 libscixcos_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
91
92 libscixcos_la_SOURCES = $(XCOS_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(XCOS_CPP_SOURCES)
93
94 # For the code check (splint)
95 CHECK_SRC= $(XCOS_C_SOURCES) $(GATEWAY_C_SOURCES)
96 INCLUDE_FLAGS = $(libscixcos_la_CFLAGS)
97
98
99
100 libscixcos_la_LIBADD = $(top_builddir)/modules/core/libscicore.la \
101 $(top_builddir)/libs/MALLOC/libscimalloc.la \
102 $(top_builddir)/modules/output_stream/libscioutput_stream.la
103
104
105 #### xcos : gateway declaration ####
106 libscixcos_la_sci_gatewaydir = $(mydatadir)/sci_gateway
107 libscixcos_la_sci_gateway_DATA = sci_gateway/xcos_gateway.xml
108
109
110 #### xcos : images files ####
111 libscixcos_la_imagesdir=$(mydatadir)/
112 nobase_libscixcos_la_images_DATA = images/blocks/Bache.gif \
113 images/blocks/BIGSOM_f.gif \
114 images/blocks/BOUNCEXY.gif \
115 images/blocks/BPLATFORM.gif \
116 images/blocks/CANIMXY.gif \
117 images/blocks/CANIMXY3D.gif \
118 images/blocks/CCS.gif \
119 images/blocks/CEVENTSCOPE.gif \
120 images/blocks/CFSCOPE.gif \
121 images/blocks/CLKSOMV_f.gif \
122 images/blocks/CLOCK_c.gif \
123 images/blocks/CLOCK_f.gif \
124 images/blocks/CSCOPE.gif \
125 images/blocks/CSCOPXY.gif \
126 images/blocks/CSCOPXY3D.gif \
127 images/blocks/CVS.gif \
128 images/blocks/Capacitor.gif \
129 images/blocks/ConstantVoltage.gif \
130 images/blocks/CurrentSensor.gif \
131 images/blocks/DEADBAND.gif \
132 images/blocks/Diode.gif \
133 images/blocks/Ground.gif \
134 images/blocks/Gyrator.gif \
135 images/blocks/HYSTHERESIS.gif \
136 images/blocks/INTEGRAL_m.gif \
137 images/blocks/IdealTransformer.gif \
138 images/blocks/Inductor.gif \
139 images/blocks/LOOKUP_f.gif \
140 images/blocks/NMOS.gif \
141 images/blocks/NPN.gif \
142 images/blocks/PMOS.gif \
143 images/blocks/PNP.gif \
144 images/blocks/PRODUCT.gif \
145 images/blocks/PROD_f.gif \
146 images/blocks/PerteDP.gif \
147 images/blocks/PotentialSensor.gif \
148 images/blocks/PuitsP.gif \
149 images/blocks/QUANT_f.gif \
150 images/blocks/RAMP.gif \
151 images/blocks/Resistor.gif \
152 images/blocks/SATURATION.gif \
153 images/blocks/SAT_f.gif \
154 images/blocks/STEP_FUNCTION.gif \
155 images/blocks/SUMMATION.gif \
156 images/blocks/SUM_f.gif \
157 images/blocks/SUPER_f.gif \
158 images/blocks/SampleCLK.gif \
159 images/blocks/SourceP.gif \
160 images/blocks/Switch.gif \
161 images/blocks/TIME_f.gif \
162 images/blocks/VanneReglante.gif \
163 images/blocks/VariableResistor.gif \
164 images/blocks/VoltageSensor.gif \
165 images/icons/document-new.png \
166 images/icons/document-open.png \
167 images/icons/document-print.png \
168 images/icons/document-save.png \
169 images/icons/edit-copy.png \
170 images/icons/edit-cut.png \
171 images/icons/edit-delete.png \
172 images/icons/edit-paste.png \
173 images/icons/edit-redo.png \
174 images/icons/edit-undo.png \
175 images/icons/list-add.png \
176 images/icons/list-remove.png \
177 images/icons/media-playback-start.png \
178 images/icons/process-stop.png \
179 images/icons/view-fullscreen.png \
180 images/icons/applications-system.png \
181 images/icons/help-browser.png \
182 images/palettes/ABS_VALUE.jpg \
183 images/palettes/AFFICH_m.jpg \
184 images/palettes/ANDBLK.jpg \
185 images/palettes/ANDLOG_f.jpg \
186 images/palettes/AUTOMAT.jpg \
187 images/palettes/Bache.jpg \
188 images/palettes/BACKLASH.jpg \
189 images/palettes/BIGSOM_f.jpg \
190 images/palettes/BITCLEAR.jpg \
191 images/palettes/BITSET.jpg \
192 images/palettes/BOUNCE.jpg \
193 images/palettes/BOUNCEXY.jpg \
194 images/palettes/BPLATFORM.jpg \
195 images/palettes/c_block.jpg \
196 images/palettes/CANIMXY.jpg \
197 images/palettes/CANIMXY3D.jpg \
198 images/palettes/Capacitor.jpg \
199 images/palettes/CBLOCK.jpg \
200 images/palettes/CCS.jpg \
201 images/palettes/CEVENTSCOPE.jpg \
202 images/palettes/CFSCOPE.jpg \
203 images/palettes/CLINDUMMY_f.jpg \
204 images/palettes/CLKFROM.jpg \
205 images/palettes/CLKGOTO.jpg \
206 images/palettes/CLKGotoTagVisibility.jpg \
207 images/palettes/CLKINV_f.jpg \
208 images/palettes/CLKOUTV_f.jpg \
209 images/palettes/CLKSOMV_f.jpg \
210 images/palettes/CLOCK_c.jpg \
211 images/palettes/CLR.jpg \
212 images/palettes/CLSS.jpg \
213 images/palettes/CMAT3D.jpg \
214 images/palettes/CMATVIEW.jpg \
215 images/palettes/CMSCOPE.jpg \
216 images/palettes/CONST_m.jpg \
217 images/palettes/ConstantVoltage.jpg \
218 images/palettes/CONSTRAINT_f.jpg \
219 images/palettes/CONVERT.jpg \
220 images/palettes/COSBLK_f.jpg \
221 images/palettes/Counter.jpg \
222 images/palettes/CSCOPE.jpg \
223 images/palettes/CSCOPXY.jpg \
224 images/palettes/CSCOPXY3D.jpg \
225 images/palettes/CUMSUM.jpg \
226 images/palettes/CurrentSensor.jpg \
227 images/palettes/CURV_f.jpg \
228 images/palettes/CVS.jpg \
229 images/palettes/DEADBAND.jpg \
230 images/palettes/DEBUG_SCICOS.jpg \
231 images/palettes/DELAY_f.jpg \
232 images/palettes/DELAYV_f.jpg \
233 images/palettes/DEMUX.jpg \
234 images/palettes/DERIV.jpg \
235 images/palettes/DFLIPFLOP.jpg \
236 images/palettes/Diode.jpg \
237 images/palettes/DLATCH.jpg \
238 images/palettes/DLR.jpg \
239 images/palettes/DLRADAPT_f.jpg \
240 images/palettes/DLSS.jpg \
241 images/palettes/DOLLAR_f.jpg \
242 images/palettes/EDGE_TRIGGER.jpg \
243 images/palettes/ENDBLK.jpg \
244 images/palettes/END_c.jpg \
245 images/palettes/ESELECT_f.jpg \
246 images/palettes/EVTDLY_c.jpg \
247 images/palettes/EVTGEN_f.jpg \
248 images/palettes/EVTVARDLY.jpg \
249 images/palettes/EXPBLK_m.jpg \
250 images/palettes/EXPRESSION.jpg \
251 images/palettes/EXTRACT.jpg \
252 images/palettes/Extract_Activation.jpg \
253 images/palettes/EXTRACTBITS.jpg \
254 images/palettes/EXTRACTOR.jpg \
255 images/palettes/EXTTRI.jpg \
256 images/palettes/fortran_block.jpg \
257 images/palettes/freq_div.jpg \
258 images/palettes/FROM.jpg \
259 images/palettes/FROMMO.jpg \
260 images/palettes/FROMWSB.jpg \
261 images/palettes/GAINBLK_f.jpg \
262 images/palettes/GENERAL_f.jpg \
263 images/palettes/generic_block3.jpg \
264 images/palettes/GENSIN_f.jpg \
265 images/palettes/GENSQR_f.jpg \
266 images/palettes/GOTO.jpg \
267 images/palettes/GOTOMO.jpg \
268 images/palettes/GotoTagVisibility.jpg \
269 images/palettes/GotoTagVisibilityMO.jpg \
270 images/palettes/Ground.jpg \
271 images/palettes/Gyrator.jpg \
272 images/palettes/HALT_f.jpg \
273 images/palettes/HYSTHERESIS.jpg \
274 images/palettes/IdealTransformer.jpg \
275 images/palettes/IFTHEL_f.jpg \
276 images/palettes/IN_f.jpg \
277 images/palettes/Inductor.jpg \
278 images/palettes/INIMPL_f.jpg \
279 images/palettes/INTEGRAL_f.jpg \
280 images/palettes/INTEGRAL_m.jpg \
281 images/palettes/INTMUL.jpg \
282 images/palettes/INTRP2BLK_f.jpg \
283 images/palettes/INTRPLBLK_f.jpg \
284 images/palettes/INVBLK.jpg \
285 images/palettes/ISELECT_m.jpg \
286 images/palettes/JKFLIPFLOP.jpg \
287 images/palettes/LOGBLK_f.jpg \
288 images/palettes/LOGIC.jpg \
289 images/palettes/LOGICAL_OP.jpg \
290 images/palettes/LOOKUP_f.jpg \
291 images/palettes/M_freq.jpg \
292 images/palettes/M_SWITCH.jpg \
293 images/palettes/MATBKSL.jpg \
294 images/palettes/MATCATH.jpg \
295 images/palettes/MATCATV.jpg \
296 images/palettes/MATDET.jpg \
297 images/palettes/MATDIAG.jpg \
298 images/palettes/MATDIV.jpg \
299 images/palettes/MATEIG.jpg \
300 images/palettes/MATEXPM.jpg \
301 images/palettes/MATINV.jpg \
302 images/palettes/MATLU.jpg \
303 images/palettes/MATMAGPHI.jpg \
304 images/palettes/MATMUL.jpg \
305 images/palettes/MATPINV.jpg \
306 images/palettes/MATRESH.jpg \
307 images/palettes/MATSING.jpg \
308 images/palettes/MATSUM.jpg \
309 images/palettes/MATTRAN.jpg \
310 images/palettes/MATZCONJ.jpg \
311 images/palettes/MATZREIM.jpg \
312 images/palettes/MAX_f.jpg \
313 images/palettes/MAXMIN.jpg \
314 images/palettes/MBLOCK.jpg \
315 images/palettes/MCLOCK_f.jpg \
316 images/palettes/MFCLCK_f.jpg \
317 images/palettes/MIN_f.jpg \
318 images/palettes/Modulo_Count.jpg \
319 images/palettes/MUX.jpg \
320 images/palettes/NEGTOPOS_f.jpg \
321 images/palettes/NMOS.jpg \
322 images/palettes/NPN.jpg \
323 images/palettes/NRMSOM_f.jpg \
324 images/palettes/OpAmp.jpg \
325 images/palettes/OUT_f.jpg \
326 images/palettes/OUTIMPL_f.jpg \
327 images/palettes/PDE.jpg \
328 images/palettes/PerteDP.jpg \
329 images/palettes/PID.jpg \
330 images/palettes/PMOS.jpg \
331 images/palettes/PNP.jpg \
332 images/palettes/POSTONEG_f.jpg \
333 images/palettes/PotentialSensor.jpg \
334 images/palettes/POWBLK_f.jpg \
335 images/palettes/PROD_f.jpg \
336 images/palettes/PRODUCT.jpg \
337 images/palettes/PuitsP.jpg \
338 images/palettes/QUANT_f.jpg \
339 images/palettes/RAMP.jpg \
340 images/palettes/RAND_m.jpg \
341 images/palettes/RATELIMITER.jpg \
342 images/palettes/READAU_f.jpg \
343 images/palettes/READC_f.jpg \
344 images/palettes/REGISTER.jpg \
345 images/palettes/RELATIONALOP.jpg \
346 images/palettes/RELAY_f.jpg \
347 images/palettes/Resistor.jpg \
348 images/palettes/RFILE_f.jpg \
349 images/palettes/RICC.jpg \
350 images/palettes/ROOTCOEF.jpg \
351 images/palettes/SAMPHOLD_m.jpg \
352 images/palettes/SampleCLK.jpg \
353 images/palettes/SATURATION.jpg \
354 images/palettes/SAWTOOTH_f.jpg \
355 images/palettes/scifunc_block_m.jpg \
356 images/palettes/SELECT_m.jpg \
357 images/palettes/SHIFT.jpg \
358 images/palettes/Sigbuilder.jpg \
359 images/palettes/SIGNUM.jpg \
360 images/palettes/SINBLK_f.jpg \
361 images/palettes/SineVoltage.jpg \
362 images/palettes/SourceP.jpg \
363 images/palettes/SQRT.jpg \
364 images/palettes/SRFLIPFLOP.jpg \
365 images/palettes/STEP_FUNCTION.jpg \
366 images/palettes/SUBMAT.jpg \
367 images/palettes/SUM_f.jpg \
368 images/palettes/SUMMATION.jpg \
369 images/palettes/SUPER_f.jpg \
370 images/palettes/Switch.jpg \
371 images/palettes/SWITCH2_m.jpg \
372 images/palettes/SWITCH_f.jpg \
373 images/palettes/TANBLK_f.jpg \
374 images/palettes/TCLSS.jpg \
375 images/palettes/TEXT_f.jpg \
376 images/palettes/TIME_DELAY.jpg \
377 images/palettes/TIME_f.jpg \
378 images/palettes/TKSCALE.jpg \
379 images/palettes/TOWS_c.jpg \
380 images/palettes/TRASH_f.jpg \
381 images/palettes/TrigFun.jpg \
382 images/palettes/VanneReglante.jpg \
383 images/palettes/VARIABLE_DELAY.jpg \
384 images/palettes/VariableResistor.jpg \
385 images/palettes/VoltageSensor.jpg \
386 images/palettes/VsourceAC.jpg \
387 images/palettes/VVsourceAC.jpg \
388 images/palettes/WFILE_f.jpg \
389 images/palettes/WRITEAU_f.jpg \
390 images/palettes/WRITEC_f.jpg \
391 images/palettes/ZCROSS_f.jpg
392
393 if GUI
394 if HDF5
395 USEANT=1
396 endif
397 endif
398
399 include $(top_srcdir)/Makefile.incl.am