[CRIU] [PATCH 10/10] make: Switch main Makefile to simplified form

Cyrill Gorcunov gorcunov at openvz.org
Fri Feb 15 14:40:33 EST 2013


This is a bit tricky since the build infrastructure
we're switching to is targeted to per-directory targets
if simplified Makefiles are used.

So I did the following

 - move rules to compile general sources to Makefile.crtools
 - main Makefiles now simply calls for scritps/Makefile.build
   help to generate built-in.o target

Also note that we clean up suffixes for implicit rules with

	.SUFFIXES:

this is done on purpose to eliminate any possible side effect
in future -- all rules _must_ be described explicitly.

Because of implicit rules used in zdtm building procedure
I can't use of stict makefile mode and add

	MAKEFLAGS := -r

to the top of the general Makefile. This should be done
one day latter (if ever).

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile         | 98 ++++++++++++--------------------------------------------
 Makefile.crtools | 47 +++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 77 deletions(-)
 create mode 100644 Makefile.crtools

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-make-Switch-main-Makefile-to-simplified-form.patch
Type: text/x-patch
Size: 4530 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130215/0cd82e5e/attachment.bin>


More information about the CRIU mailing list