Merge remote-tracking branch 'origin/master' into YaSp
[scilab.git] / scilab / modules / threads / Makefile.in
1 # Makefile.in generated by automake 1.11.3 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6 # Foundation, Inc.
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # PARTICULAR PURPOSE.
15
16 @SET_MAKE@
17
18 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
19 # Copyright (C) 2011 - DIGITEO - Antoine ELIAS
20 #
21 # This file must be used under the terms of the CeCILL.
22 # This source file is licensed as described in the file COPYING, which
23 # you should have received as part of this distribution.  The terms
24 # are also available at
25 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
26
27 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
28 # Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
29 # Copyright (C) 2008      - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
30 #
31 # This file must be used under the terms of the CeCILL.
32 # This source file is licensed as described in the file COPYING, which
33 # you should have received as part of this distribution.  The terms
34 # are also available at
35 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
36 #
37
38 ##########
39 ### Makefile included stuff
40 ### Target, variable, suffixes which are supposed to be usefull in every makefile.am
41 ##########
42
43
44 VPATH = @srcdir@
45 pkgdatadir = $(datadir)/@PACKAGE@
46 pkgincludedir = $(includedir)/@PACKAGE@
47 pkglibdir = $(libdir)/@PACKAGE@
48 pkglibexecdir = $(libexecdir)/@PACKAGE@
49 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
50 install_sh_DATA = $(install_sh) -c -m 644
51 install_sh_PROGRAM = $(install_sh) -c
52 install_sh_SCRIPT = $(install_sh) -c
53 INSTALL_HEADER = $(INSTALL_DATA)
54 transform = $(program_transform_name)
55 NORMAL_INSTALL = :
56 PRE_INSTALL = :
57 POST_INSTALL = :
58 NORMAL_UNINSTALL = :
59 PRE_UNINSTALL = :
60 POST_UNINSTALL = :
61 build_triplet = @build@
62 host_triplet = @host@
63 DIST_COMMON = $(libscithreads_la_include_HEADERS) \
64         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
65         $(top_srcdir)/Makefile.incl.am
66 @NEED_JAVA_TRUE@am__append_1 = java
67 subdir = modules/threads
68 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
69 am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
70         $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/docbook.m4 \
71         $(top_srcdir)/m4/eigen.m4 $(top_srcdir)/m4/fftw.m4 \
72         $(top_srcdir)/m4/fortran.m4 $(top_srcdir)/m4/giws.m4 \
73         $(top_srcdir)/m4/hdf5.m4 $(top_srcdir)/m4/intel_compiler.m4 \
74         $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
75         $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
76         $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
77         $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
78         $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
79         $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
80         $(top_srcdir)/m4/ocaml.m4 $(top_srcdir)/m4/pcre.m4 \
81         $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/relocatable.m4 \
82         $(top_srcdir)/m4/swig.m4 $(top_srcdir)/m4/symlinks.m4 \
83         $(top_srcdir)/m4/tcltk.m4 $(top_srcdir)/m4/umfpack.m4 \
84         $(top_srcdir)/configure.ac
85 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
86         $(ACLOCAL_M4)
87 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
88 CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
89 CONFIG_CLEAN_FILES =
90 CONFIG_CLEAN_VPATH_FILES =
91 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
92 am__vpath_adj = case $$p in \
93     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
94     *) f=$$p;; \
95   esac;
96 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
97 am__install_max = 40
98 am__nobase_strip_setup = \
99   srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
100 am__nobase_strip = \
101   for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
102 am__nobase_list = $(am__nobase_strip_setup); \
103   for p in $$list; do echo "$$p $$p"; done | \
104   sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
105   $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
106     if (++n[$$2] == $(am__install_max)) \
107       { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
108     END { for (dir in files) print dir, files[dir] }'
109 am__base_list = \
110   sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
111   sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
112 am__uninstall_files_from_dir = { \
113   test -z "$$files" \
114     || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
115     || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
116          $(am__cd) "$$dir" && rm -f $$files; }; \
117   }
118 am__installdirs = "$(DESTDIR)$(pkglibdir)" \
119         "$(DESTDIR)$(libscithreads_la_includedir)"
120 LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES)
121 libscithreads_la_LIBADD =
122 am__objects_1 = libscithreads_la-Thread_Wrapper.lo
123 am_libscithreads_la_OBJECTS = $(am__objects_1)
124 libscithreads_la_OBJECTS = $(am_libscithreads_la_OBJECTS)
125 libscithreads_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
126         $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
127         $(CXXFLAGS) $(libscithreads_la_LDFLAGS) $(LDFLAGS) -o $@
128 @MAINTAINER_MODE_FALSE@am_libscithreads_la_rpath =
129 @MAINTAINER_MODE_TRUE@am_libscithreads_la_rpath = -rpath $(pkglibdir)
130 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes
131 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
132 am__depfiles_maybe = depfiles
133 am__mv = mv -f
134 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
135         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
136 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
137         --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
138         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
139 CXXLD = $(CXX)
140 CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
141         --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
142         $(LDFLAGS) -o $@
143 SOURCES = $(libscithreads_la_SOURCES)
144 DIST_SOURCES = $(libscithreads_la_SOURCES)
145 HEADERS = $(libscithreads_la_include_HEADERS)
146 ETAGS = etags
147 CTAGS = ctags
148 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
149 ACLOCAL = @ACLOCAL@
150 ALL_LINGUAS = @ALL_LINGUAS@
151 ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@
152 AMTAR = @AMTAR@
153 ANT = @ANT@
154 ANTLR = @ANTLR@
155 AR = @AR@
156 ARPACK_LIBS = @ARPACK_LIBS@
157 ASM3 = @ASM3@
158 AUTOCONF = @AUTOCONF@
159 AUTOHEADER = @AUTOHEADER@
160 AUTOMAKE = @AUTOMAKE@
161 AVALON_FRAMEWORK = @AVALON_FRAMEWORK@
162 AWK = @AWK@
163 BATIK = @BATIK@
164 BLAS_LIBS = @BLAS_LIBS@
165 CC = @CC@
166 CCACHE = @CCACHE@
167 CCDEPMODE = @CCDEPMODE@
168 CFLAGS = @CFLAGS@
169 CHECKSTYLE = @CHECKSTYLE@
170 COBERTURA = @COBERTURA@
171 COMMONS_BEANUTILS = @COMMONS_BEANUTILS@
172 COMMONS_IO = @COMMONS_IO@
173 COMMONS_LOGGING = @COMMONS_LOGGING@
174 CPP = @CPP@
175 CPPFLAGS = @CPPFLAGS@
176 CXX = @CXX@
177 CXXCPP = @CXXCPP@
178 CXXDEPMODE = @CXXDEPMODE@
179 CXXFLAGS = @CXXFLAGS@
180 CYGPATH_W = @CYGPATH_W@
181 DEFS = @DEFS@
182 DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@
183 DEPDIR = @DEPDIR@
184 DOCBOOK_ROOT = @DOCBOOK_ROOT@
185 DSYMUTIL = @DSYMUTIL@
186 DUMPBIN = @DUMPBIN@
187 ECHO_C = @ECHO_C@
188 ECHO_N = @ECHO_N@
189 ECHO_T = @ECHO_T@
190 EGREP = @EGREP@
191 EIGEN_CPPFLAGS = @EIGEN_CPPFLAGS@
192 EXEEXT = @EXEEXT@
193 F77 = @F77@
194 FFLAGS = @FFLAGS@
195 FFTW3_LIB = @FFTW3_LIB@
196 FFTW_ENABLE = @FFTW_ENABLE@
197 FGREP = @FGREP@
198 FLEXDOCK = @FLEXDOCK@
199 FLIBS = @FLIBS@
200 FOP = @FOP@
201 GENHTML = @GENHTML@
202 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
203 GIWS_BIN = @GIWS_BIN@
204 GLUEGEN2_RT = @GLUEGEN2_RT@
205 GMSGFMT = @GMSGFMT@
206 GMSGFMT_015 = @GMSGFMT_015@
207 GRAPHICS_ENABLE = @GRAPHICS_ENABLE@
208 GREP = @GREP@
209 GUI_ENABLE = @GUI_ENABLE@
210 HDF5_CFLAGS = @HDF5_CFLAGS@
211 HDF5_LIBS = @HDF5_LIBS@
212 HELP_ENABLE = @HELP_ENABLE@
213 INSTALL = @INSTALL@
214 INSTALL_DATA = @INSTALL_DATA@
215 INSTALL_PROGRAM = @INSTALL_PROGRAM@
216 INSTALL_SCRIPT = @INSTALL_SCRIPT@
217 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
218 INTLLIBS = @INTLLIBS@
219 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
220 JAR = @JAR@
221 JAVA = @JAVA@
222 JAVAC = @JAVAC@
223 JAVAC_DEBUG = @JAVAC_DEBUG@
224 JAVADOC = @JAVADOC@
225 JAVAH = @JAVAH@
226 JAVASCI_ENABLE = @JAVASCI_ENABLE@
227 JAVA_ENABLE = @JAVA_ENABLE@
228 JAVA_G = @JAVA_G@
229 JAVA_HOME = @JAVA_HOME@
230 JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@
231 JAVA_JNI_LIBS = @JAVA_JNI_LIBS@
232 JDB = @JDB@
233 JEUCLID_CORE = @JEUCLID_CORE@
234 JGRAPHX = @JGRAPHX@
235 JHALL = @JHALL@
236 JHDF5 = @JHDF5@
237 JLATEXMATH = @JLATEXMATH@
238 JLATEXMATH_FOP = @JLATEXMATH_FOP@
239 JOGL2 = @JOGL2@
240 JROSETTA_API = @JROSETTA_API@
241 JROSETTA_ENGINE = @JROSETTA_ENGINE@
242 JUNIT4 = @JUNIT4@
243 LAPACK_LIBS = @LAPACK_LIBS@
244 LCOV = @LCOV@
245 LD = @LD@
246 LDFLAGS = @LDFLAGS@
247 LEX = @LEX@
248 LEXLIB = @LEXLIB@
249 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
250 LIBICONV = @LIBICONV@
251 LIBINTL = @LIBINTL@
252 LIBM = @LIBM@
253 LIBOBJS = @LIBOBJS@
254 LIBS = @LIBS@
255 LIBTOOL = @LIBTOOL@
256 LIPO = @LIPO@
257 LN_S = @LN_S@
258 LOGGING_LEVEL = @LOGGING_LEVEL@
259 LOOKS = @LOOKS@
260 LTLIBICONV = @LTLIBICONV@
261 LTLIBINTL = @LTLIBINTL@
262 LTLIBOBJS = @LTLIBOBJS@
263 MAINT = @MAINT@
264 MAKEINFO = @MAKEINFO@
265 MATIO_CFLAGS = @MATIO_CFLAGS@
266 MATIO_ENABLE = @MATIO_ENABLE@
267 MATIO_LIBS = @MATIO_LIBS@
268 MKDIR_P = @MKDIR_P@
269 MSGCAT = @MSGCAT@
270 MSGFMT = @MSGFMT@
271 MSGFMT_015 = @MSGFMT_015@
272 MSGMERGE = @MSGMERGE@
273 NM = @NM@
274 NMEDIT = @NMEDIT@
275 OBJDUMP = @OBJDUMP@
276 OBJEXT = @OBJEXT@
277 OCAMLC = @OCAMLC@
278 OCAMLDEP = @OCAMLDEP@
279 OCAMLLEX = @OCAMLLEX@
280 OCAMLOPT = @OCAMLOPT@
281 OCAMLYACC = @OCAMLYACC@
282 OPENMP_CFLAGS = @OPENMP_CFLAGS@
283 OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
284 OPENMP_ENABLE = @OPENMP_ENABLE@
285 OPENMP_LIBS = @OPENMP_LIBS@
286 OTOOL = @OTOOL@
287 OTOOL64 = @OTOOL64@
288 PACKAGE = @PACKAGE@
289 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
290 PACKAGE_NAME = @PACKAGE_NAME@
291 PACKAGE_STRING = @PACKAGE_STRING@
292 PACKAGE_TARNAME = @PACKAGE_TARNAME@
293 PACKAGE_URL = @PACKAGE_URL@
294 PACKAGE_VERSION = @PACKAGE_VERSION@
295 PATH_SEPARATOR = @PATH_SEPARATOR@
296 PCRE_CFLAGS = @PCRE_CFLAGS@
297 PCRE_CONFIG = @PCRE_CONFIG@
298 PCRE_LIBS = @PCRE_LIBS@
299 PCRE_VERSION = @PCRE_VERSION@
300 PKG_CONFIG = @PKG_CONFIG@
301 POSUB = @POSUB@
302 POW_LIB = @POW_LIB@
303 PYTHON = @PYTHON@
304 RANLIB = @RANLIB@
305 RELOCATABLE = @RELOCATABLE@
306 RT_LIB = @RT_LIB@
307 SAXON = @SAXON@
308 SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@
309 SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@
310 SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@
311 SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@
312 SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@
313 SCIRENDERER = @SCIRENDERER@
314 SCI_CFLAGS = @SCI_CFLAGS@
315 SCI_CXXFLAGS = @SCI_CXXFLAGS@
316 SCI_FFLAGS = @SCI_FFLAGS@
317 SCI_LDFLAGS = @SCI_LDFLAGS@
318 SED = @SED@
319 SET_MAKE = @SET_MAKE@
320 SET_RELOCATABLE = @SET_RELOCATABLE@
321 SHELL = @SHELL@
322 SKINLF = @SKINLF@
323 SPLINT = @SPLINT@
324 STRIP = @STRIP@
325 SWIG_BIN = @SWIG_BIN@
326 SWIG_JAVA = @SWIG_JAVA@
327 SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@
328 TCLTK_LIBS = @TCLTK_LIBS@
329 TCL_INC_PATH = @TCL_INC_PATH@
330 TK_INC_PATH = @TK_INC_PATH@
331 UMFPACK_ENABLE = @UMFPACK_ENABLE@
332 UMFPACK_LIB = @UMFPACK_LIB@
333 USE_NLS = @USE_NLS@
334 VERSION = @VERSION@
335 WITH_OCAML = @WITH_OCAML@
336 WITH_TKSCI = @WITH_TKSCI@
337 XCOS_ENABLE = @XCOS_ENABLE@
338 XGETTEXT = @XGETTEXT@
339 XGETTEXT_015 = @XGETTEXT_015@
340 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
341 XMKMF = @XMKMF@
342 XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@
343 XML_APIS_EXT = @XML_APIS_EXT@
344 XML_CONFIG = @XML_CONFIG@
345 XML_FLAGS = @XML_FLAGS@
346 XML_LIBS = @XML_LIBS@
347 XML_VERSION = @XML_VERSION@
348 X_CFLAGS = @X_CFLAGS@
349 X_EXTRA_LIBS = @X_EXTRA_LIBS@
350 X_LIBS = @X_LIBS@
351 X_PRE_LIBS = @X_PRE_LIBS@
352 YACC = @YACC@
353 YFLAGS = @YFLAGS@
354 abs_builddir = @abs_builddir@
355 abs_srcdir = @abs_srcdir@
356 abs_top_builddir = @abs_top_builddir@
357 abs_top_srcdir = @abs_top_srcdir@
358 ac_ct_CC = @ac_ct_CC@
359 ac_ct_CXX = @ac_ct_CXX@
360 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
361 ac_ct_F77 = @ac_ct_F77@
362 am__include = @am__include@
363 am__leading_dot = @am__leading_dot@
364 am__quote = @am__quote@
365 am__tar = @am__tar@
366 am__untar = @am__untar@
367 bindir = @bindir@
368 build = @build@
369 build_alias = @build_alias@
370 build_cpu = @build_cpu@
371 build_os = @build_os@
372 build_vendor = @build_vendor@
373 builddir = @builddir@
374 cxx_present = @cxx_present@
375 datadir = @datadir@
376 datarootdir = @datarootdir@
377 docdir = @docdir@
378 dvidir = @dvidir@
379 exec_prefix = @exec_prefix@
380 host = @host@
381 host_alias = @host_alias@
382 host_cpu = @host_cpu@
383 host_os = @host_os@
384 host_vendor = @host_vendor@
385 htmldir = @htmldir@
386 includedir = @includedir@
387 infodir = @infodir@
388 install_sh = @install_sh@
389 libdir = @libdir@
390 libexecdir = @libexecdir@
391 localedir = @localedir@
392 localstatedir = @localstatedir@
393 mandir = @mandir@
394 mkdir_p = @mkdir_p@
395 oldincludedir = @oldincludedir@
396 pdfdir = @pdfdir@
397 prefix = @prefix@
398 program_transform_name = @program_transform_name@
399 psdir = @psdir@
400 sbindir = @sbindir@
401 sharedstatedir = @sharedstatedir@
402 srcdir = @srcdir@
403 sysconfdir = @sysconfdir@
404 target_alias = @target_alias@
405 top_build_prefix = @top_build_prefix@
406 top_builddir = @top_builddir@
407 top_srcdir = @top_srcdir@
408 yacc_present = @yacc_present@
409 THREADS_CPP_SOURCES = \
410         src/cpp/Thread_Wrapper.cpp
411
412 libscithreads_la_CPPFLAGS = \
413         -I$(srcdir)/includes/
414
415 @MAINTAINER_MODE_TRUE@pkglib_LTLIBRARIES = libscithreads.la
416 @MAINTAINER_MODE_FALSE@noinst_LTLIBRARIES = libscithreads.la
417 libscithreads_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) -lpthread
418 libscithreads_la_SOURCES = $(THREADS_CPP_SOURCES)
419
420 # For the code check (splint)
421 CHECK_SRC = $(THREADS_CPP_SOURCES)
422 INCLUDE_FLAGS = $(libscithreads_la_CPPFLAGS)
423
424 # Many stuff depends on this one ... commented
425 # libscithreads_la_LIBADD =  libscithreads.la
426
427 #### Target ######
428 modulename = threads
429
430 #### threads : Conf files ####
431 libscithreads_la_rootdir = $(mydatadir)
432
433 #### threads : init scripts ####
434 # libscithreads_la_etcdir = $(mydatadir)/etc
435 # libscithreads_la_etc_DATA = etc/threads.quit etc/threads.start
436
437 #### threads : gateway declaration ####
438 # libscithreads_la_sci_gatewaydir = $(mydatadir)/sci_gateway
439 # libscithreads_la_sci_gateway_DATA = sci_gateway/threads_gateway.xml
440
441 #### threads : include files ####
442 libscithreads_la_includedir = $(pkgincludedir)
443 libscithreads_la_include_HEADERS = \
444 includes/Thread_Wrapper.h
445
446
447 # Where all the Scilab stuff is installed (macros, help, ...)
448 mydatadir = $(pkgdatadir)/modules/$(modulename)
449
450 # Set AM_* SCI detected settings
451 AM_CPPFLAGS = $(SCI_CPPFLAGS)
452 AM_CFLAGS = $(SCI_CFLAGS)
453 AM_CXXFLAGS = $(SCI_CXXFLAGS)
454 # append includes to AM_FFLAGS to manage fortran includes
455 AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/
456
457 # Tag shared libraries with the Scilab version
458 AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION)
459
460 # splint options
461 SPLINT_OPTIONS = -weak -booltype BOOL
462
463 ########################### JAVA ######################################
464 #### We are delegating java compilation to ant... Thanks to that
465 #### the procedure will be the same with Microsoft Windows (C)
466 #### and Linux/Unix
467 #######################################################################
468 TARGETS_ALL = $(am__append_1)
469
470 ################ MACROS ######################
471 # Rule to build a macro
472 # NOT USED  AT THE MOMENT
473 SUFFIXES = .sci 
474
475 ########### INSTALL DOCUMENTATION ###################
476
477 # Install documentation files into the right target
478 # We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because
479 # automake needs the html files to be present which is not the case when
480 # we are building Scilab
481
482 # Where it should be installed
483 pkgdocdir = $(mydatadir)
484
485 # What is the mask of the help source
486 DOCMASKXML = *.xml
487
488 # What is the mask of the MathML sources
489 DOCMASKMML = *.mml
490
491 ########### INSTALL DATA ###################
492 # Install macros, help & demos
493 # Where it should be installed
494 pkgmacrosdir = $(mydatadir)
495 # Which directory we process
496 MACRODIRS = macros/
497 # Mask of the Scilab sources macros
498 MACROMASK = *.sci
499 # Mask of the Scilab executable sources macros
500 MACROBUILDMASK = *.sce
501 # Mask of the Scilab compiled macros
502 MACROBINMASK = *.bin
503 # List of the standard directory for tests
504 TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java
505 # Where the demos should be installed
506 pkgdemosdir = $(mydatadir)
507 # List of the standard directory for demos
508 DEMOS_DIR = demos
509 # List of the standard directory for examples
510 EXAMPLES_DIR = examples
511 # Where to export JAVA archives (.jar)
512 JARDIR = jar/
513 # JAR files mask
514 JARMASK = *.jar
515 # Chapter file 
516 HELP_CHAPTERDIR = help/
517 HELP_CHAPTERFILE = addchapter.sce
518 HELP_CHAPTERLANG = en_US fr_FR pt_BR
519 all: all-am
520
521 .SUFFIXES:
522 .SUFFIXES: .sci .bin .cpp .lo .o .obj
523 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps)
524         @for dep in $?; do \
525           case '$(am__configure_deps)' in \
526             *$$dep*) \
527               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
528                 && { if test -f $@; then exit 0; else break; fi; }; \
529               exit 1;; \
530           esac; \
531         done; \
532         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/threads/Makefile'; \
533         $(am__cd) $(top_srcdir) && \
534           $(AUTOMAKE) --foreign modules/threads/Makefile
535 .PRECIOUS: Makefile
536 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
537         @case '$?' in \
538           *config.status*) \
539             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
540           *) \
541             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
542             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
543         esac;
544 $(top_srcdir)/Makefile.incl.am:
545
546 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
547         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
548
549 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
550         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
551 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
552         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
553 $(am__aclocal_m4_deps):
554
555 clean-noinstLTLIBRARIES:
556         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
557         @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
558           dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
559           test "$$dir" != "$$p" || dir=.; \
560           echo "rm -f \"$${dir}/so_locations\""; \
561           rm -f "$${dir}/so_locations"; \
562         done
563 install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
564         @$(NORMAL_INSTALL)
565         test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
566         @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \
567         list2=; for p in $$list; do \
568           if test -f $$p; then \
569             list2="$$list2 $$p"; \
570           else :; fi; \
571         done; \
572         test -z "$$list2" || { \
573           echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \
574           $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \
575         }
576
577 uninstall-pkglibLTLIBRARIES:
578         @$(NORMAL_UNINSTALL)
579         @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \
580         for p in $$list; do \
581           $(am__strip_dir) \
582           echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
583           $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
584         done
585
586 clean-pkglibLTLIBRARIES:
587         -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
588         @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
589           dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
590           test "$$dir" != "$$p" || dir=.; \
591           echo "rm -f \"$${dir}/so_locations\""; \
592           rm -f "$${dir}/so_locations"; \
593         done
594 libscithreads.la: $(libscithreads_la_OBJECTS) $(libscithreads_la_DEPENDENCIES) $(EXTRA_libscithreads_la_DEPENDENCIES) 
595         $(libscithreads_la_LINK) $(am_libscithreads_la_rpath) $(libscithreads_la_OBJECTS) $(libscithreads_la_LIBADD) $(LIBS)
596
597 mostlyclean-compile:
598         -rm -f *.$(OBJEXT)
599
600 distclean-compile:
601         -rm -f *.tab.c
602
603 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscithreads_la-Thread_Wrapper.Plo@am__quote@
604
605 .cpp.o:
606 @am__fastdepCXX_TRUE@   $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
607 @am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
608 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
609 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
610 @am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ $<
611
612 .cpp.obj:
613 @am__fastdepCXX_TRUE@   $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
614 @am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
615 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
616 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
617 @am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
618
619 .cpp.lo:
620 @am__fastdepCXX_TRUE@   $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
621 @am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
622 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
623 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
624 @am__fastdepCXX_FALSE@  $(LTCXXCOMPILE) -c -o $@ $<
625
626 libscithreads_la-Thread_Wrapper.lo: src/cpp/Thread_Wrapper.cpp
627 @am__fastdepCXX_TRUE@   $(LIBTOOL)  --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscithreads_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscithreads_la-Thread_Wrapper.lo -MD -MP -MF $(DEPDIR)/libscithreads_la-Thread_Wrapper.Tpo -c -o libscithreads_la-Thread_Wrapper.lo `test -f 'src/cpp/Thread_Wrapper.cpp' || echo '$(srcdir)/'`src/cpp/Thread_Wrapper.cpp
628 @am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/libscithreads_la-Thread_Wrapper.Tpo $(DEPDIR)/libscithreads_la-Thread_Wrapper.Plo
629 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='src/cpp/Thread_Wrapper.cpp' object='libscithreads_la-Thread_Wrapper.lo' libtool=yes @AMDEPBACKSLASH@
630 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
631 @am__fastdepCXX_FALSE@  $(LIBTOOL)  --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscithreads_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscithreads_la-Thread_Wrapper.lo `test -f 'src/cpp/Thread_Wrapper.cpp' || echo '$(srcdir)/'`src/cpp/Thread_Wrapper.cpp
632
633 mostlyclean-libtool:
634         -rm -f *.lo
635
636 clean-libtool:
637         -rm -rf .libs _libs
638 install-libscithreads_la_includeHEADERS: $(libscithreads_la_include_HEADERS)
639         @$(NORMAL_INSTALL)
640         test -z "$(libscithreads_la_includedir)" || $(MKDIR_P) "$(DESTDIR)$(libscithreads_la_includedir)"
641         @list='$(libscithreads_la_include_HEADERS)'; test -n "$(libscithreads_la_includedir)" || list=; \
642         for p in $$list; do \
643           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
644           echo "$$d$$p"; \
645         done | $(am__base_list) | \
646         while read files; do \
647           echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libscithreads_la_includedir)'"; \
648           $(INSTALL_HEADER) $$files "$(DESTDIR)$(libscithreads_la_includedir)" || exit $$?; \
649         done
650
651 uninstall-libscithreads_la_includeHEADERS:
652         @$(NORMAL_UNINSTALL)
653         @list='$(libscithreads_la_include_HEADERS)'; test -n "$(libscithreads_la_includedir)" || list=; \
654         files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
655         dir='$(DESTDIR)$(libscithreads_la_includedir)'; $(am__uninstall_files_from_dir)
656
657 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
658         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
659         unique=`for i in $$list; do \
660             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
661           done | \
662           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
663               END { if (nonempty) { for (i in files) print i; }; }'`; \
664         mkid -fID $$unique
665 tags: TAGS
666
667 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
668                 $(TAGS_FILES) $(LISP)
669         set x; \
670         here=`pwd`; \
671         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
672         unique=`for i in $$list; do \
673             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
674           done | \
675           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
676               END { if (nonempty) { for (i in files) print i; }; }'`; \
677         shift; \
678         if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
679           test -n "$$unique" || unique=$$empty_fix; \
680           if test $$# -gt 0; then \
681             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
682               "$$@" $$unique; \
683           else \
684             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
685               $$unique; \
686           fi; \
687         fi
688 ctags: CTAGS
689 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
690                 $(TAGS_FILES) $(LISP)
691         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
692         unique=`for i in $$list; do \
693             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
694           done | \
695           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
696               END { if (nonempty) { for (i in files) print i; }; }'`; \
697         test -z "$(CTAGS_ARGS)$$unique" \
698           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
699              $$unique
700
701 GTAGS:
702         here=`$(am__cd) $(top_builddir) && pwd` \
703           && $(am__cd) $(top_srcdir) \
704           && gtags -i $(GTAGS_ARGS) "$$here"
705
706 distclean-tags:
707         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
708
709 distdir: $(DISTFILES)
710         @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
711         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
712         list='$(DISTFILES)'; \
713           dist_files=`for file in $$list; do echo $$file; done | \
714           sed -e "s|^$$srcdirstrip/||;t" \
715               -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
716         case $$dist_files in \
717           */*) $(MKDIR_P) `echo "$$dist_files" | \
718                            sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
719                            sort -u` ;; \
720         esac; \
721         for file in $$dist_files; do \
722           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
723           if test -d $$d/$$file; then \
724             dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
725             if test -d "$(distdir)/$$file"; then \
726               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
727             fi; \
728             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
729               cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
730               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
731             fi; \
732             cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
733           else \
734             test -f "$(distdir)/$$file" \
735             || cp -p $$d/$$file "$(distdir)/$$file" \
736             || exit 1; \
737           fi; \
738         done
739 check-am: all-am
740         $(MAKE) $(AM_MAKEFLAGS) check-local
741 check: check-am
742 all-am: Makefile $(LTLIBRARIES) $(HEADERS) all-local
743 installdirs:
744         for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscithreads_la_includedir)"; do \
745           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
746         done
747 install: install-am
748 install-exec: install-exec-am
749 install-data: install-data-am
750 uninstall: uninstall-am
751
752 install-am: all-am
753         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
754
755 installcheck: installcheck-am
756 install-strip:
757         if test -z '$(STRIP)'; then \
758           $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
759             install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
760               install; \
761         else \
762           $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
763             install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
764             "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
765         fi
766 mostlyclean-generic:
767
768 clean-generic:
769
770 distclean-generic:
771         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
772         -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
773
774 maintainer-clean-generic:
775         @echo "This command is intended for maintainers to use"
776         @echo "it deletes files that may require special tools to rebuild."
777 clean: clean-am
778
779 clean-am: clean-generic clean-libtool clean-local \
780         clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am
781
782 distclean: distclean-am
783         -rm -rf ./$(DEPDIR)
784         -rm -f Makefile
785 distclean-am: clean-am distclean-compile distclean-generic \
786         distclean-local distclean-tags
787
788 dvi: dvi-am
789
790 dvi-am:
791
792 html: html-am
793
794 html-am:
795
796 info: info-am
797
798 info-am:
799
800 install-data-am: install-data-local \
801         install-libscithreads_la_includeHEADERS
802
803 install-dvi: install-dvi-am
804
805 install-dvi-am:
806
807 install-exec-am: install-pkglibLTLIBRARIES
808
809 install-html: install-html-am
810
811 install-html-am: install-html-local
812
813 install-info: install-info-am
814
815 install-info-am:
816
817 install-man:
818
819 install-pdf: install-pdf-am
820
821 install-pdf-am:
822
823 install-ps: install-ps-am
824
825 install-ps-am:
826
827 installcheck-am:
828
829 maintainer-clean: maintainer-clean-am
830         -rm -rf ./$(DEPDIR)
831         -rm -f Makefile
832 maintainer-clean-am: distclean-am maintainer-clean-generic
833
834 mostlyclean: mostlyclean-am
835
836 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
837         mostlyclean-libtool
838
839 pdf: pdf-am
840
841 pdf-am:
842
843 ps: ps-am
844
845 ps-am:
846
847 uninstall-am: uninstall-libscithreads_la_includeHEADERS \
848         uninstall-pkglibLTLIBRARIES
849
850 .MAKE: check-am install-am install-strip
851
852 .PHONY: CTAGS GTAGS all all-am all-local check check-am check-local \
853         clean clean-generic clean-libtool clean-local \
854         clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES ctags \
855         distclean distclean-compile distclean-generic \
856         distclean-libtool distclean-local distclean-tags distdir dvi \
857         dvi-am html html-am info info-am install install-am \
858         install-data install-data-am install-data-local install-dvi \
859         install-dvi-am install-exec install-exec-am install-html \
860         install-html-am install-html-local install-info \
861         install-info-am install-libscithreads_la_includeHEADERS \
862         install-man install-pdf install-pdf-am \
863         install-pkglibLTLIBRARIES install-ps install-ps-am \
864         install-strip installcheck installcheck-am installdirs \
865         maintainer-clean maintainer-clean-generic mostlyclean \
866         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
867         pdf pdf-am ps ps-am tags uninstall uninstall-am \
868         uninstall-libscithreads_la_includeHEADERS \
869         uninstall-pkglibLTLIBRARIES
870
871
872 # This target enables tests for Scilab
873 check-local: $(top_builddir)/scilab-bin test
874         if test -d $(mydatadir)/tests; then \
875           @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
876         fi
877 check-code:
878         if test -f build.xml; then \
879                 $(ANT) checkstyle; \
880         fi
881         if test -x "$(SPLINT)"; then \
882                 $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \
883         fi
884 @NEED_JAVA_TRUE@java:
885 # Some configurations needs to export JAVA_HOME in the current env
886 @NEED_JAVA_TRUE@        @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
887 @NEED_JAVA_TRUE@        if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
888 @NEED_JAVA_TRUE@        if test -f build.xml -a $$USEANT -eq 1; then \
889 @NEED_JAVA_TRUE@                $(ANT); \
890 @NEED_JAVA_TRUE@        fi
891
892 @NEED_JAVA_TRUE@clean-java:
893 # Some configurations needs to export JAVA_HOME in the current env
894 @NEED_JAVA_TRUE@        @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
895 @NEED_JAVA_TRUE@        if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
896 @NEED_JAVA_TRUE@        if test -f build.xml -a $$USEANT -eq 1; then \
897 @NEED_JAVA_TRUE@                $(ANT) clean; \
898 @NEED_JAVA_TRUE@        fi;
899
900 # If the user request for the SWIG generation of the wrappers Java => C/C++ 
901 # We call the target swig-build on the variable SWIG_WRAPPERS
902
903 @SWIG_TRUE@swig: $(SWIG_WRAPPERS)
904 @SWIG_TRUE@     @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
905 @SWIG_TRUE@     SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
906 @SWIG_TRUE@     if test -n "$(SWIG_WRAPPERS)"; then \
907 @SWIG_TRUE@             for file in $(SWIG_WRAPPERS) ; do \
908 @SWIG_TRUE@                     echo "Swig process of $$file ..."; \
909 @SWIG_TRUE@                     $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME  -outdir $$SWIG_OUTDIR $$file; \
910 @SWIG_TRUE@             done; \
911 @SWIG_TRUE@     fi
912
913 # If the user request for the SWIG generation of the wrappers Java => C/C++ 
914 # We call the target swig-build on the variable SWIG_WRAPPERS
915
916 @GIWS_TRUE@giws: $(GIWS_WRAPPERS)
917 @GIWS_TRUE@     @GIWS_OUTPUTDIR=src/jni/;\
918 @GIWS_TRUE@     if test -n "$(GIWS_WRAPPERS)"; then \
919 @GIWS_TRUE@             for file in $(GIWS_WRAPPERS) ; do \
920 @GIWS_TRUE@                     echo "GIWS process of $$file ..."; \
921 @GIWS_TRUE@                     $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR --throws-exception-on-error --description-file $$file; \
922 @GIWS_TRUE@             done; \
923 @GIWS_TRUE@     fi
924
925 @GIWS_TRUE@giws-exception:
926 @GIWS_TRUE@     @GIWS_OUTPUTDIR=src/jni/;\
927 @GIWS_TRUE@     echo "GIWS: Generation of exception class ..."; \
928 @GIWS_TRUE@     $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR 
929
930 macros:
931         -@( if test ! -x $(top_builddir)/scilab-bin; then \
932                 echo "Error : Cannot build $< : Scilab has not been built"; \
933         else \
934                 $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\
935         fi)
936
937 # Removes the macros
938 clean-macros:
939 # Removes macros (*.bin generated from .sci)
940         @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
941                 echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \
942                 rm -f $(builddir)/$$dir/$(MACROBINMASK); \
943         done
944
945 test:
946 # More tests could be added here
947         @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
948         if test -f build.xml -a $$USEANT -eq 1; then \
949                 $(ANT) test; \
950         fi
951
952 all-local: $(TARGETS_ALL)
953
954 .sci.bin:
955         -@( if test ! -x $(top_builddir)/scilab-bin; then \
956         echo "Error : Cannot build $< : Scilab has not been build"; \
957         else \
958         echo "Creating $@"; \
959         $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
960         fi )
961
962 install-html-local:
963
964 install-data-local-local:
965 # Mainly for javasci
966         @if test -d $(srcdir)/javadoc; then \
967                 cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \
968         fi
969 # If the user wants the help sources to be installed
970 @INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \
971 @INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \
972 @INSTALL_HELP_XML_TRUE@  if test -d $(srcdir)/help/$$lang; then \
973 @INSTALL_HELP_XML_TRUE@   $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \
974 @INSTALL_HELP_XML_TRUE@         if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \
975 @INSTALL_HELP_XML_TRUE@           for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \
976 @INSTALL_HELP_XML_TRUE@             echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \
977 @INSTALL_HELP_XML_TRUE@         $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \
978 @INSTALL_HELP_XML_TRUE@           done ; \
979 @INSTALL_HELP_XML_TRUE@         fi; \
980 @INSTALL_HELP_XML_TRUE@  fi; \
981 @INSTALL_HELP_XML_TRUE@ done; \
982 @INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \
983 @INSTALL_HELP_XML_TRUE@  if test -d $(srcdir)/help/mml/; then \
984 @INSTALL_HELP_XML_TRUE@   $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \
985 @INSTALL_HELP_XML_TRUE@         if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \
986 @INSTALL_HELP_XML_TRUE@           for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \
987 @INSTALL_HELP_XML_TRUE@             echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \
988 @INSTALL_HELP_XML_TRUE@         $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \
989 @INSTALL_HELP_XML_TRUE@           done ; \
990 @INSTALL_HELP_XML_TRUE@         fi; \
991 @INSTALL_HELP_XML_TRUE@ fi
992 install-data-local:
993 # Install the tests
994         @echo "-------- Install tests (if any) --------"; \
995         for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \
996           if test -d $(srcdir)/$$dir/; then \
997             $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
998                   for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
999                     if test -d "$(srcdir)/$$dir/$$file"; then \
1000                           echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \
1001                           $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \
1002                     else \
1003                       echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
1004                   $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
1005                     fi \
1006                   done; \
1007           fi; \
1008         done
1009 # Install the help chapter
1010         @echo "-------- Install the help chapter (if any) --------"; \
1011         for lang in $(HELP_CHAPTERLANG); do \
1012                 HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \
1013                 if test -f $$HELPFILE; then \
1014                         echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
1015                         $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
1016                         echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
1017                         $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
1018                 fi; \
1019         done
1020 # Install the demos & examples
1021         @echo "-------- Install demos & examples (if any) --------"; \
1022         for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \
1023           if test -d $(srcdir)/$$dir/; then \
1024             $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
1025                   for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
1026                     if test -d "$(srcdir)/$$dir/$$file"; then \
1027                           echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \
1028                           $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \
1029                     else \
1030                       echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
1031                   $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
1032                     fi \
1033                   done; \
1034           fi; \
1035         done
1036 # Install the macros
1037         @echo "-------- Install macros (if any) --------"; \
1038         for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
1039           $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
1040                 if test -d $(srcdir)/$$dir/; then \
1041                         FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\
1042                         if test -n "$(MACROSSPECIALEXT)"; then \
1043                                 specialExtDir=""; \
1044                                 for specialExt in $(MACROSSPECIALEXT); do \
1045                                         specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \
1046                                 done; \
1047                                 FILELIST="$$FILELIST $$specialExtDir"; \
1048                         fi; \
1049                   for file in `ls -1 $$FILELIST 2>/dev/null`; do \
1050                     echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
1051                 $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
1052                   done; \
1053                 fi; \
1054         done
1055 # Install java files (.jar)
1056         @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \
1057         echo "-------- Install jar files --------"; \
1058     $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \
1059           for file in $(srcdir)/$(JARDIR)$(JARMASK); do\
1060                     echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
1061                 $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
1062           done ; \
1063         fi
1064
1065 ########### CLEAN ###################
1066 # Clean help (generated automatically by Scilab)
1067 # It used to clean the macro (clean-macros) but this was causing
1068 # make clean && make to fail Scilab startup
1069 @NEED_JAVA_TRUE@clean-local: clean-java
1070 @NEED_JAVA_FALSE@clean-local:
1071
1072 distclean-local:
1073         rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_*
1074
1075 .PHONY: macros java swig giws
1076
1077 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1078 # Otherwise a system limit (for SysV at least) may be exceeded.
1079 .NOEXPORT: