build_system.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. DBG
  8. Preprocess x86 external assembler files to a .dbg.asm file in the object
  9. directory, which then gets compiled. Helps in developing those assembler
  10. files.
  11. DESTDIR
  12. Destination directory for the install targets, useful to prepare packages
  13. or install FFmpeg in cross-environments.
  14. GEN
  15. Set to ‘1’ to generate the missing or mismatched references.
  16. Makefile targets:
  17. all
  18. Default target, builds all the libraries and the executables.
  19. fate
  20. Run the fate test suite, note that you must have installed it.
  21. fate-list
  22. List all fate/regression test targets.
  23. install
  24. Install headers, libraries and programs.
  25. examples
  26. Build all examples located in doc/examples.
  27. checkheaders
  28. Check headers dependencies.
  29. alltools
  30. Build all tools in tools directory.
  31. config
  32. Reconfigure the project with the current configuration.
  33. tools/target_dec_<decoder>_fuzzer
  34. Build fuzzer to fuzz the specified decoder.
  35. tools/target_bsf_<filter>_fuzzer
  36. Build fuzzer to fuzz the specified bitstream filter.
  37. Useful standard make commands:
  38. make -t <target>
  39. Touch all files that otherwise would be built, this is useful to reduce
  40. unneeded rebuilding when changing headers, but note that you must force rebuilds
  41. of files that actually need it by hand then.
  42. make -j<num>
  43. Rebuild with multiple jobs at the same time. Faster on multi processor systems.
  44. make -k
  45. Continue build in case of errors, this is useful for the regression tests
  46. sometimes but note that it will still not run all reg tests.