2011-03-17 16:55:58 +01:00
|
|
|
|
FFmpeg currently uses a custom build system, this text attempts to document
|
2010-10-06 19:53:02 +02:00
|
|
|
|
some of its obscure features and options.
|
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
Makefile variables:
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2011-03-22 00:20:56 +01: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 19:53:02 +02:00
|
|
|
|
|
2015-02-08 12:18:27 +01:00
|
|
|
|
DBG
|
|
|
|
|
Preprocess x86 external assembler files to a .dbg.asm file in the object
|
|
|
|
|
directory, which then gets compiled. Helps developping those assembler
|
|
|
|
|
files.
|
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
DESTDIR
|
|
|
|
|
Destination directory for the install targets, useful to prepare packages
|
2011-03-28 21:57:00 +02:00
|
|
|
|
or install FFmpeg in cross-environments.
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2015-05-27 12:23:01 +02:00
|
|
|
|
GEN
|
|
|
|
|
Set to ‘1’ to generate the missing or mismatched references.
|
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
Makefile targets:
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
all
|
|
|
|
|
Default target, builds all the libraries and the executables.
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2011-03-26 02:42:40 +01:00
|
|
|
|
fate
|
|
|
|
|
Run the fate test suite, note you must have installed it
|
|
|
|
|
|
|
|
|
|
fate-list
|
|
|
|
|
Will list all fate/regression test targets
|
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
install
|
|
|
|
|
Install headers, libraries and programs.
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2014-06-25 00:40:09 +02:00
|
|
|
|
examples
|
|
|
|
|
Build all examples located in doc/examples.
|
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
libavformat/output-example
|
|
|
|
|
Build the libavformat basic example.
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
libavcodec/api-example
|
|
|
|
|
Build the libavcodec basic example.
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2011-03-22 00:20:56 +01:00
|
|
|
|
libswscale/swscale-test
|
|
|
|
|
Build the swscale self-test (useful also as example).
|
2010-10-06 19:53:02 +02:00
|
|
|
|
|
2014-06-25 00:40:09 +02:00
|
|
|
|
config
|
|
|
|
|
Reconfigure the project with current configuration.
|
|
|
|
|
|
2010-10-06 19:53:02 +02: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.
|
|
|
|
|
|