diff --git a/build/jam/OverriddenJamRules b/build/jam/OverriddenJamRules index 9cbe59a42c..543674bd7a 100644 --- a/build/jam/OverriddenJamRules +++ b/build/jam/OverriddenJamRules @@ -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 ;