head	1.17;
access;
symbols
	perseant-exfatfs-base-20250801:1.17
	perseant-exfatfs-base-20240630:1.17
	perseant-exfatfs:1.17.0.48
	perseant-exfatfs-base:1.17
	cjep_sun2x:1.17.0.46
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	cjep_staticlib_x:1.17.0.44
	cjep_staticlib_x-base:1.17
	phil-wifi-20200421:1.17
	phil-wifi-20200411:1.17
	phil-wifi-20200406:1.17
	pgoyette-compat-merge-20190127:1.17
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	pgoyette-compat-0728:1.17
	pgoyette-compat-0625:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	pgoyette-compat:1.17.0.42
	pgoyette-compat-base:1.17
	perseant-stdc-iso10646:1.17.0.40
	perseant-stdc-iso10646-base:1.17
	prg-localcount2-base3:1.17
	prg-localcount2-base2:1.17
	prg-localcount2-base1:1.17
	prg-localcount2:1.17.0.38
	prg-localcount2-base:1.17
	pgoyette-localcount-20170426:1.17
	bouyer-socketcan-base1:1.17
	pgoyette-localcount-20170320:1.17
	bouyer-socketcan:1.17.0.36
	bouyer-socketcan-base:1.17
	pgoyette-localcount-20170107:1.17
	pgoyette-localcount-20161104:1.17
	localcount-20160914:1.17
	pgoyette-localcount-20160806:1.17
	pgoyette-localcount-20160726:1.17
	pgoyette-localcount:1.17.0.34
	pgoyette-localcount-base:1.17
	netbsd-5-2-3-RELEASE:1.17
	netbsd-5-1-5-RELEASE:1.17
	yamt-pagecache-base9:1.17
	yamt-pagecache-tag8:1.17
	tls-earlyentropy:1.17.0.30
	tls-earlyentropy-base:1.17
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.17
	riastradh-drm2-base3:1.17
	netbsd-5-2-2-RELEASE:1.17
	netbsd-5-1-4-RELEASE:1.17
	netbsd-5-2-1-RELEASE:1.17
	netbsd-5-1-3-RELEASE:1.17
	agc-symver:1.17.0.32
	agc-symver-base:1.17
	tls-maxphys-base:1.17
	yamt-pagecache-base8:1.17
	netbsd-5-2:1.17.0.28
	yamt-pagecache-base7:1.17
	netbsd-5-2-RELEASE:1.17
	netbsd-5-2-RC1:1.17
	yamt-pagecache-base6:1.17
	yamt-pagecache-base5:1.17
	yamt-pagecache-base4:1.17
	netbsd-5-1-2-RELEASE:1.17
	netbsd-5-1-1-RELEASE:1.17
	yamt-pagecache-base3:1.17
	yamt-pagecache-base2:1.17
	yamt-pagecache:1.17.0.26
	yamt-pagecache-base:1.17
	bouyer-quota2-nbase:1.17
	bouyer-quota2:1.17.0.24
	bouyer-quota2-base:1.17
	matt-nb5-pq3:1.17.0.22
	matt-nb5-pq3-base:1.17
	netbsd-5-1:1.17.0.20
	netbsd-5-1-RELEASE:1.17
	netbsd-5-1-RC4:1.17
	netbsd-5-1-RC3:1.17
	netbsd-5-1-RC2:1.17
	netbsd-5-1-RC1:1.17
	netbsd-5-0-2-RELEASE:1.17
	netbsd-5-0-1-RELEASE:1.17
	jym-xensuspend-nbase:1.17
	netbsd-5-0:1.17.0.18
	netbsd-5-0-RELEASE:1.17
	netbsd-5-0-RC4:1.17
	netbsd-5-0-RC3:1.17
	netbsd-5-0-RC2:1.17
	jym-xensuspend:1.17.0.16
	jym-xensuspend-base:1.17
	netbsd-5-0-RC1:1.17
	netbsd-5:1.17.0.14
	netbsd-5-base:1.17
	yamt-pf42-base4:1.17
	yamt-pf42-base3:1.17
	hpcarm-cleanup-nbase:1.17
	yamt-pf42-base2:1.17
	yamt-pf42:1.17.0.12
	yamt-pf42-base:1.17
	mjf-devfs2:1.17.0.10
	mjf-devfs2-base:1.17
	keiichi-mipv6:1.17.0.8
	keiichi-mipv6-base:1.17
	mjf-devfs:1.17.0.6
	mjf-devfs-base:1.17
	cube-autoconf:1.17.0.4
	cube-autoconf-base:1.17
	hpcarm-cleanup:1.17.0.2
	hpcarm-cleanup-base:1.17
	netbsd-1-6-PATCH002-RELEASE:1.16
	netbsd-1-6-PATCH002:1.16
	netbsd-1-6-PATCH002-RC4:1.16
	netbsd-1-6-PATCH002-RC3:1.16
	netbsd-1-6-PATCH002-RC2:1.16
	netbsd-1-6-PATCH002-RC1:1.16
	netbsd-1-6-PATCH001:1.16
	netbsd-1-6-PATCH001-RELEASE:1.16
	netbsd-1-6-PATCH001-RC3:1.16
	netbsd-1-6-PATCH001-RC2:1.16
	netbsd-1-6-PATCH001-RC1:1.16
	netbsd-1-6-RELEASE:1.16
	netbsd-1-6-RC3:1.16
	netbsd-1-6-RC2:1.16
	netbsd-1-6-RC1:1.16
	netbsd-1-6:1.16.0.2
	netbsd-1-6-base:1.16
	netbsd-1-5-PATCH003:1.13.4.1
	netbsd-1-5-PATCH002:1.13.4.1
	netbsd-1-5-PATCH001:1.13
	netbsd-1-5-RELEASE:1.13
	netbsd-1-5-BETA2:1.13
	netbsd-1-5-BETA:1.13
	netbsd-1-4-PATCH003:1.8.2.1
	netbsd-1-5-ALPHA2:1.13
	netbsd-1-5:1.13.0.4
	netbsd-1-5-base:1.13
	minoura-xpg4dl:1.13.0.2
	minoura-xpg4dl-base:1.13
	netbsd-1-4-PATCH002:1.8
	wrstuden-devbsize-19991221:1.10
	wrstuden-devbsize:1.10.0.4
	wrstuden-devbsize-base:1.10
	comdex-fall-1999:1.10.0.2
	comdex-fall-1999-base:1.10
	netbsd-1-4-PATCH001:1.8
	netbsd-1-4-RELEASE:1.8
	netbsd-1-4:1.8.0.2
	netbsd-1-4-base:1.8
	netbsd-1-3-PATCH003:1.1.2.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.1.2.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.1.2.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.1.2.2
	netbsd-1-3-PATCH002:1.1.2.2
	netbsd-1-3-PATCH001:1.1
	netbsd-1-3-RELEASE:1.1
	netbsd-1-3-BETA:1.1
	netbsd-1-3:1.1.0.2;
