fix after merge, rename runVMKIT by enableJIT, enable completion on names, add disabl...
[scilab.git] / scilab / modules / jit / Makefile.am
1 ##
2 ##  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 ##  Copyright (C) 2013 - S/E - 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-en.txt
10 ##
11 ##
12
13 pkglib_LTLIBRARIES      = libscijit.la
14
15 JIT_CPP_SOURCES = \
16         src/cpp/jitter.cpp
17
18 GATEWAY_CPP_SOURCES =   \
19         sci_gateway/cpp/jit_gw.cpp \
20     sci_gateway/cpp/sci_enableJIT.cpp \
21     sci_gateway/cpp/sci_disableJIT.cpp \
22     sci_gateway/cpp/sci_isJIT.cpp
23
24 libscijit_la_CPPFLAGS = \
25         -Iincludes \
26         -Isrc/cpp \
27     -I$(top_srcdir)/modules/types/includes \
28     -I$(top_srcdir)/modules/localization/includes \
29     -I$(top_srcdir)/modules/symbol/includes \
30     -I$(top_srcdir)/modules/operations/includes \
31     -I$(top_srcdir)/modules/system_env/includes \
32     -I$(top_srcdir)/modules/threads/includes \
33     -I$(top_srcdir)/modules/api_scilab/includes \
34     -I$(top_srcdir)/modules/dynamic_link/includes \
35     -I$(top_srcdir)/modules/string/includes \
36     -I$(top_srcdir)/modules/console/includes \
37     -I$(top_srcdir)/modules/ast/includes \
38     -I$(top_srcdir)/modules/output_stream/includes \
39     -I$(top_srcdir)/modules/functions_manager/includes \
40     $(EIGEN_CPPFLAGS) \
41         $(VMKIT_CPPFLAGS) \
42         $(AM_CPPFLAGS)
43
44 libscijit_la_SOURCES = $(JIT_CPP_SOURCES) $(GATEWAY_CPP_SOURCES)
45
46 libscijit_la_includedir=$(pkgincludedir)
47 libscijit_la_include_HEADERS =
48
49 ####################
50 ## Automated test ##
51 ####################
52 check_INCLUDES = \
53     -I$(top_srcdir)/modules/symbol/includes \
54         -Iincludes/ \
55         -Isrc/cpp
56
57 check_LDADD     = \
58     $(top_builddir)/modules/symbol/libsciSymbol.la \
59         $(top_builddir)/modules/jit/libscijit.la \
60         $(top_builddir)/modules/types/libsciTypes.la
61
62 testConstExp_SOURCES    = src/cpp/testConstExp.cpp
63 testConstExp_CXXFLAGS   = $(check_INCLUDES)
64 testConstExp_LDADD      = $(check_LDADD)
65
66 testVarExp_SOURCES      = src/cpp/testVarExp.cpp
67 testVarExp_CXXFLAGS     = $(check_INCLUDES)
68 testVarExp_LDADD        = $(check_LDADD)
69
70 testControlExp_SOURCES  = src/cpp/testControlExp.cpp
71 testControlExp_CXXFLAGS = $(check_INCLUDES)
72 testControlExp_LDADD    = $(check_LDADD)
73
74 # This target transforms a basic code to llvm + clang code for the JIT
75 BUILT_SOURCES = src/cpp/llvm-wrapper-generated.cpp
76 src/cpp/llvm-wrapper-generated.cpp: src/cpp/llvm-wrapper.cpp
77         clang++ -emit-llvm  -I$(top_srcdir)/modules/types/includes/ -I$(top_srcdir)/modules/operations/includes/ -I$(top_srcdir)/modules/core/includes/  -I$(top_srcdir)/modules/ast/includes/ -I$(top_srcdir)/modules/localization/includes/ -I$(top_srcdir)/modules/symbol/includes/ -I$(top_srcdir)/modules/dynamic_link/includes/ $(EIGEN_CPPFLAGS) -c src/cpp/llvm-wrapper.cpp -o - |  llc-3.3 -march=cpp -cppgen=contents -o src/cpp/llvm-wrapper-generated.cpp || exit 1
78
79 include $(top_srcdir)/Makefile.incl.am
80