diff --git a/arduino-base.mk b/arduino-base.mk index a099c7e..387c6cc 100644 --- a/arduino-base.mk +++ b/arduino-base.mk @@ -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