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.

41 lines
737B

  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. all: test
  10. # fast regression tests for all codecs
  11. test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
  12. @$(SRC_PATH)/tests/regression.sh $@ $(REFFILE)
  13. # update the regression test with the current results
  14. updatetest:
  15. cp /tmp/ffmpeg.regression $(REFFILE)
  16. # video generation
  17. vsynth1/0.pgm: videogen
  18. @mkdir -p vsynth1
  19. ./videogen 'vsynth1/'
  20. videogen: videogen.c
  21. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  22. # audio generation
  23. asynth1.sw: audiogen
  24. ./audiogen $@
  25. audiogen: audiogen.c
  26. $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
  27. clean:
  28. rm -rf vsynth1
  29. rm -f asynth1.sw *~ audiogen videogen