wscript_build 424 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. """
  3. the objects should carry uselib variables (includes, libraries to link against)
  4. to other objects and to the final link
  5. """
  6. bld.env.LIB_Z = ['z']
  7. bld.env.INCLUDES_Z = ['subdir']
  8. bld.objects(
  9. source = 'a.c',
  10. target = 'AA',
  11. use = 'Z',
  12. )
  13. bld.objects(
  14. source = 'b.c',
  15. target = 'BB',
  16. use = 'AA',
  17. )
  18. bld.program(
  19. source = 'c.c',
  20. target = 'CC',
  21. use = 'BB',
  22. )