[FFmpeg-devel] [PATCH] Non-recursive makefiles

Víctor Paesa wzrlpy
Sat Mar 29 03:14:56 CET 2008


Hi,

M?ns Rullg?rd said:
> M?ns Rullg?rd <mans at mansr.com> writes:
>
>> M?ns Rullg?rd <mans at mansr.com> writes:
>>
>>> This splendid patch makes the makefiles non-recursive, which is good
>>> in a number of ways.  Through some clever tricks, it is still
>>> possible to invoke make in a subdirectory to build only that library.
>>>
>>> Please test.  If you're too lazy to help me test it, at least
>>> comment.
>>
>> Here's a new version of the patch.

I tried "configure --disable-static --enable-shared" in out of source tree.
"make" completes the build OK, and creates the shared libraries:

$ find . -name '*.dll' -ls
1688849860795711 5536 -rwxr-xr-x   1 Inma     None     11288950 Mar 29
03:00 ./libavcodec/cygavcodec-51.dll
3377699721059642    0 lrwxrwxrwx   1 Inma     None           17 Mar 29
03:00 ./libavcodec/cygavcodec.dll -> cygavcodec-51.dll
1125899907374404  256 -rwxr-xr-x   1 Inma     None       473347 Mar 29
03:00 ./libavdevice/cygavdevice-52.dll
2251799814217020    0 lrwxrwxrwx   1 Inma     None           18 Mar 29
03:00 ./libavdevice/cygavdevice.dll -> cygavdevice-52.dll
1125899907374402  928 -rwxr-xr-x   1 Inma     None      1842141 Mar 29
03:00 ./libavformat/cygavformat-52.dll
2533274790927675    0 lrwxrwxrwx   1 Inma     None           18 Mar 29
03:00 ./libavformat/cygavformat.dll -> cygavformat-52.dll
1688849860795709   96 -rwxr-xr-x   1 Inma     None       152057 Mar 29
03:00 ./libavutil/cygavutil-49.dll
113997365568233869    0 lrwxrwxrwx   1 Inma     None           16 Mar 29
03:00 ./libavutil/cygavutil.dll -> cygavutil-49.dll
2251799814217049   52 -rwxr-xr-x   1 Inma     None       102770 Mar 29
03:01 ./vhook/drawtext.dll
3096224744349009   46 -rwxr-xr-x   1 Inma     None        93062 Mar 29
03:00 ./vhook/fish.dll
1688849860795731   36 -rwxr-xr-x   1 Inma     None        72560 Mar 29
03:00 ./vhook/null.dll
1688849860795735   42 -rwxr-xr-x   1 Inma     None        82186 Mar 29
03:01 ./vhook/ppm.dll
1970324837506389   44 -rwxr-xr-x   1 Inma     None        89899 Mar 29
03:01 ./vhook/watermark.dll


But "make install" doesn't install the shared libraries:

$ DESTDIR=../caca/ make install
install -d "../caca//usr/local/include/libavdevice"
install -d "../caca//usr/local/lib/pkgconfig"
install -m 644 "/home/Inma/src/ffmpeg-svn/ffmpeg/libavdevice"/avdevice.h
"../caca//usr/local/include/libavdevice"
install -m 644 "/home/Inma/src/ffmpeg-12623"/libavdevice.pc
"../caca//usr/local/lib/pkgconfig"
install -d "../caca//usr/local/include/libavformat"
install -d "../caca//usr/local/lib/pkgconfig"
install -m 644 "/home/Inma/src/ffmpeg-svn/ffmpeg/libavformat"/avformat.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavformat"/avio.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavformat"/rtsp.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavformat"/rtspcodes.h
"../caca//usr/local/include/libavformat"
install -m 644 "/home/Inma/src/ffmpeg-12623"/libavformat.pc
"../caca//usr/local/lib/pkgconfig"
install -d "../caca//usr/local/include/libavcodec"
install -d "../caca//usr/local/lib/pkgconfig"
install -m 644 "/home/Inma/src/ffmpeg-svn/ffmpeg/libavcodec"/avcodec.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavcodec"/opt.h
"../caca//usr/local/include/libavcodec"
install -m 644 "/home/Inma/src/ffmpeg-12623"/libavcodec.pc
"../caca//usr/local/lib/pkgconfig"
install -d "../caca//usr/local/include/libavutil"
install -d "../caca//usr/local/lib/pkgconfig"
install -m 644 "/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/adler32.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/avstring.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/avutil.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/base64.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/common.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/crc.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/fifo.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/intfloat_readwrite.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/log.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/lzo.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/mathematics.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/md5.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/mem.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/random.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/rational.h
"/home/Inma/src/ffmpeg-svn/ffmpeg/libavutil"/sha1.h
"../caca//usr/local/include/libavutil"
install -m 644 "/home/Inma/src/ffmpeg-12623"/libavutil.pc
"../caca//usr/local/lib/pkgconfig"
install -d "../caca//usr/local/bin/vhook"
install -m 755 vhook/fish.dll vhook/null.dll vhook/watermark.dll
vhook/ppm.dll vhook/drawtext.dll "../caca//usr/local/bin/vhook"
install -d "../caca//usr/local/bin"
install -c -m 755 ffmpeg.exe ffplay.exe ffserver.exe "../caca//usr/local/bin"
install -d "../caca//usr/local/share/man/man1"
install -m 644 doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1
"../caca//usr/local/share/man/man1"

Regards,
V?ctor






More information about the ffmpeg-devel mailing list