2012-05-12 16:08:26 +00:00
|
|
|
# use pkg-config for getting CFLAGS and LDLIBS
|
2012-05-08 16:22:28 +00:00
|
|
|
FFMPEG_LIBS= libavdevice \
|
|
|
|
libavformat \
|
|
|
|
libavfilter \
|
|
|
|
libavcodec \
|
2012-05-09 21:45:16 +00:00
|
|
|
libswresample \
|
2012-05-08 16:22:28 +00:00
|
|
|
libswscale \
|
|
|
|
libavutil \
|
|
|
|
|
2013-06-26 14:13:58 +00:00
|
|
|
CFLAGS += -Wall -g
|
2012-08-24 14:49:04 +00:00
|
|
|
CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
|
|
|
|
LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
|
2011-05-29 10:47:40 +00:00
|
|
|
|
2015-08-15 15:59:17 +00:00
|
|
|
EXAMPLES= avio_dir_cmd \
|
2014-07-05 16:12:04 +00:00
|
|
|
avio_reading \
|
2014-04-01 09:12:51 +00:00
|
|
|
decoding_encoding \
|
2013-11-04 11:35:17 +00:00
|
|
|
demuxing_decoding \
|
2014-07-16 14:42:42 +00:00
|
|
|
extract_mvs \
|
2012-05-08 16:22:28 +00:00
|
|
|
filtering_video \
|
|
|
|
filtering_audio \
|
2015-07-25 00:07:15 +00:00
|
|
|
http_multiclient \
|
2012-05-08 16:22:28 +00:00
|
|
|
metadata \
|
|
|
|
muxing \
|
2014-01-19 12:45:48 +00:00
|
|
|
remuxing \
|
2012-11-30 12:51:40 +00:00
|
|
|
resampling_audio \
|
2012-08-21 12:43:51 +00:00
|
|
|
scaling_video \
|
2013-11-28 12:18:58 +00:00
|
|
|
transcode_aac \
|
2014-03-09 00:20:41 +00:00
|
|
|
transcoding \
|
2011-05-29 10:47:40 +00:00
|
|
|
|
|
|
|
OBJS=$(addsuffix .o,$(EXAMPLES))
|
|
|
|
|
2012-05-09 21:06:43 +00:00
|
|
|
# the following examples make explicit use of the math library
|
2014-02-17 00:48:42 +00:00
|
|
|
avcodec: LDLIBS += -lm
|
2015-01-09 16:50:27 +00:00
|
|
|
decoding_encoding: LDLIBS += -lm
|
2012-05-09 21:06:43 +00:00
|
|
|
muxing: LDLIBS += -lm
|
2013-09-04 13:49:18 +00:00
|
|
|
resampling_audio: LDLIBS += -lm
|
2012-05-09 21:06:43 +00:00
|
|
|
|
2012-08-23 18:17:25 +00:00
|
|
|
.phony: all clean-test clean
|
2011-05-29 10:47:40 +00:00
|
|
|
|
|
|
|
all: $(OBJS) $(EXAMPLES)
|
|
|
|
|
2012-08-23 18:17:25 +00:00
|
|
|
clean-test:
|
2012-08-30 20:37:44 +00:00
|
|
|
$(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
|
2012-08-23 18:17:25 +00:00
|
|
|
|
|
|
|
clean: clean-test
|
2012-08-28 18:06:45 +00:00
|
|
|
$(RM) $(EXAMPLES) $(OBJS)
|