locks; strict;
comment	@# @;


1.17
date	2002.10.17.06.02.36;	author lukem;	state dead;
branches;
next	1.16;

1.16
date	2001.12.12.00.05.14;	author tv;	state Exp;
branches;
next	1.15;

1.15
date	2001.10.05.01.17.32;	author jmc;	state Exp;
branches;
next	1.14;

1.14
date	2001.08.20.12.19.46;	author martin;	state Exp;
branches;
next	1.13;

1.13
date	2000.05.18.01.10.31;	author matt;	state Exp;
branches
	1.13.4.1;
next	1.12;

1.12
date	2000.05.18.00.43.08;	author matt;	state Exp;
branches;
next	1.11;

1.11
date	2000.04.11.12.45.18;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	99.06.21.01.19.38;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	99.05.19.04.17.50;	author gwr;	state Exp;
branches;
next	1.8;

1.8
date	99.02.13.02.54.19;	author lukem;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	98.10.08.01.08.24;	author ross;	state Exp;
branches;
next	1.6;

1.6
date	98.10.08.00.44.16;	author ross;	state Exp;
branches;
next	1.5;

1.5
date	98.05.03.16.50.25;	author ross;	state Exp;
branches;
next	1.4;

1.4
date	98.04.13.14.10.05;	author lukem;	state Exp;
branches;
next	1.3;

1.3
date	98.03.29.09.22.06;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	98.03.19.00.08.25;	author thorpej;	state Exp;
branches;
next	1.1;

1.1
date	97.11.17.01.36.00;	author cjs;	state Exp;
branches
	1.1.2.1;
next	;

1.13.4.1
date	2001.07.29.20.32.33;	author he;	state Exp;
branches;
next	;

1.8.2.1
date	2000.07.01.17.48.21;	author he;	state Exp;
branches;
next	;

1.1.2.1
date	97.11.17.01.36.00;	author mycroft;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	98.05.09.00.20.07;	author mycroft;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Remove these, since platforms using the New Distrib World Order have
been building these using the basesrc Makefiles with SMALLPROG defined
for a while now.
@
text
@# 	$NetBSD: Makefile,v 1.16 2001/12/12 00:05:14 tv Exp $
# Build a smaller sh (e.g. for boot media)

