Add env() method to create environments. Process all environments created at build script top level before executing any autoconf-enabled tasks, or if no tasks are specified by the user.
8 lines
273 B
Ruby
8 lines
273 B
Ruby
env do |env|
|
|
env["ASSUFFIX"] = %w[.ssss .sss]
|
|
env["CFLAGS"] += %w[-S]
|
|
env.Object("one.ssss", "one.c", "CPPFLAGS" => ["-DONE"])
|
|
env.Object("two.sss", "two.c")
|
|
env.Program("two_sources.exe", %w[one.ssss two.sss], "ASFLAGS" => env["ASFLAGS"] + %w[-x assembler])
|
|
end
|