Deleted Added
sdiff udiff text old ( 8737:770ccf3af571 ) new ( 8881:042d509574c1 )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 939 unchanged lines hidden (view full) ---

948 ccflags['debug'] = '-g -O0'
949 ccflags['opt'] = '-g -O'
950 ccflags['fast'] = '-fast'
951 ccflags['prof'] = '-fast -g -pg'
952else:
953 print 'Unknown compiler, please fix compiler options'
954 Exit(1)
955
956makeEnv('debug', '.do',
957 CCFLAGS = Split(ccflags['debug']),
958 CPPDEFINES = ['DEBUG', 'TRACING_ON=1'])
959
960# Optimized binary
961makeEnv('opt', '.o',
962 CCFLAGS = Split(ccflags['opt']),
963 CPPDEFINES = ['TRACING_ON=1'])
964
965# "Fast" binary
966makeEnv('fast', '.fo', strip = True,
967 CCFLAGS = Split(ccflags['fast']),
968 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'])
969
970# Profiled binary
971makeEnv('prof', '.po',
972 CCFLAGS = Split(ccflags['prof']),
973 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],
974 LINKFLAGS = '-pg')
975
976Return('envList')