firejail/.gitignore
Kelvin M. Klann e665769f52 build: automatically generate header dependencies
Instead of manually specifying which source files depend on which
headers, use compiler flags to automatically generate depfiles (.d),
which declare the correct header (make) dependencies for each source
file (.c).

Use `-MMD` (which ignores system headers) to generate the dependencies
and `-MP` to prevent make from complaining when a header file is removed
while it is listed as a dependency in a depfile.

If depfiles exist, just include them.  If not, make each object file
(.o) unconditionally depend on all header files in its source directory
and in src/include, to ensure that rebuilds are done when needed.  The
latter case applies to the first build after `make clean` (which would
build everything anyway) and when the compiler does not support
generating depfiles.

Note that both gcc and clang have supported these options for a long
time.

Misc: This depends on the changes from commit 5b1bd33c7 ("build: use
full paths on compile/link targets", 2023-07-02) / PR #6158 to avoid
issues with make dependency tracking.
2024-01-22 18:05:47 -03:00

66 lines
1.1 KiB
Text

*.d
*.o
*.so
*~
*.swp
*.deb
*.rpm
*.gcda
*.gcno
*.gz
*.DS_Store
.directory
.vscode
/firejail-*/
autom4te.cache/
config.log
config.mk
config.sh
config.status
contrib/syntax/files/example
contrib/syntax/files/firejail-profile.lang
contrib/syntax/files/firejail.vim
firejail-*.tar.xz
src/fnettrace-dns/fnettrace-dns
src/fnettrace-sni/fnettrace-sni
src/fnettrace-icmp/fnettrace-icmp
src/firejail/firejail
src/firemon/firemon
src/firecfg/firecfg
src/ftee/ftee
src/fids/fids
src/tags
src/faudit/faudit
src/fnet/fnet
src/fnetfilter/fnetfilter
src/fsec-print/fsec-print
src/fseccomp/fseccomp
src/fsec-optimize/fsec-optimize
src/fcopy/fcopy
src/fldd/fldd
src/fbuilder/fbuilder
src/profstats/profstats
src/etc-cleanup/etc-cleanup
src/bash_completion/firejail.bash_completion
src/zsh_completion/_firejail
src/jailcheck/jailcheck
src/fnettrace/fnettrace
src/fnetlock/fnetlock
src/fzenity/fzenity
uids.h
seccomp
seccomp.debug
seccomp.32
seccomp.64
seccomp.block_secondary
seccomp.mdwx
seccomp.mdwx.32
seccomp.namespaces
seccomp.namespaces.32
aclocal.m4
__pycache__
*.pyc
*.pyo
src/fnettrace/static-ip-map
src/man/*.1
src/man/*.5