[haiku-development] Building objects into a sub-directory

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 22 Apr 2016 18:41:40 +1200

With the Jamfiles, is there a way to make the objects get generated in
a sub-directory of where they're normally created?

At the moment, I currently need to use separate generated directories
(or rm -rf objects/haiku) when switching between the EFI loader and
the BIOS loader, as shared object files between the two loaders use
incompatible compiler switches (EFI requires position independent
code, unlike BIOS and other platform loaders).

I'd like the output files to be put in a sub-folder based on the boot
platform name.

So instead of say
`objects/haiku/x86_64/release/system/boot/loader/heap.o` it would be
perhaps something like
`objects/haiku/x86_64/bios_ia32/system/boot/loader/heap.o` or
`objects/haiku/x86_64/efi/system/boot/loader/heap.o` where
bios_ia32/efi is defined by $(HAIKU_BOOT_PLATFORM).

This will also be necessary later on, as we'd likely want boot images
that support both BIOS and EFI booting.

Other related posts: