Home | History | Annotate | Line # | Download | only in x_fsck_ffs
Makefile revision 1.2
      1 # $NetBSD: Makefile,v 1.2 2020/04/18 12:56:38 jdolecek Exp $
      2 # Build a smaller fsck_ffs (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 
      6 NOMAN=		# defined
      7 
      8 .include <bsd.own.mk>
      9 
     10 SRCDIR=		${.CURDIR}/../../../sbin/fsck_ffs
     11 
     12 .ifdef FFS_EI
     13 SRCS+=		ffs_bswap.c
     14 .else
     15 CPPFLAGS+=	-DNO_FFS_EI
     16 .endif
     17 
     18 .ifdef APPLE_UFS
     19 SRCS+=		ffs_appleufs.c
     20 .else
     21 CPPFLAGS+=	-DNO_APPLE_UFS
     22 .endif
     23 
     24 CPPFLAGS+=	-DNO_IOBUF_ALIGNED
     25 
     26 .PATH:		${SRCDIR}
     27 
     28 .include "${SRCDIR}/Makefile.common"
     29 
     30 .include <bsd.prog.mk>
     31