NetBSD/sbin/newfs/Makefile.common
rin ccc9d98e52 Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
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.
2017-02-08 16:11:39 +00:00

26 lines
715 B
Makefile

# $NetBSD: Makefile.common,v 1.1 2017/02/08 16:11:40 rin Exp $
# @(#)Makefile 8.2 (Berkeley) 3/27/94
# shared stuff with src/distrib/utils/x_newfs for install media.
# stuff not required by install media should be into Makefile.
PROG= newfs
SRCS+= dkcksum.c newfs.c mkfs.c partutil.c pathadj.c quota2_subr.c
DISKLABEL=${NETBSDSRCDIR}/sbin/disklabel
FSCK=${NETBSDSRCDIR}/sbin/fsck
MOUNT=${NETBSDSRCDIR}/sbin/mount
CPPFLAGS+=-DMFS -I${.CURDIR} -I${DISKLABEL} -I${FSCK} -I${MOUNT}
CPPFLAGS+=-DGARBAGE
DPADD+= ${LIBUTIL}
LDADD+= -lutil
LDADD+= -lprop
DPADD+= ${LIBPROP}
.PATH: ${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/sys/ufs/ufs
.PATH: ${FSCK} ${MOUNT}
COPTS.ffs_appleufs.c+= -Wno-pointer-sign