1 #==============================================================================
2 # Copyright (c) 2001-2011 Joel de Guzman
4 # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #==============================================================================
7 project spirit-qi-compiler_tutorial
9 <c++-template-depth>300
15 exe calc1 : calc1.cpp ;
16 exe calc2 : calc2.cpp ;
17 exe calc3 : calc3.cpp ;
18 exe calc4 : calc4.cpp ;
19 exe calc5 : calc5.cpp ;
20 exe calc6 : calc6.cpp ;
50 conjure1/expression.cpp
51 conjure1/statement.cpp
58 conjure2/expression.cpp
62 conjure2/statement.cpp
66 #==============================================================================
67 # conjure3 and above require LLVM. Make sure you provide the
68 # LLVM_PATH in your bjam invocation. E.g.:
70 # bjam -sLLVM_PATH=C:/dev/llvm conjure3
72 #==============================================================================
74 if [ modules.peek : LLVM_PATH ]
76 LLVM_PATH = [ modules.peek : LLVM_PATH ] ;
81 path-constant LLVM_LIB_DEBUG_PATH : $(LLVM_PATH)/lib/Debug ;
82 path-constant LLVM_LIB_RELEASE_PATH : $(LLVM_PATH)/lib/Release ;
89 llvm_debug_libs = [ glob $(LLVM_LIB_DEBUG_PATH)/LLVM*.lib ] ;
90 llvm_release_libs = [ glob $(LLVM_LIB_RELEASE_PATH)/LLVM*.lib ] ;
92 rule build_exe_1 ( target-name : sources + : requirements * )
95 if <variant>debug in $(requirements)
97 llvm_lib = $(llvm_debug_libs) ;
101 llvm_lib = $(llvm_release_libs) ;
109 <include>$(LLVM_PATH)/include
110 <linkflags>$(llvm_linker_flags)
114 rule build_exe ( target-name : sources + )
116 build_exe_1 $(target-name) : $(sources) : <variant>debug ;
117 build_exe_1 $(target-name) : $(sources) : <variant>release ;
121 conjure3/compiler.cpp
122 conjure3/expression.cpp
123 conjure3/function.cpp
126 conjure3/statement.cpp