Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # use pkg-config for getting CFLAGS and LDLIBS
  2. FFMPEG_LIBS= libavdevice \
  3. libavformat \
  4. libavfilter \
  5. libavcodec \
  6. libavresample \
  7. libswresample \
  8. libswscale \
  9. libavutil \
  10. CFLAGS += -Wall -O2 -g
  11. CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS))
  12. LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS))
  13. EXAMPLES= decoding_encoding \
  14. filtering_video \
  15. filtering_audio \
  16. metadata \
  17. muxing \
  18. OBJS=$(addsuffix .o,$(EXAMPLES))
  19. # the following examples make explicit use of the math library
  20. decoding_encoding: LDLIBS += -lm
  21. muxing: LDLIBS += -lm
  22. .phony: all clean
  23. all: $(OBJS) $(EXAMPLES)
  24. clean:
  25. rm -rf $(EXAMPLES) $(OBJS)