NetBSD/sbin/fsck_ffs/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

42 lines
1.0 KiB
Makefile

# $NetBSD: Makefile.common,v 1.1 2017/02/08 16:11:40 rin Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
# shared stuff with src/distrib/utils/x_newfs for install media.
# stuff not required by install media should be into Makefile.
PROG= fsck_ffs
SRCS+= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c pass5.c \
pass6.c fsutil.c setup.c utilities.c ffs_subr.c ffs_tables.c \
partutil.c snapshot.c quota2.c quota2_subr.c
FSCK= ${NETBSDSRCDIR}/sbin/fsck
DUMP= ${NETBSDSRCDIR}/sbin/dump
CPPFLAGS+=-I${FSCK} -I${DUMP}
.PATH: ${FSCK}
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/sys/ufs/ufs ${FSCK} ${DUMP}
SRCS+= vfs_wapbl.c wapbl.c
.PATH: ${NETBSDSRCDIR}/sys/kern
CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
.ifndef SMALLPROG
CPPFLAGS+=-DPROGRESS
SRCS+= progress.c
.endif
LDADD+=-lutil
DPADD+=${LIBUTIL}
LDADD+=-lprop
DPADD+=${LIBPROP}
COPTS.ffs_appleufs.c+= -Wno-pointer-sign
.if ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif
.if ${MACHINE_ARCH} == "vax"
COPTS.pass1.c+= -O0
.endif