2011-03-17 15:55:58 +00:00
|
|
|
FFmpeg currently uses a custom build system, this text attempts to document
|
2010-10-06 17:53:02 +00:00
|
|
|
some of its obscure features and options.
|
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
Makefile variables:
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
V
|
|
|
|
Disable the default terse mode, the full command issued by make and its
|
|
|
|
output will be shown on the screen.
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
DESTDIR
|
|
|
|
Destination directory for the install targets, useful to prepare packages
|
|
|
|
or install Libav in cross-environments.
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
Makefile targets:
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
all
|
|
|
|
Default target, builds all the libraries and the executables.
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-26 01:42:40 +00:00
|
|
|
fate
|
|
|
|
Run the fate test suite, note you must have installed it
|
|
|
|
|
|
|
|
fate-list
|
|
|
|
Will list all fate/regression test targets
|
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
install
|
|
|
|
Install headers, libraries and programs.
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
libavformat/output-example
|
|
|
|
Build the libavformat basic example.
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
libavcodec/api-example
|
|
|
|
Build the libavcodec basic example.
|
2010-10-06 17:53:02 +00:00
|
|
|
|
2011-03-21 23:20:56 +00:00
|
|
|
libswscale/swscale-test
|
|
|
|
Build the swscale self-test (useful also as example).
|
2010-10-06 17:53:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
Useful standard make commands:
|
|
|
|
make -t <target>
|
|
|
|
Touch all files that otherwise would be build, this is useful to reduce
|
|
|
|
unneeded rebuilding when changing headers, but note you must force rebuilds
|
|
|
|
of files that actually need it by hand then.
|
|
|
|
|
|
|
|
make -j<num>
|
|
|
|
rebuild with multiple jobs at the same time. Faster on multi processor systems
|
|
|
|
|
|
|
|
make -k
|
|
|
|
continue build in case of errors, this is useful for the regression tests
|
|
|
|
sometimes but note it will still not run all reg tests.
|
|
|
|
|