wscript_build (481B)
1 #!/usr/bin/env python 2 3 """ 4 when linked, object files should bring the libraries (uselib) they refer to 5 """ 6 7 bld.env.LIB_Z = ['z'] 8 9 bld.recurse('lib') 10 11 bld.recurse('libex') 12 13 bld.objects( 14 source = 'a.c', 15 target = 'A', 16 use = 'Z', 17 ) 18 19 20 bld.program( 21 source = 'a-test.c', 22 target = 'a-test', 23 use = 'A libex', 24 ) 25 26 """ 27 bld.objects( 28 source = 'b.c', 29 target = 'B', 30 use = 'A', 31 ) 32 33 bld.program( 34 source = 'c.c', 35 target = 'C', 36 use = 'B', 37 ) 38 """ 39