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