Mising library LLVMObjCARCOpts
[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/sci_runASTwithVMKit.cpp
20
21 libscijit_la_CPPFLAGS = \
22         -Iincludes \
23         -Isrc/cpp \
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 \
37     $(EIGEN_CPPFLAGS) \
38         $(VMKIT_CPPFLAGS) \
39         $(AM_CPPFLAGS)
40
41 libscijit_la_SOURCES = $(JIT_CPP_SOURCES) $(GATEWAY_CPP_SOURCES)
42
43 libscijit_la_includedir=$(pkgincludedir)
44 libscijit_la_include_HEADERS =
45
46 ####################
47 ## Automated test ##
48 ####################
49 check_INCLUDES = \
50     -I$(top_srcdir)/modules/symbol/includes \
51         -Iincludes/ \
52         -Isrc/cpp
53
54 check_LDADD     = \
55     $(top_builddir)/modules/symbol/libsciSymbol.la \
56         $(top_builddir)/modules/jit/libscijit.la \
57         $(top_builddir)/modules/types/libsciTypes.la
58
59 testConstExp_SOURCES    = src/cpp/testConstExp.cpp
60 testConstExp_CXXFLAGS   = $(check_INCLUDES)
61 testConstExp_LDADD      = $(check_LDADD)
62
63 testVarExp_SOURCES      = src/cpp/testVarExp.cpp
64 testVarExp_CXXFLAGS     = $(check_INCLUDES)
65 testVarExp_LDADD        = $(check_LDADD)
66
67 testControlExp_SOURCES  = src/cpp/testControlExp.cpp
68 testControlExp_CXXFLAGS = $(check_INCLUDES)
69 testControlExp_LDADD    = $(check_LDADD)
70
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/ $(EIGEN_CPPFLAGS) -c src/cpp/llvm-wrapper.cpp -o - | llc-3.3 -march=cpp -cppgen=contents -o src/cpp/llvm-wrapper-generated.cpp
75
76
77 include $(top_srcdir)/Makefile.incl.am
78