ccc9d98e52
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1 and APPLE_UFS=1 are added to CRUNCHENV, respectively. This reduces the size of ramdisk image for atari by over 15KB. Thanks tsutsui and christos for their useful comments.
29 lines
558 B
Makefile
29 lines
558 B
Makefile
# $NetBSD: Makefile,v 1.1 2017/02/08 16:11:39 rin Exp $
|
|
# Build a smaller fsck_ffs (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/fsck_ffs
|
|
|
|
.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
|
|
|
|
.PATH: ${SRCDIR}
|
|
|
|
.include "${SRCDIR}/Makefile.common"
|
|
|
|
.include <bsd.prog.mk>
|