Fix avfilter compilation with --enable-shared and no libswscaler
[libav.git] / libavfilter / Makefile
1 include ../config.mak
2
3 CFLAGS+=-I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libswscale
4
5 OBJS = allfilters.o \
6 avfilter.o \
7 defaults.o \
8 formats.o \
9
10 #OBJS-$(CONFIG_XXX_FILTER) += vf_xxx.o
11
12 HEADERS = avfilter.h
13
14 EXTRALIBS := -L$(BUILD_ROOT)/libavcodec -lavcodec$(BUILDSUF) \
15 -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
16
17 ifeq ($(CONFIG_SWSCALER),yes)
18 EXTRALIBS+=-L$(BUILD_ROOT)/libswscale
19 EXTRALIBS+=-lswscale$(BUILDSUF)
20 endif
21
22 ifeq ($(CONFIG_AVFILTER_LAVF),yes)
23 EXTRALIBS := -L$(BUILD_ROOT)/libavformat -lavformat$(BUILDSUF) $(EXTRALIBS)
24 endif
25
26 NAME=avfilter
27 LIBVERSION=$(LAVFILTERVERSION)
28 LIBMAJOR=$(LAVFILTERMAJOR)
29
30 include ../common.mak