parameters: (env)
docstring: Add Builders and construction variables for C compilers to an Environment.
docstring_summary: Add Builders and construction variables for C compilers to an Environment.
docstring_tokens: Add Builders and construction variables for C compilers to an Environment .
function: def generate(env):
      """
      Add Builders and construction variables for C compilers to an Environment.
      """
      static_obj, shared_obj = SCons.Tool.createObjBuilders(env)
  
      for suffix in CSuffixes:
          static_obj.add_action(suffix, SCons.Defaults.CAction)
          shared_obj.add_action(suffix, SCons.Defaults.ShCAction)
          static_obj.add_emitter(suffix, SCons.Defaults.StaticObjectEmitter)
          shared_obj.add_emitter(suffix, SCons.Defaults.SharedObjectEmitter)
  
      add_common_cc_variables(env)
  
      if 'CC' not in env:
          env['CC']    = env.Detect(compilers) or compilers[0]
      env['CFLAGS']    = SCons.Util.CLVar('')
      env['CCCOM']     = '$CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES'
      env['SHCC']      = '$CC'
      env['SHCFLAGS'] = SCons.Util.CLVar('$CFLAGS')
      env['SHCCCOM']   = '$SHCC -o $TARGET -c $SHCFLAGS $SHCCFLAGS $_CCCOMCOM $SOURCES'
  
      env['CPPDEFPREFIX']  = '-D'
      env['CPPDEFSUFFIX']  = ''
      env['INCPREFIX']  = '-I'
      env['INCSUFFIX']  = ''
      env['SHOBJSUFFIX'] = '.os'
      env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 0
  
      env['CFILESUFFIX'] = '.c'
function_tokens: def generate ( env ) : static_obj , shared_obj = SCons . Tool . createObjBuilders ( env ) for suffix in CSuffixes : static_obj . add_action ( suffix , SCons . Defaults . CAction ) shared_obj . add_action ( suffix , SCons . Defaults . ShCAction ) static_obj . add_emitter ( suffix , SCons . Defaults . StaticObjectEmitter ) shared_obj . add_emitter ( suffix , SCons . Defaults . SharedObjectEmitter ) add_common_cc_variables ( env ) if 'CC' not in env : env [ 'CC' ] = env . Detect ( compilers ) or compilers [ 0 ] env [ 'CFLAGS' ] = SCons . Util . CLVar ( '' ) env [ 'CCCOM' ] = '$CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES' env [ 'SHCC' ] = '$CC' env [ 'SHCFLAGS' ] = SCons . Util . CLVar ( '$CFLAGS' ) env [ 'SHCCCOM' ] = '$SHCC -o $TARGET -c $SHCFLAGS $SHCCFLAGS $_CCCOMCOM $SOURCES' env [ 'CPPDEFPREFIX' ] = '-D' env [ 'CPPDEFSUFFIX' ] = '' env [ 'INCPREFIX' ] = '-I' env [ 'INCSUFFIX' ] = '' env [ 'SHOBJSUFFIX' ] = '.os' env [ 'STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME' ] = 0 env [ 'CFILESUFFIX' ] = '.c'