ia64/xen-unstable
changeset 10915:08415dfc5918
[XEN] Allow quick building of individual files.
For the purpose of quick compile testing of (namely smaller) changes,
provide a
means to build individual pieces underneath the xen dir (could equally
be applied
to tools, and the top level Makefile could also be made aware of this
logic to
make things even more consistent). At once, add a way to only
pre-process files
in case some of the more complicated macros need change and hence
inspection
of the results.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
For the purpose of quick compile testing of (namely smaller) changes,
provide a
means to build individual pieces underneath the xen dir (could equally
be applied
to tools, and the top level Makefile could also be made aware of this
logic to
make things even more consistent). At once, add a way to only
pre-process files
in case some of the more complicated macros need change and hence
inspection
of the results.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author | kfraser@localhost.localdomain |
---|---|
date | Wed Aug 02 15:06:29 2006 +0100 (2006-08-02) |
parents | 9a4a560d0a23 |
children | ab86a6f3b5ee |
files | xen/Makefile xen/Rules.mk |
line diff
1.1 --- a/xen/Makefile Wed Aug 02 15:01:59 2006 +0100 1.2 +++ b/xen/Makefile Wed Aug 02 15:06:29 2006 +0100 1.3 @@ -146,3 +146,15 @@ endef 1.4 .PHONY: MAP 1.5 MAP: 1.6 $(NM) $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map 1.7 + 1.8 +.PHONY: FORCE 1.9 +FORCE: 1.10 + 1.11 +%.o %.i: %.c FORCE 1.12 + $(MAKE) -f $(BASEDIR)/Rules.mk -C $(*D) $(@F) 1.13 + 1.14 +%.o %.s: %.S FORCE 1.15 + $(MAKE) -f $(BASEDIR)/Rules.mk -C $(*D) $(@F) 1.16 + 1.17 +%/: FORCE 1.18 + $(MAKE) -f $(BASEDIR)/Rules.mk -C $* built_in.o
2.1 --- a/xen/Rules.mk Wed Aug 02 15:01:59 2006 +0100 2.2 +++ b/xen/Rules.mk Wed Aug 02 15:06:29 2006 +0100 2.3 @@ -105,3 +105,9 @@ clean:: $(addprefix _clean_, $(subdir-al 2.4 2.5 %.o: %.S $(HDRS) Makefile 2.6 $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $@ 2.7 + 2.8 +%.i: %.c $(HDRS) Makefile 2.9 + $(CPP) $(CFLAGS) $< -o $@ 2.10 + 2.11 +%.s: %.S $(HDRS) Makefile 2.12 + $(CPP) $(CFLAGS) $(AFLAGS) $< -o $@