diff options
| author | Gabriel <gabriel@gaftech.fr> | 2012-07-01 12:52:36 +0200 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2012-07-06 15:02:43 +0530 |
| commit | 0068267feae8d004ca77e0228287d07b576df532 (patch) | |
| tree | 36a66992058648d85b75fa2811e2bf5803fe01ca /arduino-mk | |
| parent | fcdaa4b3bfa3faa5f7ccfb2d3a934471c6968d55 (diff) | |
allow user to choose source files
Diffstat (limited to 'arduino-mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index eacca44..ffa91b4 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -91,6 +91,9 @@ # - Cleaner way to delete the build-cli directory when make clean is invoked # - The package name in Debian and Ubuntu is arduino-mk (https://github.com/maqifrnswa) # +# +# 0.9.2 06.vi.2012 Sudar +# - Allow user to choose source files (LOCAL_*_SRCS flags) (https://github.com/Gaftech) # ######################################################################## # @@ -435,12 +438,12 @@ OBJDIR = build-cli ######################################################################## # Local sources # -LOCAL_C_SRCS = $(wildcard *.c) -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_C_SRCS ?= $(wildcard *.c) +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_OBJ_FILES = $(LOCAL_C_SRCS:.c=.o) $(LOCAL_CPP_SRCS:.cpp=.o) \ $(LOCAL_CC_SRCS:.cc=.o) $(LOCAL_PDE_SRCS:.pde=.o) \ $(LOCAL_INO_SRCS:.ino=.o) $(LOCAL_AS_SRCS:.S=.o) |
