Compare commits
3 Commits
master
...
527ec7353d
Author | SHA1 | Date | |
---|---|---|---|
527ec7353d | |||
01aab1559f | |||
12822f737d |
Submodule ArduinoCore-avr updated: 0e7fae85bd...3055c1efa3
@ -37,11 +37,16 @@ CORE_LIB = $(ARDDIR)/arduino_core.a
|
||||
#
|
||||
# Exemplia gratia:
|
||||
#
|
||||
# TARGET = foo # the name of your main file, with no extension
|
||||
# SRC = foo.c bar.c # the C source files
|
||||
# PSRC = baz.cpp qux.cpp # the C++ source files
|
||||
# ARDLIBS = SoftwareSerial # extra Arduino libraries
|
||||
# include /d/dev/avr/Makefile.base # this line includes the Makefile.base
|
||||
# the name of your main file, with no extension
|
||||
# TARGET = foo
|
||||
# the C source files
|
||||
# SRC = foo.c bar.c
|
||||
# the C++ source files
|
||||
# PSRC = baz.cpp qux.cpp
|
||||
# extra Arduino libraries
|
||||
# ARDLIBS = SoftwareSerial
|
||||
# this line includes the Makefile.base
|
||||
# include /d/dev/avr/Makefile.base
|
||||
|
||||
# A number of necessary variables are set to defaults below, but you can override them
|
||||
# in your own Makefile:
|
||||
@ -233,12 +238,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 +396,7 @@ program: $(TARGET).hex $(TARGET).eep
|
||||
%.sym: %.elf
|
||||
@echo
|
||||
@echo $(MSG_SYMBOL_TABLE) $@
|
||||
avr-nm -n $< > $@
|
||||
$(AVR_NM) -n $< > $@
|
||||
|
||||
|
||||
# Archive Arduino core library
|
||||
|
Reference in New Issue
Block a user