From 94a49b214b85df4b697b947ac50a49f298cfef39 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 18 Nov 2004 15:59:02 +0000 Subject: [PATCH] Fixed SetupKernel. SourceHdrs is best invoked on source files, otherwise HDRSEARCH won't be set on the sources which may cause header dependencies to be missing. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10010 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Jamrules b/Jamrules index 613e161936..2ff2f728d7 100644 --- a/Jamrules +++ b/Jamrules @@ -1712,8 +1712,13 @@ rule Filter rule SetupKernel { # Usage SetupKernel : ; + # + # - Ideally sources, otherwise HDRSEARCH can not be + # set for the sources and the sources some header + # dependencies might be missing. - local _objs = [ FGristFiles $(1:S=$(SUFOBJ)) ] ; + local sources = [ FGristFiles $(1) ] ; + local _objs = $(sources:S=$(SUFOBJ)) ; #Setup Kernel header directories local public_kernel_includes = add-ons/file_system add-ons/graphics app device drivers kernel storage support ; @@ -1727,8 +1732,8 @@ rule SetupKernel # The platform dependent headers. headers += $(PLATFORM_HEADERS) ; - SourceHdrs $(_objs) : $(headers) ; - UseArchObjectHeaders $(_objs) : $(OBOS_ARCH) ; + SourceHdrs $(sources) : $(headers) ; + UseArchObjectHeaders $(sources) : $(OBOS_ARCH) ; local object ; for object in $(_objs) { @@ -1792,13 +1797,13 @@ rule KernelAddon local sources = $(3) ; SetupObjectsDir ; - Addon $(1) : $(2) : $(3) ; + Addon $(1) : $(2) : $(sources) ; ObjectCcFlags $(sources) : -D_KERNEL_MODE=1 -no-fpic ; ObjectC++Flags $(sources) : -D_KERNEL_MODE=1 -no-fpic -fno-exceptions ; LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] -nostdlib ; LinkSharedOSLibs $(1) : $(4) $(OBOS_TOP)/objects/$(OBOS_ARCH).$(OBOS_VERSION)/kernel/kernel.so ; # ToDo this has to be changed! - SetupKernel $(3) ; + SetupKernel $(sources) ; } rule KernelMergeObject