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. # Define programs and commands.
SHELL = sh 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 CC = avr-gcc
OBJCOPY = avr-objcopy OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump OBJDUMP = avr-objdump
SIZE = avr-size SIZE = avr-size
AVR_NM = avr-nm
endif
# Programming support using avrdude. # Programming support using avrdude.
AVRDUDE = avrdude AVRDUDE = avrdude
@ -376,7 +391,7 @@ program: $(TARGET).hex $(TARGET).eep
%.sym: %.elf %.sym: %.elf
@echo @echo
@echo $(MSG_SYMBOL_TABLE) $@ @echo $(MSG_SYMBOL_TABLE) $@
avr-nm -n $< > $@ $(AVR_NM) -n $< > $@
# Archive Arduino core library # Archive Arduino core library