non-recursive makefiles
[libav.git] / libavfilter / Makefile
dissimilarity index 79%
index 6af64ba..2357aee 100644 (file)
@@ -1,30 +1,17 @@
-include ../config.mak
-
-CFLAGS+=-I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libswscale
-
-OBJS = allfilters.o \
-       avfilter.o \
-       defaults.o \
-       formats.o \
-
-#OBJS-$(CONFIG_XXX_FILTER)    += vf_xxx.o
-
-HEADERS = avfilter.h
-
-EXTRALIBS := -L$(BUILD_ROOT)/libavcodec -lavcodec$(BUILDSUF) \
-             -L$(BUILD_ROOT)/libavutil  -lavutil$(BUILDSUF) $(EXTRALIBS)
-
-ifeq ($(CONFIG_SWSCALER),yes)
-EXTRALIBS+=-L$(BUILD_ROOT)/libswscale
-EXTRALIBS+=-lswscale$(BUILDSUF)
-endif
-
-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)../config.mak
+
+NAME = avfilter
+FFLIBS = avcodec avutil
+FFLIBS-$(CONFIG_SWSCALE)       += swscale
+FFLIBS-$(CONFIG_AVFILTER_LAVF) += avformat
+
+OBJS = allfilters.o \
+       avfilter.o \
+       defaults.o \
+       formats.o \
+
+#OBJS-$(CONFIG_XXX_FILTER)    += vf_xxx.o
+
+HEADERS = avfilter.h
+
+include $(SUBDIR)../subdir.mak