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:
parent
9ab8968af3
commit
73734dbf97
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user