You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.2KB

  1. #
  2. # Makefile for tests
  3. # (c) 2002 Fabrice Bellard
  4. #
  5. include ../config.mak
  6. VPATH=$(SRC_PATH)/tests
  7. CFLAGS=-O2 -Wall -g
  8. REFFILE1=$(VPATH)/ffmpeg.regression.ref
  9. REFFILE2=$(VPATH)/rotozoom.regression.ref
  10. SERVER_REFFILE=$(VPATH)/ffserver.regression.ref
  11. LIBAV_REFFILE=$(VPATH)/libav.regression.ref
  12. all fulltest: codectest libavtest test-server
  13. test: codectest libavtest test-server
  14. test-server: vsynth1/0.pgm asynth1.sw
  15. @$(VPATH)/server-regression.sh $(SERVER_REFFILE) $(VPATH)/test.conf
  16. # fast regression tests for all codecs
  17. codectest mpeg4 mpeg ac3 snow snowll: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr$(EXESUF)
  18. @$(VPATH)/regression.sh $@ $(REFFILE1) vsynth1
  19. @$(VPATH)/regression.sh $@ $(REFFILE2) vsynth2
  20. # fast regression for libav formats
  21. libavtest: vsynth1/0.pgm asynth1.sw
  22. @$(VPATH)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
  23. # video generation
  24. vsynth1/0.pgm: videogen$(EXESUF)
  25. @mkdir -p vsynth1
  26. ./videogen 'vsynth1/'
  27. vsynth2/0.pgm: rotozoom$(EXESUF)
  28. @mkdir -p vsynth2
  29. ./rotozoom 'vsynth2/' $(VPATH)/lena.pnm
  30. videogen$(EXESUF): videogen.c
  31. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  32. rotozoom$(EXESUF): rotozoom.c
  33. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  34. # audio generation
  35. asynth1.sw: audiogen$(EXESUF)
  36. ./audiogen $@
  37. audiogen$(EXESUF): audiogen.c
  38. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  39. tiny_psnr$(EXESUF): tiny_psnr.c
  40. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  41. DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
  42. $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
  43. $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
  44. $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
  45. $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
  46. $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
  47. $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
  48. $(SRC_PATH)/libavcodec/dsputil.c \
  49. $(SRC_PATH)/libavcodec/dsputil.h \
  50. $(SRC_PATH)/libavcodec/simple_idct.c
  51. DSPCFLAGS = -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. \
  52. -I$(SRC_PATH)/libavutil/ -I$(SRC_PATH)/libavcodec/i386 \
  53. -I$(SRC_PATH)/libavcodec/ -lm
  54. dsptestpic: dsptest.c $(DSPDEPS)
  55. $(CC) -fPIC -DPIC $(DSPCFLAGS) -o $@ $<
  56. dsptest: dsptest.c $(DSPDEPS)
  57. $(CC) $(DSPCFLAGS) -o $@ $<
  58. distclean clean:
  59. rm -rf vsynth1 vsynth2 data
  60. rm -f asynth1.sw *~ audiogen$(EXESUF) videogen$(EXESUF) rotozoom$(EXESUF) tiny_psnr$(EXESUF)