diff options
author | Steven Knight <knight@baldmt.com> | 2002-01-07 05:06:56 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-01-07 05:06:56 (GMT) |
commit | 053bdc2a64627a8770b6cf0fe6b4c535088088d6 (patch) | |
tree | ed63a7dbe361a5596ea33eddd608129b218a3452 /doc | |
parent | 1fe779a3c478c50c02504679ebda31e3ab515c3f (diff) | |
download | SCons-053bdc2a64627a8770b6cf0fe6b4c535088088d6.zip SCons-053bdc2a64627a8770b6cf0fe6b4c535088088d6.tar.gz SCons-053bdc2a64627a8770b6cf0fe6b4c535088088d6.tar.bz2 |
Add support for lex and yacc.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/scons.1 | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index ad8a834..7ac1bf4 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -519,6 +519,7 @@ env.Program('bar', ['bar.c', 'foo.c']) .B scons provides the following builders: + .IP Object Builds an object file from one or more C/C++ source files. Source files must have one of the following extensions: .c, .C, .cc, .cpp, .cxx, .c++, .C++. @@ -552,6 +553,18 @@ env.Library(target = 'bar', source = 'bar.c foo.o') .PP .fi +.IP CFile +Builds a C source file given a lex (.l) or yacc (.y) input file. +The hard-coded suffix .c is +automatically added to the target +if it is not already present. Example: +.IP +.nf +env.CFile(target = 'foo.c', source = 'foo.l') # builds foo.c +env.CFile(target = 'bar', source = 'bar.y') # builds bar.c +.PP +.fi + .LP C/C++ source files are automatically scanned for dependencies by @@ -663,8 +676,29 @@ General options passed to the static library command. .IP ARCOM The command line used to generate a static library from object files. +.IP LEX +The lexical analyzer generator. + +.IP LEXFLAGS +General options passed to the lexical analyzer generator. + +.IP LEXCOM +The command line used to call the lexical analyzer generator +to generate a source file. + +.IP YACC +The parser generator. + +.IP YACCFLAGS +General options passed to the parser generator. + +.IP YACCCOM +The command line used to call the parser generator +to generate a source file. + .IP BUILDERS -A list of the available builders. [Object, Program, Library] by default. +A list of the available builders. +[CFile, Object, Program, Library] by default. .IP SCANNERS A list of the available implicit dependency scanners. [CScan] by default. |