From 121af366adca0ab79b2bc9be9d09b15a73b3e6c8 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 28 Aug 2004 20:03:01 +0000 Subject: [PATCH] Renamed FObjectsDir to FCurrentObjectsDir and introduced a new FObjectsDir. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8690 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Jamrules b/Jamrules index 25dc2569be..8fddc114ff 100644 --- a/Jamrules +++ b/Jamrules @@ -1432,17 +1432,30 @@ rule OBOSInstallRelSymLink #------------------------------------------------------------------------------- rule FObjectsDir { - # FObjectsDir + # FObjectsDir + # + # Returns the output directory for object files the specified + # subdirectory. + # + # : The tokens of the subdir relative to the top. + # + + return [ FDirName $(OBOS_OBJECT_TARGET) $(1[2-]) ] ; +} + +rule FCurrentObjectsDir +{ + # FCurrentObjectsDir # # Returns the output directory for object files for the current # subdirectory. - return [ FDirName $(OBOS_OBJECT_TARGET) $(SUBDIR_TOKENS[2-]) ] ; + return [ FObjectsDir $(SUBDIR_TOKENS) ] ; } rule SetupObjectsDir { - LOCATE_TARGET = [ FObjectsDir ] ; + LOCATE_TARGET = [ FCurrentObjectsDir ] ; LOCATE_SOURCE = $(LOCATE_TARGET) ; SEARCH_SOURCE = [ Filter $(SEARCH_SOURCE) : $(LOCATE_TARGET) ] $(LOCATE_TARGET) ;