load: avoid creation of double axes in figure
[scilab.git] / scilab / Makefile.call_scilab.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2010 - Sylvestre Ledru
4 #
5 # Copyright (C) 2012 - 2016 - Scilab Enterprises
6 #
7 # This file is hereby licensed under the terms of the GNU GPL v2.0,
8 # pursuant to article 5.3.4 of the CeCILL v.2.1.
9 # This file was originally licensed under the terms of the CeCILL v2.1,
10 # and continues to be available under such terms.
11 # For more information, see the COPYING file which you should have received
12 # along with this program.
13 #
14
15 CALL_SCILAB_CFLAGS_COMMON = \
16 -I$(top_srcdir)/modules/call_scilab/includes/ \
17 -I$(top_srcdir)/modules/core/includes/ \
18 -I$(top_srcdir)/modules/api_scilab/includes/ \
19 -I$(top_srcdir)/modules/operations/includes/ \
20 $(FLIBS)
21
22 CALL_SCILAB_LDADD_COMMON = $(top_builddir)/modules/libscilab.la \
23 $(top_builddir)/modules/core/libscicore.la \
24 $(top_builddir)/modules/call_scilab/libscicall_scilab.la \
25 $(COMPILER_LDFLAGS)
26
27
28 # These binaries are built here and not in the call_scilab module because
29 # we do need libscilab.so to exist before building these files
30 # To build them, just launch "make check-am"
31 # To run them, see the help of call Scilab in particular
32 # "Compile and run with Call Scilab"
33 check_PROGRAMS = call_scilab_c_simple call_scilab_c call_scilab_c_getlastjob call_scilab_c_DisableInteractiveMode call_scilab_readwriteboolean call_scilab_readwritecomplexmatrix call_scilab_readwritematrix call_scilab_readwritestring
34
35 # Construct the LD_LIBRARY_PATH from the variable detected previously
36 # Run the unitary test of call_scilab
37 check-call_scilab: $(check_PROGRAMS)
38         @for a in $(JAVA_JNI_LIBS); do \
39                 LD_PATH=`echo $$a|grep '^-L'|sed -e 's|-L\(.*\)|\1|g'`;\
40                 LOCAL_LD="$$LOCAL_LD:$$LD_PATH:$$LD_LIBRARY_PATH"; \
41         done; \
42         for f in $(check_PROGRAMS); do \
43                 if test "$$f" != "call_scilab_c"; then \
44                         echo "Run: LD_LIBRARY_PATH=$$LOCAL_LD SCI=$(top_srcdir) ./$$f"; \
45                         LD_LIBRARY_PATH=$$LOCAL_LD SCI=$(abs_top_builddir) ./$$f || exit 1; \
46                 fi \
47         done
48
49 call_scilab_c_SOURCES = modules/call_scilab/examples/call_scilab/c/common/myprog.c
50 call_scilab_c_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
51 call_scilab_c_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
52
53
54 call_scilab_c_simple_SOURCES = modules/call_scilab/examples/call_scilab/c/common/simple_call_scilab.c
55 call_scilab_c_simple_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
56 call_scilab_c_simple_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
57
58 call_scilab_c_getlastjob_SOURCES = modules/call_scilab/examples/basicExamples/GetLastJob.c
59 call_scilab_c_getlastjob_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
60 call_scilab_c_getlastjob_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
61
62 call_scilab_c_DisableInteractiveMode_SOURCES = modules/call_scilab/examples/basicExamples/DisableInteractiveMode.c
63 call_scilab_c_DisableInteractiveMode_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
64 call_scilab_c_DisableInteractiveMode_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
65
66 call_scilab_readwriteboolean_SOURCES = modules/call_scilab/examples/basicExamples/readwriteboolean.c
67 call_scilab_readwriteboolean_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
68 call_scilab_readwriteboolean_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
69
70 call_scilab_readwritecomplexmatrix_SOURCES = modules/call_scilab/examples/basicExamples/readwritecomplexmatrix.c
71 call_scilab_readwritecomplexmatrix_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
72 call_scilab_readwritecomplexmatrix_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
73
74 call_scilab_readwritematrix_SOURCES = modules/call_scilab/examples/basicExamples/readwritematrix.c
75 call_scilab_readwritematrix_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
76 call_scilab_readwritematrix_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
77
78 call_scilab_readwritestring_SOURCES = modules/call_scilab/examples/basicExamples/readwritestring.c
79 call_scilab_readwritestring_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
80 call_scilab_readwritestring_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
81