xref: /netbsd-src/distrib/utils/x_newfs/Makefile (revision 13ae812dd5d7e73945fa85a33fdc4bdd70a778fb)
1# $NetBSD: Makefile,v 1.3 2023/07/26 02:26:11 rin Exp $
2# Build a smaller newfs (i.e. for boot media).
3# Support for Endian-Independent FFS and Apple UFS is dropped unless FFS_EI=1
4# and APPLE_UFS=1 are added to CRUNCHENV, respectively.
5
6NOMAN=		# defined
7
8.include <bsd.own.mk>
9
10SRCDIR=		${.CURDIR}/../../../sbin/newfs
11
12.ifdef FFS_EI
13SRCS+=		ffs_bswap.c
14.else
15CPPFLAGS+=	-DNO_FFS_EI
16.endif
17
18.ifdef APPLE_UFS
19SRCS+=		ffs_appleufs.c
20COPTS.ffs_appleufs.c+=	-Wno-error=address-of-packed-member
21.else
22CPPFLAGS+=	-DNO_APPLE_UFS
23.endif
24
25CPPFLAGS+=	-DSMALL
26CPPFLAGS+=	-DNO_IOBUF_ALIGNED
27
28.PATH:		${SRCDIR}
29
30.include "${SRCDIR}/Makefile.common"
31
32.include <bsd.prog.mk>
33