Add -DSMALL versions of ftp and sh for install disks.

This commit is contained in:
cjs 1997-11-17 01:35:57 +00:00
parent fd7119d6e6
commit 85527948f6
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 1997/11/17 01:35:57 cjs Exp $
# Build a smaller ftp (i.e. for boot media)
PROG= ftp
NOMAN=
SRCDIR= ${.CURDIR}/../../../usr.bin/ftp
SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \
util.c
CPPFLAGS+= -DSMALL -I${SRCDIR}
all: ${PROG}
.include <bsd.prog.mk>
.PATH: ${SRCDIR}

View File

@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.1 1997/11/17 01:36:00 cjs Exp $
# Build a smaller sh (e.g. for boot media)
# This can't be used, since crunchgen does not run this makefile
# from this directory.
#.CURDIR := ${.CURDIR}/../../../bin/sh
# XXX Yes, this is really ugly.
.if !defined(BSDSRCDIR) || empty(BSDSRCDIR)
FOO!="***** error: BSDSRCDIR must be defined."
breakthingsnow
.endif
.CURDIR := ${BSDSRCDIR}/bin/sh
NOMAN=1
CPPFLAGS+= -I${.CURDIR}
CFLAGS+= -DSMALL
.PATH: ${.CURDIR} ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
.include "${.CURDIR}/Makefile"