diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-24 03:45:32 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-24 03:45:32 (GMT) |
commit | db7e2b9bef087394fd3ce603e75231dec7f2eca4 (patch) | |
tree | 59fe8e23d14566ca5776d7ad108e95208ed17344 /src/engine/SCons/Tool/g77.py | |
parent | 9587e1d2dad1c532d86f664f5cbd6266ebd77808 (diff) | |
download | SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.zip SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.tar.gz SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.tar.bz2 |
Implement tool chains for AIX, SunOS, and HP-UX. (Steve Leblanc)
Diffstat (limited to 'src/engine/SCons/Tool/g77.py')
-rw-r--r-- | src/engine/SCons/Tool/g77.py | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/src/engine/SCons/Tool/g77.py b/src/engine/SCons/Tool/g77.py index 33fe76b..549dffb 100644 --- a/src/engine/SCons/Tool/g77.py +++ b/src/engine/SCons/Tool/g77.py @@ -33,41 +33,15 @@ selection method. __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" -import os.path - -import SCons.Defaults -import SCons.Tool -import SCons.Util +import f77 compilers = ['g77', 'f77'] -F77Suffixes = ['.f', '.for', '.FOR'] -F77PPSuffixes = ['.fpp', '.FPP'] -if os.path.normcase('.f') == os.path.normcase('.F'): - F77Suffixes.append('.F') -else: - F77PPSuffixes.append('.F') - def generate(env): """Add Builders and construction variables for g77 to an Environment.""" - static_obj, shared_obj = SCons.Tool.createObjBuilders(env) - - for suffix in F77Suffixes: - static_obj.add_action(suffix, SCons.Defaults.F77Action) - shared_obj.add_action(suffix, SCons.Defaults.ShF77Action) - - for suffix in F77PPSuffixes: - static_obj.add_action(suffix, SCons.Defaults.F77PPAction) - shared_obj.add_action(suffix, SCons.Defaults.ShF77PPAction) + f77.generate(env) - env['F77'] = env.Detect(compilers) or 'g77' - env['F77FLAGS'] = '' - env['F77COM'] = '$F77 $F77FLAGS $_F77INCFLAGS -c -o $TARGET $SOURCES' - env['F77PPCOM'] = '$F77 $F77FLAGS $CPPFLAGS $_F77INCFLAGS -c -o $TARGET $SOURCES' - env['SHF77'] = '$F77' - env['SHF77FLAGS'] = '$F77FLAGS -fPIC' - env['SHF77COM'] = '$SHF77 $SHF77FLAGS $_F77INCFLAGS -c -o $TARGET $SOURCES' - env['SHF77PPCOM'] = '$SHF77 $SHF77FLAGS $CPPFLAGS $_F77INCFLAGS -c -o $TARGET $SOURCES' + env['F77'] = env.Detect(compilers) or 'g77' def exists(env): return env.Detect(compilers) |