aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-i386/Makefile
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-05-05 19:15:18 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-05 19:36:33 -0400
commit776cfebb430c7b22c208b1b17add97f354d97cab (patch)
treea4029d17947423ff8cdf12757e3434eb31e0dcba /arch/um/sys-i386/Makefile
parent0c28130b5c9e8f0b153436d3dae39482e5a70af1 (diff)
[PATCH] uml kbuild: avoid useless rebuilds
- Fix some problems with usage of $(targets) (sometimes missing, sometimes used badly) that trigger partial rebuilds when doing a rebuild. - At that purpose, also factor out some common code for symlinks creation. - Fix a x86-64 build warning, caused by -L/usr/lib, which is anyway useless, and invalid in the x86-64 case. Tested on x86_64 and x86. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/sys-i386/Makefile')
-rw-r--r--arch/um/sys-i386/Makefile15
1 files changed, 2 insertions, 13 deletions
diff --git a/arch/um/sys-i386/Makefile b/arch/um/sys-i386/Makefile
index 950781e354de..fcd67c3414e4 100644
--- a/arch/um/sys-i386/Makefile
+++ b/arch/um/sys-i386/Makefile
@@ -7,24 +7,13 @@ obj-$(CONFIG_MODULES) += module.o
7 7
8USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o 8USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o
9 9
10include arch/um/scripts/Makefile.rules
11
12SYMLINKS = bitops.c semaphore.c highmem.c module.c 10SYMLINKS = bitops.c semaphore.c highmem.c module.c
13 11
14# this needs to be before the foreach, because clean-files does not accept
15# complete paths like $(src)/$f.
16clean-files := $(SYMLINKS)
17
18targets += $(SYMLINKS)
19
20SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f)
21
22bitops.c-dir = lib 12bitops.c-dir = lib
23semaphore.c-dir = kernel 13semaphore.c-dir = kernel
24highmem.c-dir = mm 14highmem.c-dir = mm
25module.c-dir = kernel 15module.c-dir = kernel
26 16
27$(SYMLINKS): FORCE
28 $(call if_changed,make_link)
29
30subdir- := util 17subdir- := util
18
19include arch/um/scripts/Makefile.rules