Makefile.images revision 1.13
1#	$NetBSD: Makefile.images,v 1.13 2025/06/29 10:10:31 martin Exp $
2
3NOSSP=yes
4.include <bsd.own.mk>
5.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6
7.include <bsd.kernobj.mk>
8
9WARNS=		1
10DBG=		-Os #-m68020-60	# -m68020-60 seems to generate smaller binaries
11				# but not for gcc-7
12DBG+=		-DNDEBUG	# to remove assert(3) macro
13DBG+=		-D_PTHREADS	# to remove putc
14DBG+=		-DNO_PROGRESS	# to remove ftp's progress
15
16CRUNCHBIN=	instbin
17LISTS=		${.CURDIR}/list ${.CURDIR}/../common/list.images
18MTREECONF=	${.CURDIR}/../common/mtree.conf
19IMAGEENDIAN=	be
20IMAGEDEPENDS+=	${CRUNCHBIN} \
21		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd 
22
23IMAGE_RELEASEDIR=	installation/miniroot
24
25NOIEEE80211=1
26.if defined(USE_SYSINST)
27LISTS+=		${DISTRIBDIR}/common/list.sysinst.en
28.endif
29
30# Use stubs to eliminate some large stuff from libc
31HACKSRC=${DISTRIBDIR}/utils/libhack
32HACK_CURSES=yes
33.MAKEFLAGS+=    USE_WIDECHAR=no 
34.include "${HACKSRC}/Makefile.inc"
35${CRUNCHBIN}: libhack.o
36
37.include "${DISTRIBDIR}/common/Makefile.crunch"
38.if defined(MAKEDEVTARGETS)
39.include "${DISTRIBDIR}/common/Makefile.makedev"
40.endif
41.include "${DISTRIBDIR}/common/Makefile.image"
42
43release:: check_RELEASEDIR
44	${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz
45
46.include <bsd.prog.mk>
47