diff options
author | Luca Abeni <lucabe72@email.it> | 2006-08-08 18:51:38 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-08-08 18:51:38 +0000 |
commit | 790c9ca72af601e4480b8152ef92b9acb15b1a11 (patch) | |
tree | 43b420d5bac55fb302b24753448fe9ee3ab95c19 /Makefile | |
parent | b9b18fbdeaa364e160c5f1df164befa3dde6e833 (diff) | |
download | ffmpeg-790c9ca72af601e4480b8152ef92b9acb15b1a11.tar.gz |
Enable swscale usage in ffmpeg
Originally committed as revision 5959 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -11,6 +11,10 @@ CFLAGS=$(OPTFLAGS) -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE LDFLAGS+= -g +ifeq ($(CONFIG_SWSCALER),yes) +CFLAGS := -I$(SRC_PATH)/libswscale $(CFLAGS) +endif + MANPAGES=doc/ffmpeg.1 PROGS_G+=ffmpeg_g$(EXESUF) PROGS+=ffmpeg$(EXESUF) @@ -58,6 +62,11 @@ SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) FFLIBDIRS = -L./libavformat -L./libavcodec -L./libavutil FFLIBS = -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) +ifeq ($(CONFIG_SWSCALER),yes) +FFLIBDIRS+=-L./libswscale +FFLIBS+=-lswscale$(BUILDSUF) +endif + all: version.h lib $(PROGS_G) $(PROGS) $(PROGTEST) $(VHOOK) $(QTFASTSTART) $(DOC) lib: @@ -67,6 +76,9 @@ lib: ifeq ($(CONFIG_PP),yes) $(MAKE) -C libpostproc all endif +ifeq ($(CONFIG_SWSCALER),yes) + $(MAKE) -C libswscale all +endif ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs $(CC) $(FFLIBDIRS) $(LDFLAGS) -o $@ ffmpeg.o cmdutils.o $(FFLIBS) $(EXTRALIBS) @@ -141,6 +153,10 @@ install-libs: ifeq ($(CONFIG_PP),yes) $(MAKE) -C libpostproc install-libs endif +ifeq ($(CONFIG_SWSCALER),yes) + $(MAKE) -C libswscale install-libs +endif + ifeq ($(BUILD_SHARED),yes) -$(LDCONFIG) endif @@ -152,6 +168,9 @@ install-headers: ifeq ($(CONFIG_PP),yes) $(MAKE) -C libpostproc install-headers endif +ifeq ($(CONFIG_SWSCALER),yes) + $(MAKE) -C libswscale install-headers +endif uninstall: uninstall-progs uninstall-libs uninstall-headers uninstall-man uninstall-vhook @@ -202,6 +221,7 @@ clean: $(MAKE) -C libavcodec clean $(MAKE) -C libavformat clean $(MAKE) -C libpostproc clean + $(MAKE) -C libswscale clean $(MAKE) -C tests clean $(MAKE) -C vhook clean $(MAKE) -C doc clean @@ -214,6 +234,7 @@ distclean: clean $(MAKE) -C libavcodec distclean $(MAKE) -C libavformat distclean $(MAKE) -C libpostproc distclean + $(MAKE) -C libswscale distclean $(MAKE) -C tests distclean $(MAKE) -C vhook distclean rm -f .depend version.h config.* *.pc |