|
|
@ -12,6 +12,10 @@ COMMON_LIB_DIR := ${top_dir}/_build/lib
|
|
|
|
|
|
|
|
|
|
|
|
include $(top_dir)/etc/makefiles/arduino-cli.mk
|
|
|
|
include $(top_dir)/etc/makefiles/arduino-cli.mk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(KALEIDOSCOPE_CCACHE),)
|
|
|
|
|
|
|
|
COMPILER_WRAPPER := ccache
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SRC_DIR := test
|
|
|
|
SRC_DIR := test
|
|
|
|
|
|
|
|
|
|
|
@ -57,7 +61,7 @@ compile-sketch:
|
|
|
|
OUTPUT_PATH="${LIB_DIR}" \
|
|
|
|
OUTPUT_PATH="${LIB_DIR}" \
|
|
|
|
VERBOSE=${VERBOSE} \
|
|
|
|
VERBOSE=${VERBOSE} \
|
|
|
|
$(MAKE) -f ${top_dir}/testing/makefiles/delegate.mk compile
|
|
|
|
$(MAKE) -f ${top_dir}/testing/makefiles/delegate.mk compile
|
|
|
|
$(call _arduino_prop,compiler.cpp.cmd) -o "${BIN_DIR}/${BIN_FILE}" \
|
|
|
|
$(CCACHE) $(call _arduino_prop,compiler.cpp.cmd) -o "${BIN_DIR}/${BIN_FILE}" \
|
|
|
|
-lpthread \
|
|
|
|
-lpthread \
|
|
|
|
-g \
|
|
|
|
-g \
|
|
|
|
-w \
|
|
|
|
-w \
|
|
|
@ -89,7 +93,7 @@ endif
|
|
|
|
${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
|
|
|
|
${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
|
|
|
|
@echo "compile $@"
|
|
|
|
@echo "compile $@"
|
|
|
|
install -d "${OBJ_DIR}"
|
|
|
|
install -d "${OBJ_DIR}"
|
|
|
|
$(call _arduino_prop,compiler.cpp.cmd) -o "$@" -c \
|
|
|
|
$(CCACHE) $(call _arduino_prop,compiler.cpp.cmd) -o "$@" -c \
|
|
|
|
-std=c++14 \
|
|
|
|
-std=c++14 \
|
|
|
|
-I${top_dir} \
|
|
|
|
-I${top_dir} \
|
|
|
|
-I${top_dir}/src \
|
|
|
|
-I${top_dir}/src \
|
|
|
|