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.

22 lines
466B

  1. # use pkg-config for getting CFLAGS abd LDFLAGS
  2. FFMPEG_LIBS=libavdevice libavformat libavfilter libavcodec libswscale libavutil
  3. CFLAGS+=$(shell pkg-config --cflags $(FFMPEG_LIBS))
  4. LDFLAGS+=$(shell pkg-config --libs $(FFMPEG_LIBS))
  5. EXAMPLES=encoding filtering metadata muxing
  6. OBJS=$(addsuffix .o,$(EXAMPLES))
  7. %: %.o
  8. $(CC) $< $(LDFLAGS) -o $@
  9. %.o: %.c
  10. $(CC) $< $(CFLAGS) -c -o $@
  11. .phony: all clean
  12. all: $(OBJS) $(EXAMPLES)
  13. clean:
  14. rm -rf $(EXAMPLES) $(OBJS)