Use full path for #includes from another directory.
[ffmpeg.git] / libavfilter / Makefile
index b27b4f1..2357aee 100644 (file)
@@ -1,17 +1,17 @@
-CC = gcc
-CFLAGS = -g -I../libavcodec -I../libavutil
-LIBS = ../libavcodec/libavcodec.a ../libavutil/libavutil.a -lm -lSDL
+include $(SUBDIR)../config.mak
 
-OBJECTS = avfilter.o          \
-          vsrc_dummy.o        \
-                 vo_sdl.o            \
-                 vf_crop.o           \
-                 vf_passthrough.o    \
+NAME = avfilter
+FFLIBS = avcodec avutil
+FFLIBS-$(CONFIG_SWSCALE)       += swscale
+FFLIBS-$(CONFIG_AVFILTER_LAVF) += avformat
 
-all: filter_test
+OBJS = allfilters.o \
+       avfilter.o \
+       defaults.o \
+       formats.o \
 
-filter_test: $(OBJECTS) filter_test.c
-       $(CC) $(CFLAGS) $^ -o $@ $(LIBS)
+#OBJS-$(CONFIG_XXX_FILTER)    += vf_xxx.o
 
-$(OBJECTS): %.o: %.c
-       $(CC) $(CFLAGS) -c $<
+HEADERS = avfilter.h
+
+include $(SUBDIR)../subdir.mak