Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / ffmpeg / doc / examples / Makefile
1 # use pkg-config for getting CFLAGS and LDLIBS
2 FFMPEG_LIBS=    libavdevice                        \
3                 libavformat                        \
4                 libavfilter                        \
5                 libavcodec                         \
6                 libswresample                      \
7                 libswscale                         \
8                 libavutil                          \
9
10 CFLAGS += -Wall -g
11 CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
12 LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
13
14 EXAMPLES=       decoding_encoding                  \
15                 demuxing_decoding                  \
16                 filtering_video                    \
17                 filtering_audio                    \
18                 metadata                           \
19                 muxing                             \
20                 resampling_audio                   \
21                 scaling_video                      \
22                 transcode_aac                      \
23
24 OBJS=$(addsuffix .o,$(EXAMPLES))
25
26 # the following examples make explicit use of the math library
27 decoding_encoding: LDLIBS += -lm
28 muxing:            LDLIBS += -lm
29 resampling_audio:  LDLIBS += -lm
30
31 .phony: all clean-test clean
32
33 all: $(OBJS) $(EXAMPLES)
34
35 clean-test:
36         $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
37
38 clean: clean-test
39         $(RM) $(EXAMPLES) $(OBJS)