1#         $NetBSD: Makefile.images,v 1.12 2019/06/22 23:42:44 christos 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
25.if defined(USE_SYSINST)
26LISTS+=             ${DISTRIBDIR}/common/list.sysinst.en
27.endif
28
29# Use stubs to eliminate some large stuff from libc
30HACKSRC=${DISTRIBDIR}/utils/libhack
31.include "${HACKSRC}/Makefile.inc"
32${CRUNCHBIN}: libhack.o
33
34.include "${DISTRIBDIR}/common/Makefile.crunch"
35.if defined(MAKEDEVTARGETS)
36.include "${DISTRIBDIR}/common/Makefile.makedev"
37.endif
38.include "${DISTRIBDIR}/common/Makefile.image"
39
40release:: check_RELEASEDIR
41          ${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz
42
43.include <bsd.prog.mk>
44