mirror of https://github.com/ArduPilot/ardupilot
mk: added a global make.inc
saves added global libraries to every subdirectory
This commit is contained in:
parent
7d48b25207
commit
f579c3e6eb
|
@ -0,0 +1,2 @@
|
|||
# libraries linked into every program
|
||||
LIBRARIES += AP_Module
|
|
@ -9,6 +9,11 @@ ifeq (,$(MAKE_INC))
|
|||
$(error You must have a make.inc file to list library dependencies)
|
||||
endif
|
||||
|
||||
GLOBAL_MAKE_INC=$(wildcard $(SKETCHBOOK)/mk/make.inc)
|
||||
ifeq (,$(GLOBAL_MAKE_INC))
|
||||
$(error You must have a make.inc in mk/ directory)
|
||||
endif
|
||||
|
||||
# Sketch source files
|
||||
SKETCHSRCS := $(wildcard $(addprefix $(SRCROOT)/,$(SRCSUFFIXES)))
|
||||
SKETCHCPP := $(SRCROOT)/$(SKETCH).cpp
|
||||
|
@ -19,6 +24,7 @@ SKETCHOBJS := $(addsuffix .o,$(basename $(SKETCHOBJS)))
|
|||
|
||||
# get list of libraries from make.inc
|
||||
include $(MAKE_INC)
|
||||
include $(GLOBAL_MAKE_INC)
|
||||
LIBTOKENS := $(LIBRARIES)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue