Targets addition and removal
[ffmpeg.git] / libavfilter / Makefile
index a7e558c..012c4a0 100644 (file)
@@ -1,21 +1,30 @@
-CC = gcc
-CFLAGS = -g -I../libavcodec -I../libavutil
-LIBS = ../libavcodec/libavcodec.a ../libavutil/libavutil.a -lm -lSDL
+include ../config.mak
 
-OBJECTS = avfilter.o          \
-          avfiltergraph.o     \
-          vsrc_dummy.o        \
-                 vsrc_ppm.o          \
-                 vo_sdl.o            \
-                 vf_crop.o           \
-                 vf_passthrough.o    \
-                 vf_rgb2bgr.o        \
-                 vf_slicify.o        \
+CFLAGS+=-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libswscale
 
-all: filter_test
+OBJS = avfilter.o \
+       avfiltergraph.o \
+       avfiltergraphdesc.o \
+       defaults.o \
 
-filter_test: $(OBJECTS) filter_test.c
-       $(CC) $(CFLAGS) $^ -o $@ $(LIBS)
+# TODO: real conditional compilation
+OBJS-yes = vf_crop.o \
+           vf_fifo.o \
+           vf_fps.o \
+           vf_negate.o \
+           vf_overlay.o \
+           vf_passthrough.o \
+           vf_scale.o \
+           vf_slicify.o \
+           vf_split.o \
+           vf_vflip.o \
 
-$(OBJECTS): %.o: %.c
-       $(CC) $(CFLAGS) -c $<
+HEADERS = avfilter.h
+
+EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
+
+NAME=avfilter
+LIBVERSION=$(LAVFILTERVERSION)
+LIBMAJOR=$(LAVFILTERMAJOR)
+
+include ../common.mak