feat(options): add SRC_DIR var to allow sources to live in a subfolder
This commit is contained in:
parent
2326da3a50
commit
fa94dd4df6
1 changed files with 6 additions and 6 deletions
12
Arduino.mk
12
Arduino.mk
|
@ -762,12 +762,12 @@ endif
|
||||||
########################################################################
|
########################################################################
|
||||||
# Local sources
|
# Local sources
|
||||||
|
|
||||||
LOCAL_C_SRCS ?= $(wildcard *.c)
|
LOCAL_C_SRCS ?= $(wildcard $(SRC_DIR)*.c)
|
||||||
LOCAL_CPP_SRCS ?= $(wildcard *.cpp)
|
LOCAL_CPP_SRCS ?= $(wildcard $(SRC_DIR)*.cpp)
|
||||||
LOCAL_CC_SRCS ?= $(wildcard *.cc)
|
LOCAL_CC_SRCS ?= $(wildcard $(SRC_DIR)*.cc)
|
||||||
LOCAL_PDE_SRCS ?= $(wildcard *.pde)
|
LOCAL_PDE_SRCS ?= $(wildcard $(SRC_DIR)*.pde)
|
||||||
LOCAL_INO_SRCS ?= $(wildcard *.ino)
|
LOCAL_INO_SRCS ?= $(wildcard $(SRC_DIR)*.ino)
|
||||||
LOCAL_AS_SRCS ?= $(wildcard *.S)
|
LOCAL_AS_SRCS ?= $(wildcard $(SRC_DIR)*.S)
|
||||||
LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \
|
LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \
|
||||||
$(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \
|
$(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \
|
||||||
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS)
|
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS)
|
||||||
|
|
Loading…
Reference in a new issue