stage1/2 loaders: auto-generate binary files. Fixes #10723

This commit is contained in:
Jessica Hamilton
2014-09-10 22:00:30 +12:00
parent 1d3ba85ae6
commit e547662664
8 changed files with 1088 additions and 1118 deletions
Regular → Executable
+7 -3
View File
@@ -169,15 +169,19 @@ rule StaticLibraryFromObjects
rule AssembleNasm
{
Depends $(<) : $(>) [ on $(<) return $(PLATFORM) ] ;
if ! [ on $(1) return $(NASMFLAGS) ] {
NASMFLAGS on $(1) = -f elf32 ;
}
Depends $(1) : $(2) [ on $(2) return $(PLATFORM) ] ;
}
actions AssembleNasm
{
if test $(ASFLAGS) ; then
$(HAIKU_NASM) -d $(ASFLAGS) -f elf32 -o $(1) $(2);
$(HAIKU_NASM) -d $(ASFLAGS) $(NASMFLAGS) -o $(1) $(2);
else
$(HAIKU_NASM) -f elf32 -o $(1) $(2);
$(HAIKU_NASM) $(NASMFLAGS) -o $(1) $(2);
fi
}