update filtering_audio example
[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 -O2 -g
11 CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS))
12 LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS))
13
14 EXAMPLES=       decoding_encoding                  \
15                 filtering_video                    \
16                 filtering_audio                    \
17                 metadata                           \
18                 muxing                             \
19
20 OBJS=$(addsuffix .o,$(EXAMPLES))
21
22 # the following examples make explicit use of the math library
23 decoding_encoding: LDLIBS += -lm
24 muxing:            LDLIBS += -lm
25
26 .phony: all clean
27
28 all: $(OBJS) $(EXAMPLES)
29
30 clean:
31         rm -rf $(EXAMPLES) $(OBJS)