Makefile 1.7 KB

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