Deprecate the EXTRA_LIBS variable.
Instead specify explicit library dependencies for codecs and plugins.
This commit is contained in:
parent
02a9089034
commit
1501df045f
7 changed files with 8 additions and 10 deletions
|
@ -20,7 +20,7 @@ OTHER_SRC += $(MIKMOD_SRC)
|
|||
|
||||
MIKMODCFLAGS = $(PLUGINFLAGS) -I$(MIKMODSRCDIR) -O2
|
||||
|
||||
$(MIKMODBUILDDIR)/mikmod.rock: $(MIKMOD_OBJ)
|
||||
$(MIKMODBUILDDIR)/mikmod.rock: $(MIKMOD_OBJ) $(TLSFLIB)
|
||||
|
||||
# new rule needed to use extra compile flags
|
||||
$(MIKMODBUILDDIR)/%.o: $(MIKMODSRCDIR)/%.c
|
||||
|
|
|
@ -26,7 +26,7 @@ ifdef APP_TYPE
|
|||
PDBOXLDFLAGS += -lm
|
||||
endif
|
||||
|
||||
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ)
|
||||
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(TLSFLIB)
|
||||
|
||||
# Compile PDBox with extra flags (adapted from ZXBox)
|
||||
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make
|
||||
|
|
|
@ -53,7 +53,7 @@ else
|
|||
PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)
|
||||
endif
|
||||
|
||||
PLUGIN_LIBS := $(EXTRA_LIBS) $(PLUGINLIB) $(PLUGINBITMAPLIB)
|
||||
PLUGIN_LIBS := $(PLUGINLIB) $(PLUGINBITMAPLIB) $(SETJMPLIB)
|
||||
|
||||
# include <dir>.make from each subdir (yay!)
|
||||
$(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make))
|
||||
|
|
|
@ -14,7 +14,6 @@ SETJMPLIB = $(BUILDDIR)/lib/libsetjmp.a
|
|||
|
||||
INCLUDES += -I$(SETJMPLIB_DIR)
|
||||
OTHER_SRC += $(SETJMPLIB_SRC)
|
||||
EXTRA_LIBS += $(SETJMPLIB)
|
||||
|
||||
$(SETJMPLIB): $(SETJMPLIB_OBJ)
|
||||
$(SILENT)$(shell rm -f $@)
|
||||
|
|
|
@ -19,7 +19,7 @@ include $(RBCODECLIB_DIR)/codecs/lib/libcodec.make
|
|||
OTHER_INC += -I$(RBCODECLIB_DIR)/codecs/lib
|
||||
|
||||
# extra libraries
|
||||
CODEC_LIBS := $(EXTRA_LIBS) $(CODECLIB)
|
||||
CODEC_LIBS := $(CODECLIB)
|
||||
|
||||
# the codec libraries
|
||||
include $(RBCODECLIB_DIR)/codecs/demac/libdemac.make
|
||||
|
@ -140,7 +140,7 @@ $(CODECDIR)/spc.codec : $(CODECDIR)/libspc.a
|
|||
$(CODECDIR)/mpa.codec : $(CODECDIR)/libmad.a
|
||||
$(CODECDIR)/a52.codec : $(CODECDIR)/liba52.a
|
||||
$(CODECDIR)/flac.codec : $(CODECDIR)/libffmpegFLAC.a
|
||||
$(CODECDIR)/vorbis.codec : $(CODECDIR)/libtremor.a
|
||||
$(CODECDIR)/vorbis.codec : $(CODECDIR)/libtremor.a $(TLSFLIB) $(SETJMPLIB)
|
||||
$(CODECDIR)/speex.codec : $(CODECDIR)/libspeex.a
|
||||
$(CODECDIR)/mpc.codec : $(CODECDIR)/libmusepack.a
|
||||
$(CODECDIR)/wavpack.codec : $(CODECDIR)/libwavpack.a
|
||||
|
|
|
@ -14,7 +14,6 @@ TLSFLIB := $(BUILDDIR)/lib/libtlsf.a
|
|||
|
||||
OTHER_SRC += $(TLSFLIB_SRC)
|
||||
INCLUDES += -I$(TLSFLIB_DIR)/src
|
||||
EXTRA_LIBS += $(TLSFLIB)
|
||||
|
||||
TLSFLIBFLAGS = $(CFLAGS) -fstrict-aliasing -ffunction-sections $(SHARED_CFLAGS)
|
||||
|
||||
|
|
|
@ -62,8 +62,8 @@ endif
|
|||
all: $(DEPFILE) build
|
||||
|
||||
# Subdir makefiles. their primary purpose is to populate SRC, OTHER_SRC,
|
||||
# ASMDEFS_SRC, CORE_LIBS and EXTRA_LIBS. But they also define special
|
||||
# dependencies and compile rules
|
||||
# ASMDEFS_SRC and CORE_LIBS. But they also define special dependencies and
|
||||
# compile rules
|
||||
include $(TOOLSDIR)/tools.make
|
||||
|
||||
ifeq (,$(findstring checkwps,$(APP_TYPE)))
|
||||
|
|
Loading…
Reference in a new issue