Ticket #3628: Makefile

File Makefile, 926 bytes (added by spraff, 12 years ago)

Makefile which builds static and shared versions of libav*

Line 
1define \n
2
3
4endef
5
6FFMPEG_VER=0.8.10
7FFMPEG_SRC=ffmpeg-${FFMPEG_VER}
8FFMPEG_LIBS=codec device filter format util
9
10ffmpeg-clean:
11 rm -rf ${FFMPEG_SRC}-static libav*${FFMPEG_VER}*
12
13ffmpeg-get:
14 git clone git://source.ffmpeg.org/ffmpeg.git ${FFMPEG_SRC}-static
15 cp -r ${FFMPEG_SRC}-static ${FFMPEG_SRC}-shared
16
17ffmpeg-build:
18 cd ${FFMPEG_SRC}-static && ./configure --disable-optimizations --disable-shared --enable-static && make -j
19 cd ${FFMPEG_SRC}-shared && ./configure --disable-optimizations --disable-static --enable-shared && make -j
20
21# NOTE in this .so are in *-shared/ and .a are in *-static
22ffmpeg-softlink:
23 $(foreach l,$(FFMPEG_LIBS),ln -s ${FFMPEG_SRC}-shared/libav$l/libav$l.so ./libav$l-${FFMPEG_VER}.so ${\n})
24 $(foreach l,$(FFMPEG_LIBS),ln -s ${FFMPEG_SRC}-static/libav$l/libav$l.a ./libav$l-${FFMPEG_VER}.a ${\n})
25
26ffmpeg: ffmpeg-clean ffmpeg-get ffmpeg-build ffmpeg-softlink
27
28all: ffmpeg
29
30clean: ffmpeg-clean