8000 Define LOCAL_HEADERS which refers to all different types of header files · sudar/Arduino-Makefile@c3dc56b · GitHub
[go: up one dir, main page]

Skip to content

Commit c3dc56b

Browse files
committed
Define LOCAL_HEADERS which refers to all different types of header files
1 parent d719847 commit c3dc56b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arduino-mk/Arduino.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ LOCAL_CC_SRCS ?= $(wildcard *.cc)
593593
LOCAL_PDE_SRCS ?= $(wildcard *.pde)
594594
LOCAL_INO_SRCS ?= $(wildcard *.ino)
595595
LOCAL_AS_SRCS ?= $(wildcard *.S)
596+
LOCAL_HEADERS ?= $(wildcard *.h *.hh *.hpp)
596597
LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \
597598
$(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \
598599
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS)
@@ -644,9 +645,9 @@ endif
644645
ifndef ARDUINO_LIBS
645646
# automatically determine included libraries
646647
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)))
648649
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)))
650651
endif
651652

652653
########################################################################

0 commit comments

Comments
 (0)
0