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