waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript_build (285B)


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