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/sci_runVMKit.cpp
21 libscijit_la_CPPFLAGS = \
24 -I$(top_srcdir)/modules/types/includes \
25 -I$(top_srcdir)/modules/localization/includes \
26 -I$(top_srcdir)/modules/symbol/includes \
27 -I$(top_srcdir)/modules/operations/includes \
28 -I$(top_srcdir)/modules/system_env/includes \
29 -I$(top_srcdir)/modules/threads/includes \
30 -I$(top_srcdir)/modules/api_scilab/includes \
31 -I$(top_srcdir)/modules/dynamic_link/includes \
32 -I$(top_srcdir)/modules/string/includes \
33 -I$(top_srcdir)/modules/console/includes \
34 -I$(top_srcdir)/modules/ast/includes \
35 -I$(top_srcdir)/modules/output_stream/includes \
36 -I$(top_srcdir)/modules/functions_manager/includes \
41 libscijit_la_SOURCES = $(JIT_CPP_SOURCES) $(GATEWAY_CPP_SOURCES)
43 libscijit_la_includedir=$(pkgincludedir)
44 libscijit_la_include_HEADERS =
50 -I$(top_srcdir)/modules/symbol/includes \
55 $(top_builddir)/modules/symbol/libsciSymbol.la \
56 $(top_builddir)/modules/jit/libscijit.la \
57 $(top_builddir)/modules/types/libsciTypes.la
59 testConstExp_SOURCES = src/cpp/testConstExp.cpp
60 testConstExp_CXXFLAGS = $(check_INCLUDES)
61 testConstExp_LDADD = $(check_LDADD)
63 testVarExp_SOURCES = src/cpp/testVarExp.cpp
64 testVarExp_CXXFLAGS = $(check_INCLUDES)
65 testVarExp_LDADD = $(check_LDADD)
67 testControlExp_SOURCES = src/cpp/testControlExp.cpp
68 testControlExp_CXXFLAGS = $(check_INCLUDES)
69 testControlExp_LDADD = $(check_LDADD)
71 # This target transforms a basic code to llvm + clang code for the JIT
72 BUILT_SOURCES = src/cpp/llvm-wrapper-generated.cpp
73 src/cpp/llvm-wrapper-generated.cpp: src/cpp/llvm-wrapper.cpp
74 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
76 include $(top_srcdir)/Makefile.incl.am