build_system.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. FFmpeg currently uses a custom build system, this text attempts to document
  2. some of its obscure features and options.
  3. Makefile variables:
  4. V
  5. Disable the default terse mode, the full command issued by make and its
  6. output will be shown on the screen.
  7. DESTDIR
  8. Destination directory for the install targets, useful to prepare packages
  9. or install FFmpeg in cross-environments.
  10. Makefile targets:
  11. all
  12. Default target, builds all the libraries and the executables.
  13. fate
  14. Run the fate test suite, note you must have installed it
  15. fate-list
  16. Will list all fate/regression test targets
  17. install
  18. Install headers, libraries and programs.
  19. libavformat/output-example
  20. Build the libavformat basic example.
  21. libavcodec/api-example
  22. Build the libavcodec basic example.
  23. libswscale/swscale-test
  24. Build the swscale self-test (useful also as example).
  25. Useful standard make commands:
  26. make -t <target>
  27. Touch all files that otherwise would be build, this is useful to reduce
  28. unneeded rebuilding when changing headers, but note you must force rebuilds
  29. of files that actually need it by hand then.
  30. make -j<num>
  31. rebuild with multiple jobs at the same time. Faster on multi processor systems
  32. make -k
  33. continue build in case of errors, this is useful for the regression tests
  34. sometimes but note it will still not run all reg tests.