wscript_build 285 B

1234567891011121314
  1. #! /usr/bin/env python
  2. def write_header(tsk):
  3. tsk.outputs[0].write('int abc = 423;')
  4. bld(rule=write_header, target='b.h', ext_out=['.h'])
  5. bld.program(
  6. source = 'main.c',
  7. includes = '. ..',
  8. cflags = ['-O3'],
  9. defines = ['foo=bar'],
  10. target = 'myprogram',
  11. use = 'M')