Added a BuildPlatformTest rule for building tests that shall run on the build platform..

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-06-24 16:44:00 +00:00
parent a8c44e89f8
commit 9fcaa61d04

View File

@ -1612,6 +1612,23 @@ rule BuildPlatformMain
C++FLAGS = $(oldC++FLAGS) ;
}
rule BuildPlatformTest
{
# Usage BuildPlatformTest <target> : <sources> ;
local target = $(1) ;
local sources = $(2) ;
BuildPlatformMain $(target) : $(sources) ;
local relPath ;
if [ FIsPrefix src tests : $(SUBDIR_TOKENS) ] {
relPath = $(SUBDIR_TOKENS[3-]) ;
} else {
relPath = $(SUBDIR_TOKENS[2-]) ;
}
MakeLocate $(target) : [ FDirName $(OBOS_TEST_DIR) $(relPath) ] ;
}
rule KernelConfigSection
{
# KernelConfigSection <section> : <type> : <file> ;