mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
Merge simplifications from FFmpeg r12764.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26349 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4022a072f0
commit
ae75174784
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
all: # make "all" default target
|
all: # make "all" default target
|
||||||
|
|
||||||
ifeq ($(SUBDIR),)
|
ifndef SUBDIR
|
||||||
vpath %.c $(SRC_DIR)
|
vpath %.c $(SRC_DIR)
|
||||||
vpath %.h $(SRC_DIR)
|
vpath %.h $(SRC_DIR)
|
||||||
vpath %.S $(SRC_DIR)
|
vpath %.S $(SRC_DIR)
|
||||||
@ -36,6 +36,7 @@ OBJS += $(OBJS-yes)
|
|||||||
ASM_OBJS += $(ASM_OBJS-yes)
|
ASM_OBJS += $(ASM_OBJS-yes)
|
||||||
CPP_OBJS += $(CPP_OBJS-yes)
|
CPP_OBJS += $(CPP_OBJS-yes)
|
||||||
FFLIBS := $(FFLIBS-yes) $(FFLIBS)
|
FFLIBS := $(FFLIBS-yes) $(FFLIBS)
|
||||||
|
TESTS += $(TESTS-yes)
|
||||||
|
|
||||||
FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS)
|
FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS)
|
||||||
FFLDFLAGS := $(addprefix -L$(BUILD_ROOT)/lib,$(FFLIBS)) $(LDFLAGS)
|
FFLDFLAGS := $(addprefix -L$(BUILD_ROOT)/lib,$(FFLIBS)) $(LDFLAGS)
|
||||||
|
@ -19,7 +19,7 @@ endif
|
|||||||
INCINSTDIR := $(INCDIR)/lib$(NAME)
|
INCINSTDIR := $(INCDIR)/lib$(NAME)
|
||||||
|
|
||||||
define RULES
|
define RULES
|
||||||
ifeq ($(BUILD_SHARED),yes)
|
ifdef BUILD_SHARED
|
||||||
all: $(SUBDIR)$(SLIBNAME)
|
all: $(SUBDIR)$(SLIBNAME)
|
||||||
|
|
||||||
install-libs: install-lib$(NAME)-shared
|
install-libs: install-lib$(NAME)-shared
|
||||||
@ -32,7 +32,7 @@ $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS)
|
|||||||
$(CC) $(SHFLAGS) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS) $(EXTRAOBJS)
|
$(CC) $(SHFLAGS) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS) $(EXTRAOBJS)
|
||||||
$(SLIB_EXTRA_CMD)
|
$(SLIB_EXTRA_CMD)
|
||||||
|
|
||||||
ifneq ($(SUBDIR),)
|
ifdef SUBDIR
|
||||||
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): \
|
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): \
|
||||||
$(foreach L,$(FFLIBS),lib$(L)/$(SLIBPREF)$(L)$(SLIBSUF))
|
$(foreach L,$(FFLIBS),lib$(L)/$(SLIBPREF)$(L)$(SLIBSUF))
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user