2 ## Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 ## Copyright (C) 2013 - S/E - Sylvestre Ledru
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
13 pkglib_LTLIBRARIES = libscijit.la
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
24 libscijit_la_CPPFLAGS = \
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 \
44 libscijit_la_SOURCES = $(JIT_CPP_SOURCES) $(GATEWAY_CPP_SOURCES)
46 libscijit_la_includedir=$(pkgincludedir)
47 libscijit_la_include_HEADERS =
53 -I$(top_srcdir)/modules/symbol/includes \
58 $(top_builddir)/modules/symbol/libsciSymbol.la \
59 $(top_builddir)/modules/jit/libscijit.la \
60 $(top_builddir)/modules/types/libsciTypes.la
62 testConstExp_SOURCES = src/cpp/testConstExp.cpp
63 testConstExp_CXXFLAGS = $(check_INCLUDES)
64 testConstExp_LDADD = $(check_LDADD)
66 testVarExp_SOURCES = src/cpp/testVarExp.cpp
67 testVarExp_CXXFLAGS = $(check_INCLUDES)
68 testVarExp_LDADD = $(check_LDADD)
70 testControlExp_SOURCES = src/cpp/testControlExp.cpp
71 testControlExp_CXXFLAGS = $(check_INCLUDES)
72 testControlExp_LDADD = $(check_LDADD)
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 src/cpp/llvm-wrapper.bc
78 # llc-3.3 -march=cpp -cppgen=contents src/cpp/llvm-wrapper.bc -o - | perl src/perl/demangle.pl > src/cpp/llvm-wrapper-generated.cpp
79 llc-3.3 -march=cpp -cppgen=contents src/cpp/llvm-wrapper.bc -o - > src/cpp/llvm-wrapper-generated.cpp
80 rm src/cpp/llvm-wrapper.bc
82 include $(top_srcdir)/Makefile.incl.am