10l: Missed that in one of the last commits
[ffmpeg.git] / libavfilter / Makefile
index 38f5a2c..2357aee 100644 (file)
@@ -1,6 +1,9 @@
-include ../config.mak
+include $(SUBDIR)../config.mak
 
 
-CFLAGS+=-I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libswscale
+NAME = avfilter
+FFLIBS = avcodec avutil
+FFLIBS-$(CONFIG_SWSCALE)       += swscale
+FFLIBS-$(CONFIG_AVFILTER_LAVF) += avformat
 
 OBJS = allfilters.o \
        avfilter.o \
 
 OBJS = allfilters.o \
        avfilter.o \
@@ -11,16 +14,4 @@ OBJS = allfilters.o \
 
 HEADERS = avfilter.h
 
 
 HEADERS = avfilter.h
 
-EXTRALIBS := -L$(BUILD_ROOT)/libavcodec -lavcodec$(BUILDSUF) \
-             -L$(BUILD_ROOT)/libswscale -lswscale$(BUILDSUF) \
-             -L$(BUILD_ROOT)/libavutil  -lavutil$(BUILDSUF) $(EXTRALIBS)
-
-ifeq ($(CONFIG_AVFILTER_LAVF),yes)
-EXTRALIBS := -L$(BUILD_ROOT)/libavformat -lavformat$(BUILDSUF) $(EXTRALIBS)
-endif
-
-NAME=avfilter
-LIBVERSION=$(LAVFILTERVERSION)
-LIBMAJOR=$(LAVFILTERMAJOR)
-
-include ../common.mak
+include $(SUBDIR)../subdir.mak