From 85527948f6db18f8ce5ab5b3fd58e1289a247ff7 Mon Sep 17 00:00:00 2001
From: cjs <cjs@NetBSD.org>
Date: Mon, 17 Nov 1997 01:35:57 +0000
Subject: [PATCH] Add -DSMALL versions of ftp and sh for install disks.

---
 distrib/utils/x_ftp/Makefile | 18 ++++++++++++++++++
 distrib/utils/x_sh/Makefile  | 22 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 distrib/utils/x_ftp/Makefile
 create mode 100644 distrib/utils/x_sh/Makefile

diff --git a/distrib/utils/x_ftp/Makefile b/distrib/utils/x_ftp/Makefile
new file mode 100644
index 000000000000..6840c2b9656c
--- /dev/null
+++ b/distrib/utils/x_ftp/Makefile
@@ -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}
diff --git a/distrib/utils/x_sh/Makefile b/distrib/utils/x_sh/Makefile
new file mode 100644
index 000000000000..8694ad24408f
--- /dev/null
+++ b/distrib/utils/x_sh/Makefile
@@ -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"