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.

50 lines
1.2KB

  1. #
  2. # Makefile for tests
  3. # (c) 2002 Gerard Lantau
  4. #
  5. include ../config.mak
  6. VPATH=$(SRC_PATH)/tests
  7. CFLAGS=-O2 -Wall -g
  8. REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
  9. LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
  10. all: test
  11. # fast regression tests for all codecs
  12. test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
  13. @$(SRC_PATH)/tests/regression.sh $@ $(REFFILE)
  14. # fast regression for libav formats
  15. libavtest: vsynth1/0.pgm asynth1.sw
  16. @$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
  17. # video generation
  18. vsynth1/0.pgm: videogen
  19. @mkdir -p vsynth1
  20. ./videogen 'vsynth1/'
  21. videogen: videogen.c
  22. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  23. # audio generation
  24. asynth1.sw: audiogen
  25. ./audiogen $@
  26. audiogen: audiogen.c
  27. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  28. DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
  29. $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h
  30. dsptestpic: dsptest.c $(DSPDEPS)
  31. $(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $<
  32. dsptest: dsptest.c $(DSPDEPS)
  33. $(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $<
  34. clean:
  35. rm -rf vsynth1
  36. rm -f asynth1.sw *~ audiogen videogen