|
|
@ -1,16 +1,10 @@
|
|
|
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
|
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
|
|
mkfile_dir := $(dir $(mkfile_path))
|
|
|
|
mkfile_dir := $(dir $(mkfile_path))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make a variable lazily evaluated at first call
|
|
|
|
# Make a variable lazily evaluated at first call
|
|
|
|
# From https://blog.jgc.org/2016/07/lazy-gnu-make-variables.html
|
|
|
|
# From https://blog.jgc.org/2016/07/lazy-gnu-make-variables.html
|
|
|
|
make-lazy = $(eval $1 = $$(eval $1 := $(value $(1)))$$($1))
|
|
|
|
make-lazy = $(eval $1 = $$(eval $1 := $(value $(1)))$$($1))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export KALEIDOSCOPE_DIR ?= $(abspath $(mkfile_dir)/..)
|
|
|
|
export KALEIDOSCOPE_DIR ?= $(abspath $(mkfile_dir)/..)
|
|
|
|
export KALEIDOSCOPE_BIN_DIR ?= $(KALEIDOSCOPE_DIR)/bin
|
|
|
|
export KALEIDOSCOPE_BIN_DIR ?= $(KALEIDOSCOPE_DIR)/bin
|
|
|
|
|
|
|
|
|
|
|
@ -165,9 +159,6 @@ install-arduino-core-kaleidoscope:
|
|
|
|
install-arduino-core-avr:
|
|
|
|
install-arduino-core-avr:
|
|
|
|
$(ARDUINO_CLI) core install "arduino:avr"
|
|
|
|
$(ARDUINO_CLI) core install "arduino:avr"
|
|
|
|
|
|
|
|
|
|
|
|
decompile: disassemble
|
|
|
|
|
|
|
|
@: ## Do not remove this line, otherwise `make all` will trigger the `%` rule too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disassemble: ${ELF_FILE_PATH}
|
|
|
|
disassemble: ${ELF_FILE_PATH}
|
|
|
|
${AVR_OBJDUMP} -C -d "${ELF_FILE_PATH}"
|
|
|
|
${AVR_OBJDUMP} -C -d "${ELF_FILE_PATH}"
|
|
|
|
|
|
|
|
|
|
|
@ -193,19 +184,10 @@ hex-with-bootloader: ${HEX_FILE_PATH}
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo And TEST THIS ON REAL HARDWARE BEFORE YOU GIVE IT TO ANYONE.
|
|
|
|
@echo And TEST THIS ON REAL HARDWARE BEFORE YOU GIVE IT TO ANYONE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prop:
|
|
|
|
|
|
|
|
@echo $(BOOTLOADER_PATH)
|
|
|
|
|
|
|
|
@echo $(GIT_VERSION)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
rm -rf -- "${OUTPUT_PATH}/*"
|
|
|
|
rm -rf -- "${OUTPUT_PATH}/*"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_do_compile:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compile:
|
|
|
|
compile:
|
|
|
|
install -d "${OUTPUT_PATH}"
|
|
|
|
install -d "${OUTPUT_PATH}"
|
|
|
|
@echo "Building ${SKETCH_FILE_PATH}"
|
|
|
|
@echo "Building ${SKETCH_FILE_PATH}"
|
|
|
|