Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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= decoding_encoding \
  13. demuxing \
  14. filtering_video \
  15. filtering_audio \
  16. metadata \
  17. muxing \
  18. resampling_audio \
  19. scaling_video \
  20. OBJS=$(addsuffix .o,$(EXAMPLES))
  21. # the following examples make explicit use of the math library
  22. decoding_encoding: LDLIBS += -lm
  23. muxing: LDLIBS += -lm
  24. .phony: all clean-test clean
  25. all: $(OBJS) $(EXAMPLES)
  26. clean-test:
  27. $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
  28. clean: clean-test
  29. $(RM) $(EXAMPLES) $(OBJS)