Rev 26 | Rev 40 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | jlesech | 1 | # Create and initialize the environment. |
2 | env_avr = Environment() |
||
3 | |||
4 | # Set environment for AVR-GCC. |
||
5 | env_avr['CC'] = 'avr-gcc' |
||
6 | env_avr['CPPPATH'] = '/usr/lib/avr/include' |
||
7 | env_avr['OBJCOPY'] = 'avr-objcopy' |
||
8 | env_avr['SIZE'] = 'avr-size' |
||
9 | env_avr['AR'] = 'avr-ar' |
||
10 | env_avr['RANLIB'] = 'avr-ranlib' |
||
11 | |||
27 | jlesech | 12 | # Set language standard. |
13 | env_avr.Append(CCFLAGS = '-std=c99') |
||
14 | |||
15 | # Set optimization level. |
||
16 | env_avr.Append(CCFLAGS = '-Os') |
||
17 | |||
2 | jlesech | 18 | # Export environment set for AVR-GCC. |
19 | Export('env_avr') |