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