# This file defines what ends up in the CD boot image and it executes the
# rules building the image.

#HAIKU_BOOT_FLOPPY = haiku-boot-floppy.image ;
#MakeLocate $(HAIKU_BOOT_FLOPPY) : $(HAIKU_OUTPUT_DIR) ;

# CD image target
HAIKU_CD_BOOT_PPC_IMAGE = haiku-boot-cd-ppc.iso ;
MakeLocate $(HAIKU_CD_BOOT_PPC_IMAGE) : $(HAIKU_OUTPUT_DIR) ;

# the pseudo target all archive contents is attached to
NotFile $(HAIKU_CD_BOOT_PPC_IMAGE_CONTAINER_NAME) ;

local elfloader = boot_loader_openfirmware ;
local coffloader = boot_loader_openfirmware_coff ;

# OpenFirmware / Mac boot support files:

# CHRP script
local chrpboot = ofboot.b ;

# HFS creator and application type mapping for mkisofs
local hfsmaps = hfs.map ;

# extra files to put on the boot iso
local extras = README.html ;

SEARCH on $(chrpboot) $(hfsmaps) $(extras) = [ FDirName $(HAIKU_TOP) data boot_cd ] ;



BuildCDBootPPCImage $(HAIKU_CD_BOOT_PPC_IMAGE) : $(hfsmaps) : $(elfloader) : $(coffloader) : $(chrpboot) : $(extras) ;


NotFile haiku-boot-cd-ppc ;
Depends haiku-boot-cd-ppc : $(HAIKU_CD_BOOT_PPC_IMAGE) ;


