2002-05-26 01:22:57 +03:00
|
|
|
#
|
2001-07-22 17:37:44 +03:00
|
|
|
# Main ffmpeg Makefile
|
2004-03-26 22:42:28 +02:00
|
|
|
# (c) 2000-2004 Fabrice Bellard
|
2001-07-22 17:37:44 +03:00
|
|
|
#
|
2001-07-23 23:06:54 +03:00
|
|
|
include config.mak
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2006-11-08 02:02:15 +02:00
|
|
|
VPATH=$(SRC_PATH_BARE)
|
2002-05-19 02:11:25 +03:00
|
|
|
|
2006-10-07 12:22:44 +03:00
|
|
|
CFLAGS=$(OPTFLAGS) -I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
|
2006-10-23 20:06:32 +03:00
|
|
|
-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale \
|
2007-06-10 17:34:56 +03:00
|
|
|
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -DHAVE_AV_CONFIG_H
|
2005-12-17 20:14:38 +02:00
|
|
|
LDFLAGS+= -g
|
2002-07-25 19:40:10 +03:00
|
|
|
|
2007-02-27 21:00:26 +02:00
|
|
|
PROGS-$(CONFIG_FFMPEG) += ffmpeg
|
|
|
|
PROGS-$(CONFIG_FFPLAY) += ffplay
|
|
|
|
PROGS-$(CONFIG_FFSERVER) += ffserver
|
2003-06-07 21:34:02 +03:00
|
|
|
|
2007-06-10 17:28:42 +03:00
|
|
|
PROGS = $(addsuffix $(EXESUF), $(PROGS-yes))
|
|
|
|
PROGS_G = $(addsuffix _g$(EXESUF), $(PROGS-yes))
|
|
|
|
MANPAGES = $(addprefix doc/, $(addsuffix .1, $(PROGS-yes)))
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2007-06-10 17:28:42 +03:00
|
|
|
BASENAMES = ffmpeg ffplay ffserver
|
|
|
|
ALLPROGS = $(addsuffix $(EXESUF), $(BASENAMES))
|
|
|
|
ALLPROGS_G = $(addsuffix _g$(EXESUF), $(BASENAMES))
|
|
|
|
ALLMANPAGES = $(addsuffix .1, $(BASENAMES))
|
2006-05-18 15:33:13 +03:00
|
|
|
|
2001-10-27 15:04:27 +03:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2003-07-12 00:33:27 +03:00
|
|
|
DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF)
|
2001-10-27 15:04:27 +03:00
|
|
|
else
|
2003-01-11 22:34:38 +02:00
|
|
|
DEP_LIBS=libavcodec/$(LIBPREF)avcodec$(LIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF)
|
2004-10-22 05:04:30 +03:00
|
|
|
endif
|
|
|
|
|
2007-07-09 23:42:00 +03:00
|
|
|
ALL_TARGETS-$(CONFIG_VHOOK) += videohook
|
|
|
|
ALL_TARGETS-$(BUILD_DOC) += documentation
|
|
|
|
|
|
|
|
INSTALL_TARGETS-$(CONFIG_VHOOK) += install-vhook
|
|
|
|
INSTALL_TARGETS-$(BUILD_DOC) += install-man
|
2007-07-09 23:22:16 +03:00
|
|
|
|
2007-07-08 20:47:15 +03:00
|
|
|
VHOOKCFLAGS += $(filter-out -mdynamic-no-pic,$(CFLAGS))
|
2007-07-09 23:22:16 +03:00
|
|
|
|
|
|
|
BASEHOOKS = fish null watermark
|
|
|
|
ALLHOOKS = $(BASEHOOKS) drawtext imlib2 ppm
|
|
|
|
ALLHOOKS_SRCS = $(addprefix vhook/, $(addsuffix .c, $(ALLHOOKS)))
|
|
|
|
|
|
|
|
HOOKS-$(HAVE_FORK) += ppm
|
|
|
|
HOOKS-$(HAVE_IMLIB2) += imlib2
|
|
|
|
HOOKS-$(HAVE_FREETYPE2) += drawtext
|
|
|
|
|
|
|
|
HOOKS = $(addprefix vhook/, $(addsuffix $(SLIBSUF), $(BASEHOOKS) $(HOOKS-yes)))
|
|
|
|
|
|
|
|
VHOOKCFLAGS-$(HAVE_IMLIB2) += `imlib2-config --cflags`
|
2007-07-09 23:41:58 +03:00
|
|
|
LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
|
2007-07-09 23:22:16 +03:00
|
|
|
|
|
|
|
VHOOKCFLAGS-$(HAVE_FREETYPE2) += `freetype-config --cflags`
|
2007-07-09 23:41:58 +03:00
|
|
|
LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
|
2007-07-09 23:22:16 +03:00
|
|
|
|
|
|
|
VHOOKCFLAGS += $(VHOOKCFLAGS-yes)
|
2002-11-20 05:02:23 +02:00
|
|
|
|
2007-03-08 02:24:14 +02:00
|
|
|
SRCS = $(addsuffix .c, $(PROGS-yes)) cmdutils.c
|
2006-10-15 15:57:47 +03:00
|
|
|
LDFLAGS := -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil $(LDFLAGS)
|
2006-09-08 22:36:21 +03:00
|
|
|
EXTRALIBS := -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)
|
2002-04-22 22:57:45 +03:00
|
|
|
|
2006-08-08 21:51:38 +03:00
|
|
|
ifeq ($(CONFIG_SWSCALER),yes)
|
2007-06-11 00:19:15 +03:00
|
|
|
LDFLAGS+=-L$(BUILD_ROOT)/libswscale
|
2006-09-08 21:28:58 +03:00
|
|
|
EXTRALIBS+=-lswscale$(BUILDSUF)
|
2006-08-08 21:51:38 +03:00
|
|
|
endif
|
|
|
|
|
2007-07-09 23:42:00 +03:00
|
|
|
all: lib $(PROGS) $(ALL_TARGETS-yes)
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-09-16 01:26:45 +03:00
|
|
|
lib:
|
2006-05-18 11:40:15 +03:00
|
|
|
$(MAKE) -C libavutil all
|
|
|
|
$(MAKE) -C libavcodec all
|
2002-11-25 21:07:40 +02:00
|
|
|
$(MAKE) -C libavformat all
|
2006-02-11 23:42:11 +02:00
|
|
|
ifeq ($(CONFIG_PP),yes)
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc all
|
2006-02-11 23:42:11 +02:00
|
|
|
endif
|
2006-08-08 21:51:38 +03:00
|
|
|
ifeq ($(CONFIG_SWSCALER),yes)
|
|
|
|
$(MAKE) -C libswscale all
|
|
|
|
endif
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-09-16 01:26:45 +03:00
|
|
|
ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs
|
2006-09-08 21:28:58 +03:00
|
|
|
$(CC) $(LDFLAGS) -o $@ ffmpeg.o cmdutils.o $(EXTRALIBS)
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-09-16 01:26:45 +03:00
|
|
|
ffserver$(EXESUF): ffserver.o .libs
|
2006-09-08 21:28:58 +03:00
|
|
|
$(CC) $(LDFLAGS) $(FFSERVERLDFLAGS) -o $@ ffserver.o $(EXTRALIBS)
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-09-16 01:26:45 +03:00
|
|
|
ffplay_g$(EXESUF): ffplay.o cmdutils.o .libs
|
2006-09-08 21:28:58 +03:00
|
|
|
$(CC) $(LDFLAGS) -o $@ ffplay.o cmdutils.o $(EXTRALIBS) $(SDL_LIBS)
|
2003-06-07 21:34:02 +03:00
|
|
|
|
2006-06-20 02:26:46 +03:00
|
|
|
%$(EXESUF): %_g$(EXESUF)
|
2003-06-07 21:34:02 +03:00
|
|
|
cp -p $< $@
|
|
|
|
$(STRIP) $@
|
|
|
|
|
2006-12-26 19:25:16 +02:00
|
|
|
SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
|
|
|
|
ifeq ($(wildcard $(SVN_ENTRIES)),$(SVN_ENTRIES))
|
|
|
|
version.h: $(SVN_ENTRIES)
|
|
|
|
endif
|
|
|
|
|
2006-06-20 13:24:08 +03:00
|
|
|
version.h:
|
2006-11-08 02:02:15 +02:00
|
|
|
$(SRC_PATH)/version.sh $(SRC_PATH)
|
2006-06-20 13:24:08 +03:00
|
|
|
|
2003-09-16 01:26:45 +03:00
|
|
|
output_example$(EXESUF): output_example.o .libs
|
2007-06-10 17:21:07 +03:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(EXTRALIBS)
|
2003-07-22 15:46:15 +03:00
|
|
|
|
2007-07-17 11:28:48 +03:00
|
|
|
tools/qt-faststart$(EXESUF): tools/qt-faststart.c
|
2006-09-09 20:28:53 +03:00
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
2004-03-26 22:42:28 +02:00
|
|
|
|
2007-07-17 11:28:48 +03:00
|
|
|
tools/cws2fws$(EXESUF): tools/cws2fws.c
|
2007-06-10 17:21:07 +03:00
|
|
|
$(CC) $(CFLAGS) $< -o $@ -lz
|
2004-10-16 14:08:49 +03:00
|
|
|
|
2007-06-10 17:21:53 +03:00
|
|
|
ffplay.o: CFLAGS += $(SDL_CFLAGS)
|
2001-09-25 02:21:02 +03:00
|
|
|
|
2006-09-13 02:13:22 +03:00
|
|
|
ffmpeg.o ffplay.o ffserver.o: version.h
|
|
|
|
|
2007-07-08 18:16:25 +03:00
|
|
|
videohook: .libs $(HOOKS)
|
|
|
|
|
|
|
|
vhook/%$(SLIBSUF): vhook/%.o
|
2007-07-08 20:47:15 +03:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$(@F))
|
2007-07-08 18:16:25 +03:00
|
|
|
|
2007-07-08 20:47:15 +03:00
|
|
|
vhook/%.o: vhook/%.c
|
|
|
|
$(CC) $(VHOOKCFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2002-11-20 05:02:23 +02:00
|
|
|
|
2007-05-17 11:39:50 +03:00
|
|
|
documentation: $(addprefix doc/, ffmpeg-doc.html faq.html ffserver-doc.html \
|
|
|
|
ffplay-doc.html hooks.html $(ALLMANPAGES))
|
|
|
|
|
|
|
|
doc/%.html: doc/%.texi
|
|
|
|
texi2html -monolithic -number $<
|
|
|
|
mv $(@F) $@
|
|
|
|
|
|
|
|
doc/%.pod: doc/%-doc.texi
|
|
|
|
doc/texi2pod.pl $< $@
|
|
|
|
|
|
|
|
doc/%.1: doc/%.pod
|
|
|
|
pod2man --section=1 --center=" " --release=" " $< > $@
|
2004-07-05 21:06:16 +03:00
|
|
|
|
2007-07-09 23:42:00 +03:00
|
|
|
install: install-progs install-libs install-headers $(INSTALL_TARGETS-yes)
|
2006-02-11 19:06:59 +02:00
|
|
|
|
2006-02-11 21:01:54 +02:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-05-18 15:19:07 +03:00
|
|
|
install-progs: $(PROGS) install-libs
|
2006-02-11 21:01:54 +02:00
|
|
|
else
|
2006-05-18 15:19:07 +03:00
|
|
|
install-progs: $(PROGS)
|
2006-02-11 21:01:54 +02:00
|
|
|
endif
|
2007-07-21 21:53:06 +03:00
|
|
|
install -d "$(BINDIR)"
|
|
|
|
install -c -m 755 $(PROGS) "$(BINDIR)"
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2007-01-25 14:13:15 +02:00
|
|
|
# Create the Windows installer.
|
2003-09-12 01:49:35 +03:00
|
|
|
wininstaller: all install
|
|
|
|
makensis ffinstall.nsi
|
|
|
|
|
2003-08-24 19:02:39 +03:00
|
|
|
install-man:
|
2007-07-21 21:53:06 +03:00
|
|
|
install -d "$(MANDIR)/man1"
|
|
|
|
install -m 644 $(MANPAGES) "$(MANDIR)/man1"
|
2003-08-24 19:02:39 +03:00
|
|
|
|
2007-07-08 18:16:25 +03:00
|
|
|
install-vhook: videohook
|
2007-07-21 21:53:06 +03:00
|
|
|
install -d "$(SHLIBDIR)/vhook"
|
|
|
|
install -m 755 $(HOOKS) "$(SHLIBDIR)/vhook"
|
2002-11-20 05:02:23 +02:00
|
|
|
|
2006-02-11 20:50:45 +02:00
|
|
|
install-libs:
|
2006-02-13 14:53:25 +02:00
|
|
|
$(MAKE) -C libavutil install-libs
|
|
|
|
$(MAKE) -C libavcodec install-libs
|
|
|
|
$(MAKE) -C libavformat install-libs
|
2006-02-11 23:42:11 +02:00
|
|
|
ifeq ($(CONFIG_PP),yes)
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc install-libs
|
2006-02-11 23:42:11 +02:00
|
|
|
endif
|
2006-08-08 21:51:38 +03:00
|
|
|
ifeq ($(CONFIG_SWSCALER),yes)
|
|
|
|
$(MAKE) -C libswscale install-libs
|
|
|
|
endif
|
|
|
|
|
2006-02-13 14:53:25 +02:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-03-27 00:01:49 +03:00
|
|
|
-$(LDCONFIG)
|
2006-02-11 20:50:45 +02:00
|
|
|
endif
|
2002-07-25 19:40:10 +03:00
|
|
|
|
2006-02-11 19:44:06 +02:00
|
|
|
install-headers:
|
|
|
|
$(MAKE) -C libavutil install-headers
|
|
|
|
$(MAKE) -C libavcodec install-headers
|
|
|
|
$(MAKE) -C libavformat install-headers
|
2006-02-11 23:42:11 +02:00
|
|
|
ifeq ($(CONFIG_PP),yes)
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc install-headers
|
2006-02-11 23:42:11 +02:00
|
|
|
endif
|
2006-08-08 21:51:38 +03:00
|
|
|
$(MAKE) -C libswscale install-headers
|
2006-02-11 19:44:06 +02:00
|
|
|
|
2006-05-18 15:14:02 +03:00
|
|
|
uninstall: uninstall-progs uninstall-libs uninstall-headers uninstall-man uninstall-vhook
|
|
|
|
|
|
|
|
uninstall-progs:
|
2007-07-21 21:53:06 +03:00
|
|
|
rm -f $(addprefix $(BINDIR)/, $(ALLPROGS))
|
2006-05-18 15:14:02 +03:00
|
|
|
|
|
|
|
uninstall-man:
|
2007-07-21 21:53:06 +03:00
|
|
|
rm -f $(addprefix $(MANDIR)/man1/,$(ALLMANPAGES))
|
2006-05-18 15:14:02 +03:00
|
|
|
|
|
|
|
uninstall-vhook:
|
2007-07-21 21:53:06 +03:00
|
|
|
rm -f $(addprefix $(SHLIBDIR)/vhook/,$(ALLHOOKS))
|
|
|
|
-rmdir "$(SHLIBDIR)/vhook/"
|
2006-05-18 15:14:02 +03:00
|
|
|
|
|
|
|
uninstall-libs:
|
|
|
|
$(MAKE) -C libavutil uninstall-libs
|
|
|
|
$(MAKE) -C libavcodec uninstall-libs
|
|
|
|
$(MAKE) -C libavformat uninstall-libs
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc uninstall-libs
|
2006-05-18 15:14:02 +03:00
|
|
|
|
|
|
|
uninstall-headers:
|
|
|
|
$(MAKE) -C libavutil uninstall-headers
|
|
|
|
$(MAKE) -C libavcodec uninstall-headers
|
|
|
|
$(MAKE) -C libavformat uninstall-headers
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc uninstall-headers
|
2007-07-21 21:53:06 +03:00
|
|
|
-rmdir "$(INCDIR)"
|
2006-05-18 15:14:02 +03:00
|
|
|
|
2007-07-08 20:47:15 +03:00
|
|
|
depend dep: .depend .vhookdep
|
2006-06-02 02:20:51 +03:00
|
|
|
$(MAKE) -C libavutil depend
|
2006-05-18 11:40:15 +03:00
|
|
|
$(MAKE) -C libavcodec depend
|
2005-02-27 04:46:30 +02:00
|
|
|
$(MAKE) -C libavformat depend
|
2006-09-12 13:33:27 +03:00
|
|
|
ifeq ($(CONFIG_PP),yes)
|
|
|
|
$(MAKE) -C libpostproc depend
|
|
|
|
endif
|
2006-10-01 19:33:31 +03:00
|
|
|
ifeq ($(CONFIG_SWSCALER),yes)
|
|
|
|
$(MAKE) -C libswscale depend
|
|
|
|
endif
|
2003-01-22 11:55:08 +02:00
|
|
|
|
2006-06-23 00:28:30 +03:00
|
|
|
.depend: $(SRCS) version.h
|
2006-11-12 18:37:32 +02:00
|
|
|
$(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $(filter-out %.h,$^) 1>.depend
|
2007-07-08 20:47:15 +03:00
|
|
|
|
|
|
|
# gcc stupidly only outputs the basename of targets
|
|
|
|
.vhookdep: $(ALLHOOKS_SRCS)
|
|
|
|
$(CC) $(VHOOKCFLAGS) -MM $^ | sed 's,^\([a-z]\),vhook/\1,' > $@
|
2002-04-22 22:57:45 +03:00
|
|
|
|
2006-12-07 21:25:04 +02:00
|
|
|
$(DEP_LIBS): lib
|
|
|
|
|
|
|
|
.libs: $(DEP_LIBS)
|
|
|
|
touch $@
|
2003-03-12 20:38:18 +02:00
|
|
|
|
2006-01-16 16:59:54 +02:00
|
|
|
clean:
|
2006-05-18 11:40:15 +03:00
|
|
|
$(MAKE) -C libavutil clean
|
|
|
|
$(MAKE) -C libavcodec clean
|
2002-11-25 21:07:40 +02:00
|
|
|
$(MAKE) -C libavformat clean
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc clean
|
2006-08-08 21:51:38 +03:00
|
|
|
$(MAKE) -C libswscale clean
|
2007-06-11 00:48:54 +03:00
|
|
|
rm -f *.o *~ .libs gmon.out TAGS $(ALLPROGS) $(ALLPROGS_G) \
|
2006-11-15 04:13:11 +02:00
|
|
|
output_example$(EXESUF) qt-faststart$(EXESUF) cws2fws$(EXESUF)
|
2007-05-17 11:39:50 +03:00
|
|
|
rm -f doc/*.html doc/*.pod doc/*.1
|
2007-06-08 01:36:39 +03:00
|
|
|
rm -rf tests/vsynth1 tests/vsynth2 tests/data tests/asynth1.sw tests/*~
|
|
|
|
rm -f $(addprefix tests/,$(addsuffix $(EXESUF),audiogen videogen rotozoom seek_test tiny_psnr))
|
2007-07-08 18:16:25 +03:00
|
|
|
rm -f vhook/*.o vhook/*~ vhook/*.so vhook/*.dylib vhook/*.dll
|
2002-11-20 05:02:23 +02:00
|
|
|
|
2001-07-22 17:37:44 +03:00
|
|
|
distclean: clean
|
2006-01-16 16:59:54 +02:00
|
|
|
$(MAKE) -C libavutil distclean
|
|
|
|
$(MAKE) -C libavcodec distclean
|
|
|
|
$(MAKE) -C libavformat distclean
|
2006-06-02 00:37:48 +03:00
|
|
|
$(MAKE) -C libpostproc distclean
|
2006-08-08 21:51:38 +03:00
|
|
|
$(MAKE) -C libswscale distclean
|
2006-07-02 21:24:11 +03:00
|
|
|
rm -f .depend version.h config.* *.pc
|
2001-07-22 17:37:44 +03:00
|
|
|
|
|
|
|
TAGS:
|
2002-11-25 21:07:40 +02:00
|
|
|
etags *.[ch] libavformat/*.[ch] libavcodec/*.[ch]
|
2002-04-22 22:57:45 +03:00
|
|
|
|
2002-05-19 02:11:25 +03:00
|
|
|
# regression tests
|
|
|
|
|
2007-06-08 01:36:39 +03:00
|
|
|
fulltest test: codectest libavtest seektest
|
|
|
|
|
|
|
|
FFMPEG_REFFILE = $(SRC_PATH)/tests/ffmpeg.regression.ref
|
|
|
|
FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref
|
|
|
|
LIBAV_REFFILE = $(SRC_PATH)/tests/libav.regression.ref
|
|
|
|
ROTOZOOM_REFFILE = $(SRC_PATH)/tests/rotozoom.regression.ref
|
|
|
|
SEEK_REFFILE = $(SRC_PATH)/tests/seek.regression.ref
|
|
|
|
|
2007-06-08 22:05:48 +03:00
|
|
|
test-server: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/asynth1.sw
|
2007-06-08 01:36:39 +03:00
|
|
|
@echo
|
|
|
|
@echo "Unfortunately ffserver is broken and therefore its regression"
|
|
|
|
@echo "test fails randomly. Treat the results accordingly."
|
|
|
|
@echo
|
|
|
|
$(SRC_PATH)/tests/server-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/test.conf
|
|
|
|
|
2007-06-08 22:05:48 +03:00
|
|
|
codectest mpeg4 mpeg ac3 snow snowll: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm tests/asynth1.sw tests/tiny_psnr$(EXESUF)
|
2007-06-08 01:36:39 +03:00
|
|
|
$(SRC_PATH)/tests/regression.sh $@ $(FFMPEG_REFFILE) tests/vsynth1
|
|
|
|
$(SRC_PATH)/tests/regression.sh $@ $(ROTOZOOM_REFFILE) tests/vsynth2
|
|
|
|
|
2007-06-08 22:05:48 +03:00
|
|
|
libavtest: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/asynth1.sw
|
2007-06-08 01:36:39 +03:00
|
|
|
$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE) tests/vsynth1
|
|
|
|
seektest: tests/seek_test$(EXESUF)
|
|
|
|
$(SRC_PATH)/tests/seek_test.sh $(SEEK_REFFILE)
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SWSCALER),yes)
|
|
|
|
test-server codectest mpeg4 mpeg ac3 snow snowll libavtest: swscale_error
|
|
|
|
swscale_error:
|
|
|
|
@echo
|
|
|
|
@echo "This regression test is incompatible with --enable-swscaler."
|
|
|
|
@echo
|
|
|
|
@exit 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
tests/vsynth1/00.pgm: tests/videogen$(EXESUF)
|
|
|
|
mkdir -p tests/vsynth1
|
|
|
|
$(BUILD_ROOT)/$< 'tests/vsynth1/'
|
|
|
|
|
|
|
|
tests/vsynth2/00.pgm: tests/rotozoom$(EXESUF)
|
|
|
|
mkdir -p tests/vsynth2
|
|
|
|
$(BUILD_ROOT)/$< 'tests/vsynth2/' $(SRC_PATH)/tests/lena.pnm
|
|
|
|
|
|
|
|
tests/asynth1.sw: tests/audiogen$(EXESUF)
|
|
|
|
$(BUILD_ROOT)/$< $@
|
|
|
|
|
|
|
|
%$(EXESUF): %.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
tests/seek_test$(EXESUF): tests/seek_test.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -DHAVE_AV_CONFIG_H -o $@ $< $(EXTRALIBS)
|
|
|
|
|
2002-05-19 02:11:25 +03:00
|
|
|
|
2006-10-03 20:42:17 +03:00
|
|
|
.PHONY: all lib videohook documentation install* wininstaller uninstall*
|
2006-11-15 02:51:07 +02:00
|
|
|
.PHONY: dep depend clean distclean TAGS
|
2007-05-25 16:12:17 +03:00
|
|
|
.PHONY: codectest libavtest seektest test-server fulltest test
|
2007-06-08 01:36:39 +03:00
|
|
|
.PHONY: mpeg4 mpeg ac3 snow snowll swscale-error
|
2003-03-12 20:38:18 +02:00
|
|
|
|
2007-02-24 01:44:48 +02:00
|
|
|
-include .depend
|
2007-07-08 20:47:15 +03:00
|
|
|
-include .vhookdep
|