Rev 26 |
Rev 40 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
# Create and initialize the environment.
env_avr = Environment()
# Set environment for AVR-GCC.
env_avr['CC'] = 'avr-gcc'
env_avr['CPPPATH'] = '/usr/lib/avr/include'
env_avr['OBJCOPY'] = 'avr-objcopy'
env_avr['SIZE'] = 'avr-size'
env_avr['AR'] = 'avr-ar'
env_avr['RANLIB'] = 'avr-ranlib'
# Set language standard.
env_avr.Append(CCFLAGS = '-std=c99')
# Set optimization level.
env_avr.Append(CCFLAGS = '-Os')
# Export environment set for AVR-GCC.
Export('env_avr')