Better startup script for MacOS 10.10 and 10.11 - don't tell the user it won't work...
[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 # 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.1-en.txt
10 #
11
12 CALL_SCILAB_CFLAGS_COMMON = \
13 -I$(top_srcdir)/modules/call_scilab/includes/ \
14 -I$(top_srcdir)/modules/core/includes/ \
15 -I$(top_srcdir)/modules/api_scilab/includes/ \
16 -I$(top_srcdir)/modules/operations/includes/ \
17 $(FLIBS)
18
19 CALL_SCILAB_LDADD_COMMON = $(top_builddir)/modules/libscilab.la \
20 $(top_builddir)/modules/core/libscicore.la \
21 $(top_builddir)/modules/call_scilab/libscicall_scilab.la \
22 $(COMPILER_LDFLAGS)
23
24
25 # These binaries are built here and not in the call_scilab module because
26 # we do need libscilab.so to exist before building these files
27 # To build them, just launch "make check-am"
28 # To run them, see the help of call Scilab in particular
29 # "Compile and run with Call Scilab"
30 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
31
32 # Construct the LD_LIBRARY_PATH from the variable detected previously
33 # Run the unitary test of call_scilab
34 check-call_scilab: $(check_PROGRAMS)
35         @for a in $(JAVA_JNI_LIBS); do \
36                 LD_PATH=`echo $$a|grep '^-L'|sed -e 's|-L\(.*\)|\1|g'`;\
37                 LOCAL_LD="$$LOCAL_LD:$$LD_PATH:$$LD_LIBRARY_PATH"; \
38         done; \
39         for f in $(check_PROGRAMS); do \
40                 if test "$$f" != "call_scilab_c"; then \
41                         echo "Run: LD_LIBRARY_PATH=$$LOCAL_LD SCI=$(top_srcdir) ./$$f"; \
42                         LD_LIBRARY_PATH=$$LOCAL_LD SCI=$(abs_top_builddir) ./$$f || exit 1; \
43                 fi \
44         done
45
46 call_scilab_c_SOURCES = modules/call_scilab/examples/call_scilab/c/common/myprog.c
47 call_scilab_c_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
48 call_scilab_c_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
49
50
51 call_scilab_c_simple_SOURCES = modules/call_scilab/examples/call_scilab/c/common/simple_call_scilab.c
52 call_scilab_c_simple_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
53 call_scilab_c_simple_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
54
55 call_scilab_c_getlastjob_SOURCES = modules/call_scilab/examples/basicExamples/GetLastJob.c
56 call_scilab_c_getlastjob_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
57 call_scilab_c_getlastjob_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
58
59 call_scilab_c_DisableInteractiveMode_SOURCES = modules/call_scilab/examples/basicExamples/DisableInteractiveMode.c
60 call_scilab_c_DisableInteractiveMode_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
61 call_scilab_c_DisableInteractiveMode_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
62
63 call_scilab_readwriteboolean_SOURCES = modules/call_scilab/examples/basicExamples/readwriteboolean.c
64 call_scilab_readwriteboolean_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
65 call_scilab_readwriteboolean_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
66
67 call_scilab_readwritecomplexmatrix_SOURCES = modules/call_scilab/examples/basicExamples/readwritecomplexmatrix.c
68 call_scilab_readwritecomplexmatrix_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
69 call_scilab_readwritecomplexmatrix_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
70
71 call_scilab_readwritematrix_SOURCES = modules/call_scilab/examples/basicExamples/readwritematrix.c
72 call_scilab_readwritematrix_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
73 call_scilab_readwritematrix_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
74
75 call_scilab_readwritestring_SOURCES = modules/call_scilab/examples/basicExamples/readwritestring.c
76 call_scilab_readwritestring_CFLAGS = $(CALL_SCILAB_CFLAGS_COMMON)
77 call_scilab_readwritestring_LDFLAGS = $(CALL_SCILAB_LDADD_COMMON)
78