doc/examples: Add example transcoding.c
[ffmpeg.git] / 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=       avio_reading                       \
15                 avcodec                            \
16                 demuxing_decoding                  \
17                 filtering_video                    \
18                 filtering_audio                    \
19                 metadata                           \
20                 muxing                             \
21                 remuxing                           \
22                 resampling_audio                   \
23                 scaling_video                      \
24                 transcode_aac                      \
25                 transcoding                        \
26
27 OBJS=$(addsuffix .o,$(EXAMPLES))
28
29 # the following examples make explicit use of the math library
30 avcodec:           LDLIBS += -lm
31 muxing:            LDLIBS += -lm
32 resampling_audio:  LDLIBS += -lm
33
34 .phony: all clean-test clean
35
36 all: $(OBJS) $(EXAMPLES)
37
38 clean-test:
39         $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
40
41 clean: clean-test
42         $(RM) $(EXAMPLES) $(OBJS)