]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/tools/lex.jam
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / src / tools / lex.jam
1 # Copyright 2003 Vladimir Prus
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
4
5 import type ;
6 import generators ;
7 import feature ;
8 import toolset : flags ;
9
10 feature.feature flex.prefix : : free ;
11 type.register LEX : l ;
12 type.register LEX++ : ll ;
13 generators.register-standard lex.lex : LEX : C ;
14 generators.register-standard lex.lex : LEX++ : CPP ;
15
16 rule init ( )
17 {
18 }
19
20 flags lex.lex PREFIX <flex.prefix> ;
21
22 actions lex
23 {
24 flex -P$(PREFIX) -o$(<) $(>)
25 }