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.

32 lines
932B

  1. # use pkg-config for getting CFLAGS abd LDFLAGS
  2. FFMPEG_LIBS= libavdevice \
  3. libavformat \
  4. libavfilter \
  5. libavcodec \
  6. libswscale \
  7. libavutil \
  8. CFLAGS+=-Wall $(shell pkg-config --cflags $(FFMPEG_LIBS))
  9. LDFLAGS+=$(shell pkg-config --libs $(FFMPEG_LIBS))
  10. EXAMPLES= decoding_encoding \
  11. filtering_video \
  12. filtering_audio \
  13. metadata \
  14. muxing \
  15. OBJS=$(addsuffix .o,$(EXAMPLES))
  16. %: %.o
  17. $(CC) $< $(LDFLAGS) -o $@
  18. %.o: %.c
  19. $(CC) $< $(CFLAGS) -c -o $@
  20. .phony: all clean
  21. all: $(OBJS) $(EXAMPLES)
  22. clean:
  23. rm -rf $(EXAMPLES) $(OBJS)