2012-05-12 19:08:26 +03:00
|
|
|
# use pkg-config for getting CFLAGS and LDLIBS
|
2012-05-08 19:22:28 +03:00
|
|
|
FFMPEG_LIBS= libavdevice \
|
|
|
|
libavformat \
|
|
|
|
libavfilter \
|
|
|
|
libavcodec \
|
2012-05-19 13:28:09 +03:00
|
|
|
libavresample \
|
2012-05-10 00:45:16 +03:00
|
|
|
libswresample \
|
2012-05-08 19:22:28 +03:00
|
|
|
libswscale \
|
|
|
|
libavutil \
|
|
|
|
|
2012-05-10 00:08:17 +03:00
|
|
|
CFLAGS += -Wall -O2
|
|
|
|
CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS))
|
|
|
|
LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS))
|
2011-05-29 13:47:40 +03:00
|
|
|
|
2012-05-08 19:22:28 +03:00
|
|
|
EXAMPLES= decoding_encoding \
|
|
|
|
filtering_video \
|
|
|
|
filtering_audio \
|
|
|
|
metadata \
|
|
|
|
muxing \
|
2011-05-29 13:47:40 +03:00
|
|
|
|
|
|
|
OBJS=$(addsuffix .o,$(EXAMPLES))
|
|
|
|
|
2012-05-10 00:06:43 +03:00
|
|
|
# the following examples make explicit use of the math library
|
|
|
|
decoding_encoding: LDLIBS += -lm
|
|
|
|
muxing: LDLIBS += -lm
|
|
|
|
|
2011-05-29 13:47:40 +03:00
|
|
|
.phony: all clean
|
|
|
|
|
|
|
|
all: $(OBJS) $(EXAMPLES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(EXAMPLES) $(OBJS)
|