forked from mohr/arduino_core
windows support added
This commit is contained in:
parent
2e1a217737
commit
12822f737d
@ -233,12 +233,27 @@ DIRLIB = $(DIRAVR)/avr/lib
|
||||
# Define programs and commands.
|
||||
SHELL = sh
|
||||
|
||||
ifdef WINDOWS
|
||||
|
||||
CC = avr-gcc.exe
|
||||
|
||||
OBJCOPY = avr-objcopy.exe
|
||||
OBJDUMP = avr-objdump.exe
|
||||
SIZE = avr-size.exe
|
||||
|
||||
AVR_NM = avr-nm.exe
|
||||
|
||||
else
|
||||
|
||||
CC = avr-gcc
|
||||
|
||||
OBJCOPY = avr-objcopy
|
||||
OBJDUMP = avr-objdump
|
||||
SIZE = avr-size
|
||||
|
||||
AVR_NM = avr-nm
|
||||
|
||||
endif
|
||||
|
||||
# Programming support using avrdude.
|
||||
AVRDUDE = avrdude
|
||||
@ -376,7 +391,7 @@ program: $(TARGET).hex $(TARGET).eep
|
||||
%.sym: %.elf
|
||||
@echo
|
||||
@echo $(MSG_SYMBOL_TABLE) $@
|
||||
avr-nm -n $< > $@
|
||||
$(AVR_NM) -n $< > $@
|
||||
|
||||
|
||||
# Archive Arduino core library
|
||||
|
Loading…
Reference in New Issue
Block a user