1# $NetBSD: Makefile,v 1.6 2024/09/15 04:05:32 tsutsui Exp $ 2 3# XXX 4# This installboot(8) tool for macppc is prepared to handle quirks on 5# creating bootable ISO using mkhybrid(8) for OpenFirmware 1.x and 2.x 6# machines that require "bootable partition" info the Apple Partition map 7# entry even on HFS/ISO9660 hybrid images. 8# 9# This should be merge into MI installboot(8) once after we have proper 10# defintitions how Apple Partition Map should be handled on creating 11# a new label on fresh disks in MD macppc/disksubr.c etc. 12 13NOMAN= # defined 14PROG= macppc_installboot 15SRCS= installboot.c cd9660.c cd9660_util.c 16 17.PATH.c: ${.CURDIR} 18.PATH.c: ${NETBSDSRCDIR}/usr.sbin/installboot ${NETBSDSRCDIR}/sys/fs/cd9660 19 20CPPFLAGS+= -I. -I${.CURDIR} 21#CPPFLAGS+= -DDEBUG 22 23.if !defined(HOSTPROGNAME) 24.if !make(obj) && !make(clean) && !make(cleandir) 25.BEGIN: 26 -rm -rf fs 27 ${HOST_INSTALL_DIR} fs 28 ${HOST_INSTALL_DIR} fs/cd9660 29 ${HOST_LN} -s ${NETBSDSRCDIR}/sys/fs/unicode.h fs 30 ${HOST_LN} -s ${NETBSDSRCDIR}/sys/fs/cd9660/iso.h fs/cd9660 31 ${HOST_LN} -s ${NETBSDSRCDIR}/sys/fs/cd9660/cd9660_extern.h fs/cd9660 32.endif 33 34cleandir distclean: cleaninc 35 36cleaninc: 37 -rm -rf fs 38.endif # !defined(HOSTPROGNAME) 39 40.include <bsd.prog.mk> 41