mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
build system: unify/simplify library handling a bit.
libs in $ROOT/lib now add to $(CORE_LIBS) and $(EXTRA_LIBS) and are automatically linked by the core and codecs/plugins respectively. Change-Id: Iff482c792a8c8142718f6a16a450c6e2f1497c9a
This commit is contained in:
parent
9445d4625a
commit
f269aa0060
15 changed files with 79 additions and 90 deletions
|
@ -6,16 +6,17 @@
|
|||
# \/ \/ \/ \/ \/
|
||||
#
|
||||
|
||||
UNWARM_DIR = $(ROOTDIR)/lib/unwarminder
|
||||
UNWARM_SRC = $(call preprocess, $(UNWARM_DIR)/SOURCES)
|
||||
UNWARM_OBJ := $(call c2obj, $(UNWARM_SRC))
|
||||
UNWARMLIB_DIR = $(ROOTDIR)/lib/unwarminder
|
||||
UNWARMLIB_SRC = $(call preprocess, $(UNWARMLIB_DIR)/SOURCES)
|
||||
UNWARMLIB_OBJ := $(call c2obj, $(UNWARMLIB_SRC))
|
||||
|
||||
OTHER_SRC += $(UNWARM_SRC)
|
||||
OTHER_SRC += $(UNWARMLIB_SRC)
|
||||
|
||||
UNWARMINDER = $(BUILDDIR)/lib/libunwarminder.a
|
||||
UNWARMLIB = $(BUILDDIR)/lib/libunwarminder.a
|
||||
CORE_LIBS += $(UNWARMLIB)
|
||||
|
||||
INCLUDES += -I$(UNWARM_DIR)
|
||||
INCLUDES += -I$(UNWARMLIB_DIR)
|
||||
|
||||
$(UNWARMINDER): $(UNWARM_OBJ)
|
||||
$(UNWARMLIB): $(UNWARMLIB_OBJ)
|
||||
$(SILENT)$(shell rm -f $@)
|
||||
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue