You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
481 B
Python
40 lines
481 B
Python
#!/usr/bin/env python
|
|
|
|
"""
|
|
when linked, object files should bring the libraries (uselib) they refer to
|
|
"""
|
|
|
|
bld.env.LIB_Z = ['z']
|
|
|
|
bld.recurse('lib')
|
|
|
|
bld.recurse('libex')
|
|
|
|
bld.objects(
|
|
source = 'a.c',
|
|
target = 'A',
|
|
use = 'Z',
|
|
)
|
|
|
|
|
|
bld.program(
|
|
source = 'a-test.c',
|
|
target = 'a-test',
|
|
use = 'A libex',
|
|
)
|
|
|
|
"""
|
|
bld.objects(
|
|
source = 'b.c',
|
|
target = 'B',
|
|
use = 'A',
|
|
)
|
|
|
|
bld.program(
|
|
source = 'c.c',
|
|
target = 'C',
|
|
use = 'B',
|
|
)
|
|
"""
|
|
|