NOMAN=		# defined

.include <bsd.own.mk>

SRCDIR=		${.CURDIR}/../../../bin/sh

CPPFLAGS+=	-I${SRCDIR} -DSMALL

.PATH: ${SRCDIR} ${SRCDIR}/bltin ${SRCDIR}/../../usr.bin/printf ${SRCDIR}/../../bin/test

.include "${SRCDIR}/Makefile"
@


1.16
log
@Major readability cleanup; nuke redundancies; MKfoo=no -> NOfoo=.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.15 2001/10/05 01:17:32 jmc Exp $
@


1.15
log
@Change all COPTS+=-Os to DBG=-Os as that var actually controls the optimization
levels
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.14 2001/08/20 12:19:46 martin Exp $
d4 2
d8 1
a8 3
MKMAN=no

SRCDIR= ${.CURDIR}/../../../bin/sh
d10 1
a10 5
CPPFLAGS+= -I${SRCDIR} -DSMALL
.if ${MACHINE_ARCH} != "sparc64"
DBG= -Os
.endif
LDSTATIC?=-static
@


1.14
log
@Drop ``-Os'' on sparc64 due to toolchain issues.

The same change has already been applied on the 1.5 branch. The problems
(i.e. ifconfig not showing IP addresses) have been verified to still exist
with the new toolchain.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.13 2000/05/18 01:10:31 matt Exp $
d12 1
a12 1
COPTS+= -Os
@


1.13
log
@Part II.  Link everything -static since that's what want for crunchgen
later on.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.12 2000/05/18 00:43:08 matt Exp $
d11 1
d13 1
@


1.13.4.1
log
@Apply patch (requested by martin):
  Drop ``-Os'' on sparc64 due to toolchain issues.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.13 2000/05/18 01:10:31 matt Exp $
a10 1
.if ${MACHINE_ARCH} != "sparc64"
a11 1
.endif
@


1.12
log
@Compile things with -Os.  I wonder if compiling -Mno-pic for mips and vax
would shrink them even more?
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.11 2000/04/11 12:45:18 christos Exp $
d12 1
@


1.11
log
@Oops, forgot to include test here.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.10 1999/06/21 01:19:38 cgd Exp $
d11 1
@


1.10
log
@dependencies on BSDSRCDIR should be _removed_, not introduced.  Use
paths relative to ${.CURDIR} instead.  Using BSDSRCDIR here means that
it's impossible to compile these programs out of the source tree they're
a part of, unless that sort tree happens to be the one at BSDSRCDIR.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.9 1999/05/19 04:17:50 gwr Exp $
d12 1
a12 1
.PATH: ${SRCDIR} ${SRCDIR}/bltin ${SRCDIR}/../../usr.bin/printf
@


1.9
log
@Things in distrib/utils need to know BSDSRCDIR anway,
so we might as well use it.  Lots simpler.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.8 1999/02/13 02:54:19 lukem Exp $
d8 1
a8 1
SRCDIR= ${BSDSRCDIR}/bin/sh
@


1.8
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.7 1998/10/08 01:08:24 ross Exp $
a2 10
#
# 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.
d8 1
a8 9
.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
@


1.8.2.1
log
@Apply patch (requested by he):
  Pull in test sources now that test is a shell builtin.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.8 1999/02/13 02:54:19 lukem Exp $
d30 1
a30 2
.PATH: ${SRCDIR} ${SRCDIR}/bltin ${SRCDIR}/../../usr.bin/printf \
	${SRCDIR}/../test
@


1.7
log
@g/c debug rule
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.6 1998/10/08 00:44:16 ross Exp $
d14 1
a14 1
NOMAN=1
d16 1
a16 1
.include <bsd.own.mk>
@


1.6
log
@Simplify the SRCDIR comment.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.5 1998/05/03 16:50:25 ross Exp $
a26 3

hrh:
	@@echo SRCDIR=$(SRCDIR)
@


