File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,7 @@ LOCAL_CC_SRCS ?= $(wildcard *.cc)
593
593
LOCAL_PDE_SRCS ?= $(wildcard * .pde)
594
594
LOCAL_INO_SRCS ?= $(wildcard * .ino)
595
595
LOCAL_AS_SRCS ?= $(wildcard * .S)
596
+ LOCAL_HEADERS ?= $(wildcard * .h * .hh * .hpp)
596
597
LOCAL_SRCS = $(LOCAL_C_SRCS ) $(LOCAL_CPP_SRCS ) \
597
598
$(LOCAL_CC_SRCS ) $(LOCAL_PDE_SRCS ) \
598
599
$(LOCAL_INO_SRCS ) $(LOCAL_AS_SRCS )
@@ -644,9 +645,9 @@ endif
644
645
ifndef ARDUINO_LIBS
645
646
# automatically determine included libraries
646
647
ARDUINO_LIBS += $(filter $(notdir $(wildcard $(ARDUINO_DIR ) /libraries/* ) ) , \
647
- $(shell sed -ne "s/^ * \# * include * [<\"]\(.* \) \.h[>\"]/\1/p" $(LOCAL_SRCS ) ) )
648
+ $(shell sed -ne "s/^ * \# * include * [<\"]\(.* \) \.h[>\"]/\1/p" $(LOCAL_SRCS ) $( LOCAL_HEADERS ) ) )
648
649
ARDUINO_LIBS += $(filter $(notdir $(wildcard $(ARDUINO_SKETCHBOOK ) /libraries/* ) ) , \
649
- $(shell sed -ne "s/^ * \# * include * [<\"]\(.* \) \.h[>\"]/\1/p" $(LOCAL_SRCS ) ) )
650
+ $(shell sed -ne "s/^ * \# * include * [<\"]\(.* \) \.h[>\"]/\1/p" $(LOCAL_SRCS ) $( LOCAL_HEADERS ) ) )
650
651
endif
651
652
652
653
# #######################################################################
You can’t perform that action at this time.
0 commit comments