4.3 Building Targets

Building target files is accomplished by using Environments. Environments can be created at the top level of the build script, or from within a task action block.

Environments are created with the env build script method. Here is an example build script that creates an Environment and registers a Program build target:

env do |env|
  env.Program("myprog.exe", glob("src/**/*.c"))
end

This Rsconscript would build an executable called myprog.exe from all C source files found recursively under the src directory.