windows support added

This commit is contained in:
Robin Müller 2020-10-12 22:02:52 +02:00
parent 2e1a217737
commit 12822f737d

View File

@ -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