2011-03-17 17:55:58 +02:00
|
|
|
FFmpeg currently uses a custom build system, this text attempts to document
|
2010-10-06 20:53:02 +03:00
|
|
|
some of its obscure features and options.
|
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
Makefile variables:
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2011-03-22 01:20:56 +02: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 20:53:02 +03:00
|
|
|
|
2015-02-08 13:18:27 +02:00
|
|
|
DBG
|
|
|
|
Preprocess x86 external assembler files to a .dbg.asm file in the object
|
2015-10-08 15:01:04 +02:00
|
|
|
directory, which then gets compiled. Helps in developing those assembler
|
2015-02-08 13:18:27 +02:00
|
|
|
files.
|
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
DESTDIR
|
|
|
|
Destination directory for the install targets, useful to prepare packages
|
2011-03-28 22:57:00 +03:00
|
|
|
or install FFmpeg in cross-environments.
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2015-05-27 12:23:01 +02:00
|
|
|
GEN
|
|
|
|
Set to ‘1’ to generate the missing or mismatched references.
|
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
Makefile targets:
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
all
|
|
|
|
Default target, builds all the libraries and the executables.
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2011-03-26 03:42:40 +02:00
|
|
|
fate
|
2015-10-08 15:01:04 +02:00
|
|
|
Run the fate test suite, note that you must have installed it.
|
2011-03-26 03:42:40 +02:00
|
|
|
|
|
|
|
fate-list
|
2015-10-08 15:01:04 +02:00
|
|
|
List all fate/regression test targets.
|
2011-03-26 03:42:40 +02:00
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
install
|
|
|
|
Install headers, libraries and programs.
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2014-06-25 01:40:09 +03:00
|
|
|
examples
|
|
|
|
Build all examples located in doc/examples.
|
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
libavformat/output-example
|
|
|
|
Build the libavformat basic example.
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
libavcodec/api-example
|
|
|
|
Build the libavcodec basic example.
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2011-03-22 01:20:56 +02:00
|
|
|
libswscale/swscale-test
|
2015-10-08 15:01:04 +02:00
|
|
|
Build the swscale self-test (useful also as an example).
|
2010-10-06 20:53:02 +03:00
|
|
|
|
2014-06-25 01:40:09 +03:00
|
|
|
config
|
2015-10-08 15:01:04 +02:00
|
|
|
Reconfigure the project with the current configuration.
|
2014-06-25 01:40:09 +03:00
|
|
|
|
2010-10-06 20:53:02 +03:00
|
|
|
|
|
|
|
Useful standard make commands:
|
|
|
|
make -t <target>
|
2015-10-08 15:01:04 +02:00
|
|
|
Touch all files that otherwise would be built, this is useful to reduce
|
|
|
|
unneeded rebuilding when changing headers, but note that you must force rebuilds
|
2010-10-06 20:53:02 +03:00
|
|
|
of files that actually need it by hand then.
|
|
|
|
|
|
|
|
make -j<num>
|
2015-10-08 15:01:04 +02:00
|
|
|
Rebuild with multiple jobs at the same time. Faster on multi processor systems.
|
2010-10-06 20:53:02 +03:00
|
|
|
|
|
|
|
make -k
|
2015-10-08 15:01:04 +02:00
|
|
|
Continue build in case of errors, this is useful for the regression tests
|
|
|
|
sometimes but note that it will still not run all reg tests.
|
2010-10-06 20:53:02 +03:00
|
|
|
|