Add nasm rule and action

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29798 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David McPaul 2009-03-30 06:52:51 +00:00
parent 9ab8968af3
commit 73734dbf97

View File

@ -139,6 +139,7 @@ rule Object
switch $(>:S)
{
case .asm : As $(<) : $(>) ;
case .nasm : assemble_nasm $(<) : $(>) ;
case .c : Cc $(<) : $(>) ;
case .C : C++ $(<) : $(>) ;
case .cc : C++ $(<) : $(>) ;
@ -169,6 +170,16 @@ rule Object
}
}
rule assemble_nasm
{
Depends $(<) : $(>) ;
}
actions assemble_nasm
{
nasm -d $(ASFLAGS) -f elf -o $(1) $(2)
}
rule As
{
local flags ;