avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()
[ffmpeg.git] / doc / examples / Makefile.example
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_dir_cmd                       \
15                 avio_reading                       \
16                 decode_audio                       \
17                 decode_video                       \
18                 demuxing_decoding                  \
19                 encode_audio                       \
20                 encode_video                       \
21                 extract_mvs                        \
22                 filtering_video                    \
23                 filtering_audio                    \
24                 http_multiclient                   \
25                 hw_decode                          \
26                 metadata                           \
27                 muxing                             \
28                 remuxing                           \
29                 resampling_audio                   \
30                 scaling_video                      \
31                 transcode_aac                      \
32                 transcoding                        \
33
34 OBJS=$(addsuffix .o,$(EXAMPLES))
35
36 # the following examples make explicit use of the math library
37 avcodec:           LDLIBS += -lm
38 encode_audio:      LDLIBS += -lm
39 muxing:            LDLIBS += -lm
40 resampling_audio:  LDLIBS += -lm
41
42 .phony: all clean-test clean
43
44 all: $(OBJS) $(EXAMPLES)
45
46 clean-test:
47         $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
48
49 clean: clean-test
50         $(RM) $(EXAMPLES) $(OBJS)