Makefile revision 1.27
11.27Smrg#	$NetBSD: Makefile,v 1.27 2021/06/18 20:30:58 mrg Exp $
21.1Sfredette
31.3Sjmc.include <bsd.own.mk>
41.14Slukem.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
51.10Sfredette.include <bsd.kernobj.mk>
61.9Stsutsui
71.11SlukemIMAGE=		ramdisk.fs
81.21SheIMAGESIZE=	600k
91.27SmrgMAKEFS_FLAGS+=	-f 15 -o density=3072,bsize=4096,fsize=512,optimization=space
101.10Sfredette
111.10SfredetteWARNS=		1
121.27SmrgDBG=		-Os -fno-unwind-tables -fno-ident
131.27Smrg
141.27Smrg# XXXMRG - see if these help/hinder reduced size?
151.27Smrg#-fno-jump-tables 
161.27Smrg#-fzero-initialized-in-bss
171.27Smrg#-fgcse-after-reload
181.27Smrg#-fdelete-null-pointer-checks
191.27Smrg#-fno-sched-interblock
201.27Smrg#-fno-sched-spec
211.27Smrg#-fsched-pressure
221.27Smrg#-fcode-hoisting
231.27Smrg#-ftree-partial-pre
241.27Smrg#-fno-ipa-cp
251.27Smrg#-ftree-builtin-call-dce
261.27Smrg#-fno-align-functions
271.27Smrg#-fno-align-loops
281.27Smrg#-fno-align-jumps
291.27Smrg#-fno-align-labels
301.27Smrg#-fallow-store-data-races
311.10Sfredette
321.10SfredetteCRUNCHBIN=	rd_bin
331.11SlukemLISTS=		${.CURDIR}/list
341.11SlukemMTREECONF=	${.CURDIR}/mtree.conf
351.11SlukemIMAGEENDIAN=	be
361.16SjdolecekMAKEDEVTARGETS=	std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0
371.10SfredetteIMAGEDEPENDS=	${CRUNCHBIN} \
381.23Sabs		fstab passwd protocols ${DISTRIBDIR}/common/services \
391.22Sabs		sshrc welcome ${NETBSDSRCDIR}/etc/netconfig
401.11Slukem
411.14SlukemMDSETTARGETS=		RAMDISK ramdisk.fs -
421.14SlukemMDSET_RELEASEDIR=	binary/kernel
431.1Sfredette
441.10Sfredette# Use stubs to eliminate some large stuff from libc
451.10SfredetteHACKSRC=	${DISTRIBDIR}/utils/libhack
461.26Smartin.MAKEFLAGS+=	NOIEEE80211=1
471.10Sfredette.include	"${HACKSRC}/Makefile.inc"
481.10Sfredette${CRUNCHBIN}:	libhack.o
491.1Sfredette
501.24Schristosfstab: .PHONY
511.24Schristos
521.10Sfredette.include "${DISTRIBDIR}/common/Makefile.crunch"
531.10Sfredette.include "${DISTRIBDIR}/common/Makefile.makedev"
541.10Sfredette.include "${DISTRIBDIR}/common/Makefile.image"
551.11Slukem.include "${DISTRIBDIR}/common/Makefile.mdset"
561.10Sfredette
571.10Sfredette.include <bsd.prog.mk>
58