Allow assembly source files with a lower-case .s extension, as per GCC spec.
This commit is contained in:
parent
c0fea5ccd9
commit
e0f6646804
2 changed files with 5 additions and 3 deletions
|
@ -767,17 +767,17 @@ LOCAL_CPP_SRCS ?= $(wildcard *.cpp)
|
|||
LOCAL_CC_SRCS ?= $(wildcard *.cc)
|
||||
LOCAL_PDE_SRCS ?= $(wildcard *.pde)
|
||||
LOCAL_INO_SRCS ?= $(wildcard *.ino)
|
||||
LOCAL_AS_SRCS ?= $(wildcard *.S)
|
||||
LOCAL_AS_SRCS ?= $(wildcard *.S *.s)
|
||||
LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \
|
||||
$(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \
|
||||
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS)
|
||||
LOCAL_OBJ_FILES = $(LOCAL_C_SRCS:.c=.c.o) $(LOCAL_CPP_SRCS:.cpp=.cpp.o) \
|
||||
$(LOCAL_CC_SRCS:.cc=.cc.o) $(LOCAL_PDE_SRCS:.pde=.pde.o) \
|
||||
$(LOCAL_INO_SRCS:.ino=.ino.o) $(LOCAL_AS_SRCS:.S=.S.o)
|
||||
$(LOCAL_INO_SRCS:.ino=.ino.o) $(LOCAL_AS_SRCS:.S=.S.o) $(LOCAL_AS_SRCS:.s=.s.o)
|
||||
LOCAL_OBJS = $(patsubst %,$(OBJDIR)/%,$(LOCAL_OBJ_FILES))
|
||||
|
||||
ifeq ($(words $(LOCAL_SRCS)), 0)
|
||||
$(error At least one source file (*.ino, *.pde, *.cpp, *c, *cc, *.S) is needed)
|
||||
$(error At least one source file (*.ino, *.pde, *.cpp, *c, *cc, *.S, *.s) is needed)
|
||||
endif
|
||||
|
||||
# CHK_SOURCES is used by flymake
|
||||
|
|
|
@ -4,6 +4,8 @@ A Makefile for Arduino Sketches
|
|||
The following is the rough list of changes that went into different versions.
|
||||
I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.
|
||||
|
||||
- Tweak: Allow source files with lower-case .s extension (https://github.com/ryansuchocki)
|
||||
|
||||
### 1.5.1 (Debian version: 1.5-3) (2016-02-22)
|
||||
|
||||
- New: Add show_submenu target (https://github.com/drewhutchison)
|
||||
|
|
Loading…
Reference in a new issue