Subversion Repositories svnkaklik

Rev

Rev 484 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 484 Rev 725
Line 6... Line 6...
6
PROJECT = rs485
6
PROJECT = rs485
7
MCU = attiny2313
7
MCU = attiny2313
8
TARGET = rs485.elf
8
TARGET = rs485.elf
9
CC = avr-gcc
9
CC = avr-gcc
10
 
10
 
-
 
11
CPP = avr-g++
-
 
12
 
11
## Options common to compile, link and assembly rules
13
## Options common to compile, link and assembly rules
12
COMMON = -mmcu=$(MCU)
14
COMMON = -mmcu=$(MCU)
13
 
15
 
14
## Compile options common for all C compilation units.
16
## Compile options common for all C compilation units.
15
CFLAGS = $(COMMON)
17
CFLAGS = $(COMMON)
Line 25... Line 27...
25
LDFLAGS = $(COMMON)
27
LDFLAGS = $(COMMON)
26
LDFLAGS += 
28
LDFLAGS += 
27
 
29
 
28
 
30
 
29
## Intel Hex file production flags
31
## Intel Hex file production flags
30
HEX_FLASH_FLAGS = -R .eeprom
32
HEX_FLASH_FLAGS = -R .eeprom -R .fuse -R .lock -R .signature
31
 
33
 
32
HEX_EEPROM_FLAGS = -j .eeprom
34
HEX_EEPROM_FLAGS = -j .eeprom
33
HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load"
35
HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load"
34
HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings
36
HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings
35
 
37