1.5
log
@The 3/29 rewrite broke floppy builds, so add back a (different)
hack to enable this to work when included from a different directory.
Idea:  if the crunchgen(1) child were to cd to the target directory
just prior to executing its manufactured Makefile, then problems
like this might not occur.
@
text
@d1 1
a1 1
# 	$NetBSD: Makefile,v 1.4 1998/04/13 14:10:05 lukem Exp $
d3 6
a9 28
# Once upon a time (actually, 11/97) cjs wrote this Makefile and put
# in a comment explaining why the obvious approach would NOT work,
# and proceeded to do it in an ugly but functional way. Later (actually,
# on 3/29/98) Christos came along and did it the simple, clean, and
# beautiful way which, sadly, does not work. What's funny is, that pesky
# comment was deleted in the same 3/29 commit.
# 
# So now, on 5/3/98 ross comes along and decides to fix it. I'm not doing
# it Curt's way, exactly, but I am going to explain again why this is ugly
# and, once again, why the obvious way to do it won't work. The reason for
# this long-winded explaination is obvious: if someone comes along and "fixes"
# my ugly version I want them to at least get their version to really work.
# 
# You cannot completely test this makefile by building in the
# utils/x_sh directory!  The whole problem comes from crunchgen(1).
# The way crunchgen(1) works is to build a makefile in /tmp that includes
# the makefile from the directory to be crunched. It executes that makefile
# in order to get the list of files to work on. The key thing is: crunchgen
# doesn't run from this directory. Therefore, this makefile has to be able
# to work from some other directory.
#
# So, my XXX hack is to locate the sh directory from the different
# possible subdirectory level counts beneath /usr/src. Note that using
# objdirs changes the level count and usually makes it impossible to do a
# relative traversal to another source directory. That's why the :H is
# used, to cancel out the objdir. ".." won't do it, that moves us up
# the obj tree.
#
d12 1
a12 1
# in case someday we completely nuke BSDSRCDIR.
d27 3
@


1.4
log
@use CPPFLAGS not CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1998/03/29 09:22:06 christos Exp $
d3 32
a36 1
SRCDIR=${.CURDIR}/../../../bin/sh
d38 13
a50 1
CPPFLAGS+=	-I${SRCDIR} -DSMALL
d53 1
@


1.3
log
@Simplify so that this works.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1997/11/17 01:36:00 cjs Exp $
d7 1
a7 2
CPPFLAGS+=	-I${SRCDIR}
CFLAGS+=	-DSMALL
@


1.2
log
@Bring in bsd.own.mk to get the definition of BSDSRCDIR before checking
to see if it's defined.
@
text
@a3 13
# This can't be used, since crunchgen does not run this makefile
# from this directory.
#.CURDIR :=	${.CURDIR}/../../../bin/sh

.include <bsd.own.mk>	# XXX for BSDSRCDIR

# XXX Yes, this is really ugly.
.if !defined(BSDSRCDIR) || empty(BSDSRCDIR)
FOO!="***** error: BSDSRCDIR must be defined."
breakthingsnow
.endif
.CURDIR :=	${BSDSRCDIR}/bin/sh

d5 1
d7 1
a7 1
CPPFLAGS+=	-I${.CURDIR}
d10 2
a11 3
.PATH: ${.CURDIR} ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf

.include "${.CURDIR}/Makefile"
@


1.1
log
@Add -DSMALL versions of ftp and sh for install disks.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 2
@


1.1.2.1
log
@file Makefile was added on branch netbsd-1-3 on 1998-05-09 00:20:07 +0000
@
text
@d1 22
@


1.1.2.2
log
@Pull up 1.2-1.5, per request of Christos.
@
text
@a0 54
# 	$NetBSD: Makefile,v 1.1.2.1 1998/05/09 00:20:07 mycroft Exp $
# Build a smaller sh (e.g. for boot media)
# 
# Once upon a time (actually, 11/97) cjs wrote this Makefile and put
# in a comment explaining why the obvious approach would NOT work,
# and proceeded to do it in an ugly but functional way. Later (actually,
# on 3/29/98) Christos came along and did it the simple, clean, and
# beautiful way which, sadly, does not work. What's funny is, that pesky
# comment was deleted in the same 3/29 commit.
# 
# So now, on 5/3/98 ross comes along and decides to fix it. I'm not doing
# it Curt's way, exactly, but I am going to explain again why this is ugly
# and, once again, why the obvious way to do it won't work. The reason for
# this long-winded explaination is obvious: if someone comes along and "fixes"
# my ugly version I want them to at least get their version to really work.
# 
# You cannot completely test this makefile by building in the
# utils/x_sh directory!  The whole problem comes from crunchgen(1).
# The way crunchgen(1) works is to build a makefile in /tmp that includes
# the makefile from the directory to be crunched. It executes that makefile
# in order to get the list of files to work on. The key thing is: crunchgen
# doesn't run from this directory. Therefore, this makefile has to be able
# to work from some other directory.
#
# So, my XXX hack is to locate the sh directory from the different
# possible subdirectory level counts beneath /usr/src. Note that using
# objdirs changes the level count and usually makes it impossible to do a
# relative traversal to another source directory. That's why the :H is
# used, to cancel out the objdir. ".." won't do it, that moves us up
# the obj 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 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"
@
