Whitespace and formatting fix
No code or functionality change
This commit is contained in:
parent
099510ef5b
commit
f9027d4d13
1 changed files with 34 additions and 45 deletions
|
@ -244,7 +244,6 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Makefile distribution path
|
# Makefile distribution path
|
||||||
#
|
|
||||||
|
|
||||||
ifndef ARDMK_DIR
|
ifndef ARDMK_DIR
|
||||||
# presume it's a level above the path to our own file
|
# presume it's a level above the path to our own file
|
||||||
|
@ -280,8 +279,8 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
|
||||||
# Arduino Directory
|
# Arduino Directory
|
||||||
|
|
||||||
ifndef ARDUINO_DIR
|
ifndef ARDUINO_DIR
|
||||||
AUTO_ARDUINO_DIR := $(firstword \
|
AUTO_ARDUINO_DIR := $(firstword \
|
||||||
$(call dir_if_exists,/usr/share/arduino) \
|
$(call dir_if_exists,/usr/share/arduino) \
|
||||||
|
@ -297,15 +296,15 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
|
||||||
# Default TARGET to pwd (ex Daniele Vergini)
|
# Default TARGET to pwd (ex Daniele Vergini)
|
||||||
|
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
TARGET = $(notdir $(CURDIR))
|
TARGET = $(notdir $(CURDIR))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
|
||||||
# Arduino version number
|
# Arduino version number
|
||||||
|
|
||||||
ifndef ARDUINO_VERSION
|
ifndef ARDUINO_VERSION
|
||||||
# Remove all the decimals, and right-pad with zeros, and finally grab the first 3 bytes.
|
# Remove all the decimals, and right-pad with zeros, and finally grab the first 3 bytes.
|
||||||
# Works for 1.0 and 1.0.1
|
# Works for 1.0 and 1.0.1
|
||||||
|
@ -324,8 +323,6 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Arduino Sketchbook folder
|
# Arduino Sketchbook folder
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
ifndef ARDUINO_SKETCHBOOK
|
ifndef ARDUINO_SKETCHBOOK
|
||||||
ifndef ARDUINO_PREFERENCES_PATH
|
ifndef ARDUINO_PREFERENCES_PATH
|
||||||
|
@ -360,7 +357,6 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Arduino and system paths
|
# Arduino and system paths
|
||||||
#
|
|
||||||
|
|
||||||
ifndef CC_NAME
|
ifndef CC_NAME
|
||||||
CC_NAME = avr-gcc
|
CC_NAME = avr-gcc
|
||||||
|
@ -494,7 +490,7 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
#
|
|
||||||
ifndef USER_LIB_PATH
|
ifndef USER_LIB_PATH
|
||||||
USER_LIB_PATH = $(ARDUINO_SKETCHBOOK)/libraries
|
USER_LIB_PATH = $(ARDUINO_SKETCHBOOK)/libraries
|
||||||
$(call show_config_variable,USER_LIB_PATH,[DEFAULT],(in user sketchbook))
|
$(call show_config_variable,USER_LIB_PATH,[DEFAULT],(in user sketchbook))
|
||||||
|
@ -502,10 +498,9 @@ else
|
||||||
$(call show_config_variable,USER_LIB_PATH,[USER])
|
$(call show_config_variable,USER_LIB_PATH,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# boards.txt parsing
|
# boards.txt parsing
|
||||||
#
|
|
||||||
ifndef BOARD_TAG
|
ifndef BOARD_TAG
|
||||||
BOARD_TAG = uno
|
BOARD_TAG = uno
|
||||||
$(call show_config_variable,BOARD_TAG,[DEFAULT])
|
$(call show_config_variable,BOARD_TAG,[DEFAULT])
|
||||||
|
@ -597,10 +592,9 @@ else
|
||||||
$(call show_config_variable,OBJDIR,[USER])
|
$(call show_config_variable,OBJDIR,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Reset
|
# Reset
|
||||||
#
|
|
||||||
ifndef RESET_CMD
|
ifndef RESET_CMD
|
||||||
ifneq ($(CATERINA),)
|
ifneq ($(CATERINA),)
|
||||||
RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --caterina \
|
RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --caterina \
|
||||||
|
@ -617,10 +611,9 @@ else
|
||||||
ERROR_ON_CATERINA =
|
ERROR_ON_CATERINA =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Local sources
|
# Local sources
|
||||||
#
|
|
||||||
LOCAL_C_SRCS ?= $(wildcard *.c)
|
LOCAL_C_SRCS ?= $(wildcard *.c)
|
||||||
LOCAL_CPP_SRCS ?= $(wildcard *.cpp)
|
LOCAL_CPP_SRCS ?= $(wildcard *.cpp)
|
||||||
LOCAL_CC_SRCS ?= $(wildcard *.cc)
|
LOCAL_CC_SRCS ?= $(wildcard *.cc)
|
||||||
|
@ -674,7 +667,7 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Determine ARDUINO_LIBS automatically
|
# Determine ARDUINO_LIBS automatically
|
||||||
#
|
|
||||||
ifndef ARDUINO_LIBS
|
ifndef ARDUINO_LIBS
|
||||||
# automatically determine included libraries
|
# automatically determine included libraries
|
||||||
ARDUINO_LIBS += $(filter $(notdir $(wildcard $(ARDUINO_DIR)/libraries/*)), \
|
ARDUINO_LIBS += $(filter $(notdir $(wildcard $(ARDUINO_DIR)/libraries/*)), \
|
||||||
|
@ -685,11 +678,11 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Serial monitor (just a screen wrapper)
|
# Serial monitor (just a screen wrapper)
|
||||||
#
|
|
||||||
# Quite how to construct the monitor command seems intimately tied
|
# Quite how to construct the monitor command seems intimately tied
|
||||||
# to the command we're using (here screen). So, read the screen docs
|
# to the command we're using (here screen). So, read the screen docs
|
||||||
# for more information (search for 'character special device').
|
# for more information (search for 'character special device').
|
||||||
#
|
|
||||||
ifeq ($(strip $(NO_CORE)),)
|
ifeq ($(strip $(NO_CORE)),)
|
||||||
ifndef MONITOR_BAUDRATE
|
ifndef MONITOR_BAUDRATE
|
||||||
ifeq ($(words $(LOCAL_PDE_SRCS) $(LOCAL_INO_SRCS)), 1)
|
ifeq ($(words $(LOCAL_PDE_SRCS) $(LOCAL_INO_SRCS)), 1)
|
||||||
|
@ -714,7 +707,7 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Include file to use for old .pde files
|
# Include file to use for old .pde files
|
||||||
#
|
|
||||||
ifndef ARDUINO_HEADER
|
ifndef ARDUINO_HEADER
|
||||||
# We should check for Arduino version, if the file is .pde because a
|
# We should check for Arduino version, if the file is .pde because a
|
||||||
# .pde file might be used in Arduino 1.0
|
# .pde file might be used in Arduino 1.0
|
||||||
|
@ -727,7 +720,6 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Rules for making stuff
|
# Rules for making stuff
|
||||||
#
|
|
||||||
|
|
||||||
# The name of the main targets
|
# The name of the main targets
|
||||||
TARGET_HEX = $(OBJDIR)/$(TARGET).hex
|
TARGET_HEX = $(OBJDIR)/$(TARGET).hex
|
||||||
|
@ -753,7 +745,7 @@ MKDIR = mkdir -p
|
||||||
|
|
||||||
# General arguments
|
# General arguments
|
||||||
USER_LIBS = $(wildcard $(patsubst %,$(USER_LIB_PATH)/%,$(ARDUINO_LIBS)))
|
USER_LIBS = $(wildcard $(patsubst %,$(USER_LIB_PATH)/%,$(ARDUINO_LIBS)))
|
||||||
USER_LIB_NAMES= $(patsubst $(USER_LIB_PATH)/%,%,$(USER_LIBS))
|
USER_LIB_NAMES = $(patsubst $(USER_LIB_PATH)/%,%,$(USER_LIBS))
|
||||||
|
|
||||||
# Let user libraries override system ones.
|
# Let user libraries override system ones.
|
||||||
SYS_LIBS = $(wildcard $(patsubst %,$(ARDUINO_LIB_PATH)/%,$(filter-out $(USER_LIB_NAMES),$(ARDUINO_LIBS))))
|
SYS_LIBS = $(wildcard $(patsubst %,$(ARDUINO_LIB_PATH)/%,$(filter-out $(USER_LIB_NAMES),$(ARDUINO_LIBS))))
|
||||||
|
@ -975,10 +967,9 @@ $(OBJDIR)/%.sym: $(OBJDIR)/%.elf $(COMMON_DEPS)
|
||||||
$(NM) --size-sort --demangle --reverse-sort --line-numbers $< > $@
|
$(NM) --size-sort --demangle --reverse-sort --line-numbers $< > $@
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
|
||||||
# Avrdude
|
# Avrdude
|
||||||
|
|
||||||
# If avrdude is installed separately, it can find its own config file
|
# If avrdude is installed separately, it can find its own config file
|
||||||
#
|
|
||||||
ifndef AVRDUDE
|
ifndef AVRDUDE
|
||||||
AVRDUDE = $(AVR_TOOLS_PATH)/avrdude
|
AVRDUDE = $(AVR_TOOLS_PATH)/avrdude
|
||||||
endif
|
endif
|
||||||
|
@ -1046,9 +1037,7 @@ ifneq ($(ISP_EEPROM), 0)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
|
||||||
# Explicit targets start here
|
# Explicit targets start here
|
||||||
#
|
|
||||||
|
|
||||||
all: $(TARGET_EEP) $(TARGET_HEX)
|
all: $(TARGET_EEP) $(TARGET_HEX)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue