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.

36 lines
1.0KB

  1. # use pkg-config for getting CFLAGS abd LDLIBS
  2. FFMPEG_LIBS= libavdevice \
  3. libavformat \
  4. libavfilter \
  5. libavcodec \
  6. libswscale \
  7. libavutil \
  8. CFLAGS+=-Wall $(shell pkg-config --cflags $(FFMPEG_LIBS))
  9. LDLIBS+=$(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. # the following examples make explicit use of the math library
  17. decoding_encoding: LDLIBS += -lm
  18. muxing: LDLIBS += -lm
  19. %: %.o
  20. $(CC) $< $(LDLIBS) -o $@
  21. %.o: %.c
  22. $(CC) $< $(CFLAGS) -c -o $@
  23. .phony: all clean
  24. all: $(OBJS) $(EXAMPLES)
  25. clean:
  26. rm -rf $(EXAMPLES) $(OBJS)