Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. hw_decode \
  24. metadata \
  25. muxing \
  26. remuxing \
  27. resampling_audio \
  28. scaling_video \
  29. transcode_aac \
  30. transcoding \
  31. OBJS=$(addsuffix .o,$(EXAMPLES))
  32. # the following examples make explicit use of the math library
  33. avcodec: LDLIBS += -lm
  34. encode_audio: LDLIBS += -lm
  35. muxing: LDLIBS += -lm
  36. resampling_audio: LDLIBS += -lm
  37. .phony: all clean-test clean
  38. all: $(OBJS) $(EXAMPLES)
  39. clean-test:
  40. $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
  41. clean: clean-test
  42. $(RM) $(EXAMPLES) $(OBJS)