Commit c00d63de authored by diego's avatar diego

Handle EXTRALIBS and LDFLAGS for libswscale and libavfilter in a simpler way.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12615 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7a26077c
...@@ -72,18 +72,13 @@ LIBS_drawtext$(SLIBSUF) = `freetype-config --libs` ...@@ -72,18 +72,13 @@ LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
VHOOKCFLAGS += $(VHOOKCFLAGS-yes) VHOOKCFLAGS += $(VHOOKCFLAGS-yes)
LDFLAGS := -L$(BUILD_ROOT)/libavdevice -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil -g $(LDFLAGS) LDFLAGS-$(CONFIG_SWSCALE) += -L$(BUILD_ROOT)/libswscale
EXTRALIBS := -lavdevice$(BUILDSUF) -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS) LDFLAGS-$(CONFIG_AVFILTER) += -L$(BUILD_ROOT)/libavfilter
LDFLAGS := $(LDFLAGS-yes) -L$(BUILD_ROOT)/libavdevice -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil -g $(LDFLAGS)
ifeq ($(CONFIG_SWSCALE),yes) EXTRALIBS-$(CONFIG_AVFILTER) += -lavfilter$(BUILDSUF)
LDFLAGS+=-L$(BUILD_ROOT)/libswscale EXTRALIBS-$(CONFIG_SWSCALE) += -lswscale$(BUILDSUF)
EXTRALIBS+=-lswscale$(BUILDSUF) EXTRALIBS := $(EXTRALIBS-yes) -lavdevice$(BUILDSUF) -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)
endif
ifeq ($(CONFIG_AVFILTER),yes)
LDFLAGS+=-L$(BUILD_ROOT)/libavfilter
EXTRALIBS := -lavfilter$(BUILDSUF) $(EXTRALIBS)
endif
MAKE-yes = $(MAKE) MAKE-yes = $(MAKE)
MAKE- = : $(MAKE) MAKE- = : $(MAKE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment