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.9KB

  1. # use pkg-config for getting CFLAGS and LDLIBS
  2. FFMPEG_LIBS= libavdevice \
  3. libavformat \
  4. libavfilter \
  5. libavcodec \
  6. libswresample \
  7. libswscale \
  8. libavutil \
  9. CFLAGS += -Wall -g
  10. CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
  11. LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
  12. EXAMPLES= avio_dir_cmd \
  13. avio_reading \
  14. decode_audio \
  15. decode_video \
  16. demuxing_decoding \
  17. encode_audio \
  18. encode_video \
  19. extract_mvs \
  20. filtering_video \
  21. filtering_audio \
  22. http_multiclient \
  23. metadata \
  24. muxing \
  25. remuxing \
  26. resampling_audio \
  27. scaling_video \
  28. transcode_aac \
  29. transcoding \
  30. OBJS=$(addsuffix .o,$(EXAMPLES))
  31. # the following examples make explicit use of the math library
  32. avcodec: LDLIBS += -lm
  33. encode_audio: LDLIBS += -lm
  34. muxing: LDLIBS += -lm
  35. resampling_audio: LDLIBS += -lm
  36. .phony: all clean-test clean
  37. all: $(OBJS) $(EXAMPLES)
  38. clean-test:
  39. $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
  40. clean: clean-test
  41. $(RM) $(EXAMPLES) $(OBJS)