mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
Let's use -MP gcc flag when generating dependency (.d) files.
According to the manual:
-MP This option instructs CPP to add a phony target for each
dependency other than the main file, causing each to depend on
nothing. These dummy rules work around errors make gives if
you remove header files without updating the Makefile to
match.
This fixes incremental rebuild failures like:
make[2]: 'compel/compel-host-bin' is up to date.
DEP criu/arch/x86/crtools.d
CC criu/arch/x86/crtools.o
LINK criu/arch/x86/crtools.built-in.o
make[3]: Nothing to be done for 'all'.
make[3]: *** No rule to make target 'criu/include/linux/rseq.h', needed by 'criu/pie/parasite.o'. Stop.
make[2]: *** [criu/Makefile:59: pie] Error 2
Usually, after header files renames or source directory tree reorganization.
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
|
||
|---|---|---|
| .. | ||
| Documentation | ||
| scripts | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
NMK
NMK stands for NetMaKe -- is a very simple framework for make build system. Most ideas are taken from the Linux kernel kbuild system.