Makefile revision 1.7
1# $NetBSD: Makefile,v 1.7 2002/05/02 18:02:33 lukem Exp $ 2 3.include <bsd.own.mk> 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6.include <bsd.kernobj.mk> 7 8 9# TARGETS is a list of: 10# KERNEL_name GZBOOT_name RELOC_ADDR WHICH_kernel 11# 12TARGETS= IQ80310 IQ80310 0x00080000 netbsd \ 13 IQ80321 IQ80321 0xf0080000 netbsd 14 15.for K G R W in ${TARGETS} # { 16 17GZB${G}DIR!= cd ${.CURDIR}/../gzboot_${G}_flash_${R} && ${PRINTOBJDIR} 18GZB${G}= ${GZB${K}DIR}/gzboot_${G}_${R}.sym 19 20GZIMGS+= gzimg_${G}_flash_${R}.gz 21 22gzimg_${G}_flash_${R}.gz: .NOTMAIN ${GZB${G}} ${KERNOBJDIR}/${K}/${W}.bin 23 @echo "Populating ${.TARGET}" 24 cp ${KERNOBJDIR}/${K}/${W}.bin netbsd.tmp 25 gzip -9f netbsd.tmp 26 cp ${GZB${G}} gzboot.sym 27 ${MDSETIMAGE} -v -s gzboot.sym netbsd.tmp.gz 28 ${OBJCOPY} -O binary gzboot.sym gzboot.bin 29 gzip -9f gzboot.bin 30 mv gzboot.bin.gz ${.TARGET} 31 rm gzboot.sym netbsd.tmp.gz 32 33.endfor # } 34 35CLEANFILES+= netbsd.tmp netbsd.tmp.gz gzboot.sym \ 36 gzboot.bin gzboot.bin.gz ${GZIMGS} 37 38 39realall: ${GZIMGS} 40 41release: check_RELEASEDIR .WAIT ${GZIMGS} 42.for img in ${GZIMGS} 43 ${RELEASE_INSTALL} ${img} ${RELEASEDIR}/binary/gzimg 44.endfor 45 46.include <bsd.prog.mk> 47