mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 14:48:28 -04:00
mk: added a global make.inc
saves added global libraries to every subdirectory
This commit is contained in:
parent
7d48b25207
commit
f579c3e6eb
2
mk/make.inc
Normal file
2
mk/make.inc
Normal file
@ -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)
|
$(error You must have a make.inc file to list library dependencies)
|
||||||
endif
|
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
|
# Sketch source files
|
||||||
SKETCHSRCS := $(wildcard $(addprefix $(SRCROOT)/,$(SRCSUFFIXES)))
|
SKETCHSRCS := $(wildcard $(addprefix $(SRCROOT)/,$(SRCSUFFIXES)))
|
||||||
SKETCHCPP := $(SRCROOT)/$(SKETCH).cpp
|
SKETCHCPP := $(SRCROOT)/$(SKETCH).cpp
|
||||||
@ -19,6 +24,7 @@ SKETCHOBJS := $(addsuffix .o,$(basename $(SKETCHOBJS)))
|
|||||||
|
|
||||||
# get list of libraries from make.inc
|
# get list of libraries from make.inc
|
||||||
include $(MAKE_INC)
|
include $(MAKE_INC)
|
||||||
|
include $(GLOBAL_MAKE_INC)
|
||||||
LIBTOKENS := $(LIBRARIES)
|
LIBTOKENS := $(LIBRARIES)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user