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