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.

46 lines
1.7KB

  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_list_dir \
  13. avio_reading \
  14. decoding_encoding \
  15. demuxing_decoding \
  16. extract_mvs \
  17. filtering_video \
  18. filtering_audio \
  19. metadata \
  20. muxing \
  21. remuxing \
  22. resampling_audio \
  23. scaling_video \
  24. transcode_aac \
  25. transcoding \
  26. OBJS=$(addsuffix .o,$(EXAMPLES))
  27. # the following examples make explicit use of the math library
  28. avcodec: LDLIBS += -lm
  29. decoding_encoding: LDLIBS += -lm
  30. muxing: LDLIBS += -lm
  31. resampling_audio: LDLIBS += -lm
  32. .phony: all clean-test clean
  33. all: $(OBJS) $(EXAMPLES)
  34. clean-test:
  35. $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
  36. clean: clean-test
  37. $(RM) $(EXAMPLES) $(OBJS)