Use full path for #includes from another directory.
[ffmpeg.git] / libavfilter / Makefile
index d3f1931..2357aee 100644 (file)
@@ -1,36 +1,17 @@
-include ../config.mak
+include $(SUBDIR)../config.mak
 
-CFLAGS+=-I$(SRC_PATH)/libavcodec
+NAME = avfilter
+FFLIBS = avcodec avutil
+FFLIBS-$(CONFIG_SWSCALE)       += swscale
+FFLIBS-$(CONFIG_AVFILTER_LAVF) += avformat
 
-OBJS = avfilter.o \
-       avfiltergraph.o \
+OBJS = allfilters.o \
+       avfilter.o \
+       defaults.o \
+       formats.o \
 
-# TODO: real conditional compilation
-OBJS-yes = vsrc_dummy.o \
-           vsrc_ppm.o \
-           vo_sdl.o \
-           vf_crop.o \
-           vf_passthrough.o \
-           vf_rgb2bgr.o \
-           vf_slicify.o \
+#OBJS-$(CONFIG_XXX_FILTER)    += vf_xxx.o
 
 HEADERS = avfilter.h
 
-EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
-
-NAME=avfilter
-LIBVERSION=$(LAVFILTERVERSION)
-LIBMAJOR=$(LAVFILTERMAJOR)
-
-include ../common.mak
-
-clean::
-       rm -f \
-          filter_test $(TESTS)
-
-tests: filter_test
-
-filter_test: filter_test.o $(LIB)
-       $(CC) $(CFLAGS) $< -o $@ $(LIB) -lm -lSDL
-
-.PHONY: tests
+include $(SUBDIR)../subdir.mak