33 lines
956 B
Makefile
33 lines
956 B
Makefile
# $NetBSD: Makefile,v 1.7 1998/10/08 01:08:24 ross Exp $
|
|
# Build a smaller sh (e.g. for boot media)
|
|
#
|
|
# Be very careful before attempting to "clean up" the ugly location
|
|
# of the bin/sh source directory. The problem is that crunchgen(1)
|
|
# doesn't run from this directory, thus creating a triple-indirect
|
|
# sh Makefile include and requiring the whole thing to work from
|
|
# different levels in the tree.
|
|
#
|
|
# We could just use only the BSDSRCDIR assignment, but right now the use
|
|
# of BSDSRCDIR can be deleted here, and so I didn't want to depend on it
|
|
# in case someday we completely nuke the rarely used BSDSRCDIR.
|
|
|
|
NOMAN=1
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.for i in ../../bin/sh \
|
|
../../../bin/sh \
|
|
../../../../bin/sh
|
|
.if exists(${.CURDIR:H}/$i/Makefile)
|
|
SRCDIR?= ${.CURDIR:H}/$i
|
|
.endif
|
|
.endfor
|
|
|
|
SRCDIR?= ${BSDSRCDIR}/bin/sh
|
|
|
|
CPPFLAGS+= -I${SRCDIR} -DSMALL
|
|
|
|
.PATH: ${SRCDIR} ${SRCDIR}/bltin ${SRCDIR}/../../usr.bin/printf
|
|
|
|
.include "${SRCDIR}/Makefile"
|