blob: 1a0a719af1f49d2c30bb1fcd0c23b55327311c1c (
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
|
# $NetBSD: Makefile,v 1.2 2020/04/18 12:56:38 jdolecek Exp $
# Build a smaller newfs (i.e. for boot media).
# Support for Endian-Independent FFS and Apple UFS is dropped unless FFS_EI=1
# and APPLE_UFS=1 are added to CRUNCHENV, respectively.
NOMAN= # defined
.include <bsd.own.mk>
SRCDIR= ${.CURDIR}/../../../sbin/newfs
.ifdef FFS_EI
SRCS+= ffs_bswap.c
.else
CPPFLAGS+= -DNO_FFS_EI
.endif
.ifdef APPLE_UFS
SRCS+= ffs_appleufs.c
.else
CPPFLAGS+= -DNO_APPLE_UFS
.endif
CPPFLAGS+= -DSMALL
CPPFLAGS+= -DNO_IOBUF_ALIGNED
.PATH: ${SRCDIR}
.include "${SRCDIR}/Makefile.common"
.include <bsd.prog.mk>
|