for package in subpackages:
    pack_objects = env.SConscript(os.path.join(package, 'SConscript'),
        exports=env)
objects.extend(pack_objects)
program = env.Program('myprog', objects)
Default(program)
SCons setup for hierarchical source but single target