head	1.10;
access;
symbols
	perseant-exfatfs-base-20250801:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.48
	perseant-exfatfs-base:1.10
	cjep_sun2x:1.10.0.46
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	cjep_staticlib_x:1.10.0.44
	cjep_staticlib_x-base:1.10
	phil-wifi-20200421:1.10
	phil-wifi-20200411:1.10
	phil-wifi-20200406:1.10
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	pgoyette-compat-0728:1.10
	pgoyette-compat-0625:1.10
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	pgoyette-compat:1.10.0.42
	pgoyette-compat-base:1.10
	perseant-stdc-iso10646:1.10.0.40
	perseant-stdc-iso10646-base:1.10
	prg-localcount2-base3:1.10
	prg-localcount2-base2:1.10
	prg-localcount2-base1:1.10
	prg-localcount2:1.10.0.38
	prg-localcount2-base:1.10
	pgoyette-localcount-20170426:1.10
	bouyer-socketcan-base1:1.10
	pgoyette-localcount-20170320:1.10
	bouyer-socketcan:1.10.0.36
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	pgoyette-localcount-20161104:1.10
	localcount-20160914:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.34
	pgoyette-localcount-base:1.10
	netbsd-5-2-3-RELEASE:1.10
	netbsd-5-1-5-RELEASE:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.10
	tls-earlyentropy:1.10.0.30
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-5-2-2-RELEASE:1.10
	netbsd-5-1-4-RELEASE:1.10
	netbsd-5-2-1-RELEASE:1.10
	netbsd-5-1-3-RELEASE:1.10
	agc-symver:1.10.0.32
	agc-symver-base:1.10
	tls-maxphys-base:1.10
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.10.0.28
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.10
	netbsd-5-2-RC1:1.10
	yamt-pagecache-base6:1.10
	yamt-pagecache-base5:1.10
	yamt-pagecache-base4:1.10
	netbsd-5-1-2-RELEASE:1.10
	netbsd-5-1-1-RELEASE:1.10
	yamt-pagecache-base3:1.10
	yamt-pagecache-base2:1.10
	yamt-pagecache:1.10.0.26
	yamt-pagecache-base:1.10
	bouyer-quota2-nbase:1.10
	bouyer-quota2:1.10.0.24
	bouyer-quota2-base:1.10
	matt-nb5-pq3:1.10.0.22
	matt-nb5-pq3-base:1.10
	netbsd-5-1:1.10.0.20
	netbsd-5-1-RELEASE:1.10
	netbsd-5-1-RC4:1.10
	netbsd-5-1-RC3:1.10
	netbsd-5-1-RC2:1.10
	netbsd-5-1-RC1:1.10
	netbsd-5-0-2-RELEASE:1.10
	netbsd-5-0-1-RELEASE:1.10
	jym-xensuspend-nbase:1.10
	netbsd-5-0:1.10.0.18
	netbsd-5-0-RELEASE:1.10
	netbsd-5-0-RC4:1.10
	netbsd-5-0-RC3:1.10
	netbsd-5-0-RC2:1.10
	jym-xensuspend:1.10.0.16
	jym-xensuspend-base:1.10
	netbsd-5-0-RC1:1.10
	netbsd-5:1.10.0.14
	netbsd-5-base:1.10
	yamt-pf42-base4:1.10
	yamt-pf42-base3:1.10
	hpcarm-cleanup-nbase:1.10
	yamt-pf42-base2:1.10
	yamt-pf42:1.10.0.12
	yamt-pf42-base:1.10
	mjf-devfs2:1.10.0.10
	mjf-devfs2-base:1.10
	keiichi-mipv6:1.10.0.8
	keiichi-mipv6-base:1.10
	mjf-devfs:1.10.0.6
	mjf-devfs-base:1.10
	cube-autoconf:1.10.0.4
	cube-autoconf-base:1.10
	hpcarm-cleanup:1.10.0.2
	hpcarm-cleanup-base:1.10
	netbsd-1-5-PATCH003:1.1.2.4
	netbsd-1-5-PATCH002:1.1.2.3
	netbsd-1-5-PATCH001:1.1.2.3
	netbsd-1-5-RELEASE:1.1.2.2
	netbsd-1-5-BETA2:1.1.2.2
	netbsd-1-5-BETA:1.1.2.2
	netbsd-1-5:1.1.0.2;
locks; strict;
comment	@# @;


1.10
date	2002.05.07.13.55.45;	author isaki;	state dead;
branches;
next	1.9;

1.9
date	2002.04.28.07.31.54;	author isaki;	state Exp;
branches;
next	1.8;

1.8
date	2002.03.28.04.33.25;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	2002.03.25.07.43.50;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	2002.01.07.04.47.10;	author minoura;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.07.06.57.50;	author minoura;	state Exp;
branches;
next	1.4;

1.4
date	2001.10.13.06.15.21;	author jmc;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.10.05.13.56;	author enami;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.01.07.58.02;	author garbled;	state Exp;
branches;
next	1.1;

1.1
date	2000.09.12.16.42.51;	author minoura;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2000.09.12.16.42.51;	author minoura;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2000.09.14.14.28.08;	author minoura;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2000.12.15.05.11.36;	author he;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2002.03.25.17.33.06;	author he;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Move common files into floppies/common directory.
 bootfloppy-common/Makefile.inc    -> common/Makefile.bootfloppy
 instkernel-common/Makefile.inc    -> common/Makefile.instkernel
 ramdisk-common/Makefile.inc       -> common/Makefile.ramdisk
 ramdisk-common/*                  -> common/*
@
text
@#	$NetBSD: Makefile.inc,v 1.9 2002/04/28 07:31:54 isaki Exp $

.include "${TOP}/Makefile.inc"

WARNS=1

MOUNT_POINT?=	/mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
IMAGE?=		xxx.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		list
CRUNCHCONF=	${CBIN}.conf
MTREECONF=	mtree.conf

CRUNCHGEN?=	crunchgen
MTREE?=		mtree

realall: ${IMAGE}

RAMDISKSIZE!=	expr ${RAMDISKSPT} \* ${RAMDISKCYLS} \* ${RAMDISKHEADS}
RAMDISKGEOM=	512/${RAMDISKSPT}/${RAMDISKHEADS}/${RAMDISKCYLS}

${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREECONF} ${LISTS}
	dd if=/dev/zero of=${IMAGE} count=${RAMDISKSIZE}
	vnconfig -v -c ${VND} ${IMAGE} ${RAMDISKGEOM}
	-disklabel ${VND} >tmplabel
	disklabel -r -R ${VND} tmplabel
	newfs -B be -m 0 -o space -i ${RAMDISKBPI} -c ${RAMDISKCPG} ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -U
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    KERNOBJDIR=${KERNOBJDIR} COMMONDIR=${TOP}/ramdisk-common \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND}
	-/bin/rm -f ${IMAGE}

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	${MAKE} -f ${CBIN}.mk all

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${_SRC_TOP_}/distrib/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CBIN}:	libhack.o

# Used in building bootfloppy
echoimage:
	@@echo ${.OBJDIR}/${IMAGE}

depend:

release:

clean cleandir distclean:
	if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi
	/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c tmplabel
@


1.9
log
@Fix path.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2002/03/28 04:33:25 lukem Exp $
@


1.8
log
@- Be consistent how libhack is used: If extra HACKOBJS (e.g., gethost.o) are
  required, define them before pulling in libhack/Makefile.inc so that the
  dependencies work correctly.
- Other minor cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2002/03/25 07:43:50 lukem Exp $
d56 1
a56 1
HACKSRC=	${DISTRIBDIR}/utils/libhack
@


1.7
log
@Disable libhack's gethost.o (replacement gethostby{name,addr}()) by default,
as they only support reading /etc/hosts, and its the "least useful" of
the libhack routines.  Add gethost.o back to Really Small media which
appears to need the space savings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2002/01/07 04:47:10 minoura Exp $
d55 4
a58 5
# Use size-reduced libhack.
${CBIN}: libhack.o

HACKSRC=${TOP}/../../utils/libhack
.include "${HACKSRC}/Makefile.inc"
@


1.6
log
@VND_CDEV -> VND.
Properly write disklabel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2001/12/07 06:57:50 minoura Exp $
a59 4

# turn off small gethostby* temporarily
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o localeconv.o perror.o setlocale.o strerror.o strsignal.o utmp.o yplib.o
DBG=	-Os
@


1.5
log
@Overhaul installation system.
 - Use new boot system.  Bootfloppies now use ustarfs.
 - Split instkernel.* directory from bootfloppy.*.
 - Adjust ramdisk size.
 - others.
2-floppy installation system cannot be compiled due to size bloat.
Disabled temporarily (?).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2001/10/13 06:15:21 jmc Exp $
a11 2
VND_CDEV=	/dev/${VND}c
VND_CRDEV=	/dev/r${VND}c
d29 3
a31 1
	vnconfig -v -c ${VND_CRDEV} ${IMAGE} ${RAMDISKGEOM}
d42 1
a42 1
	vnconfig -u ${VND_CRDEV}
d46 1
a46 1
	-vnconfig -u ${VND_RDEV}
d74 2
a75 1
	/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
@


1.4
log
@Add MTREE?= to add Makefiles and use  when running mtree
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2001/10/10 05:13:56 enami Exp $
d31 1
a31 1
	vnconfig -v -c ${VND_CDEV} ${IMAGE} ${RAMDISKGEOM}
d42 1
a42 1
	vnconfig -u ${VND_CDEV}
d46 1
a46 1
	-vnconfig -u ${VND_DEV}
@


1.3
log
@Use symbol MTREECONF instead of MTREE to refer configuration file
to avoid conflicts.  Pointed out by chs@@netbsd.org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2000/11/01 07:58:02 garbled Exp $
d22 1
d34 1
a34 1
	mtree -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -U
@


1.2
log
@Change all ocurrences of "crunchgen" to ${CRUNCHGEN}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2000/09/12 16:42:51 minoura Exp $
d19 1
a19 1
MTREE=		mtree.conf
d28 1
a28 1
${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS}
d33 1
a33 1
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -U
@


1.1
log
@Pull common files into newly created ramdisk-common directory.
@
text
@d1 1
a1 1
#	$NetBSD$
d21 2
d49 1
a49 1
	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@


1.1.2.1
log
@file Makefile.inc was added on branch netbsd-1-5 on 2000-09-14 14:28:08 +0000
@
text
@d1 71
@


1.1.2.2
log
@Pullup from the trunk; approved by thorpej.

> From: Minoura Makoto <minoura@@netbsd.org>
> Subject: CVS commit: basesrc
> To: source-changes@@netbsd.org
> Date: Tue, 12 Sep 2000 19:42:52 +0300 (EEST)
> Reply-To: minoura@@netbsd.org
>
>
> Module Name:	basesrc
> Committed By:	minoura
> Date:		Tue Sep 12 16:42:52 UTC 2000
>
> Modified Files:
> 	basesrc/distrib/x68k/floppies/ramdisk: Makefile list
> 	basesrc/distrib/x68k/floppies/ramdisk.sysinst: Makefile list
> Added Files:
> 	basesrc/distrib/x68k/floppies/ramdisk-common: Makefile.inc
> 	    disktab.preinstall installboot.sh termcap.vt
> Removed Files:
> 	basesrc/distrib/x68k/floppies/ramdisk: Makefile.inc disktab.preinstall
> 	    termcap.vt
> 	basesrc/distrib/x68k/floppies/ramdisk.sysinst: disktab.preinstall
> 	    installboot.sh termcap.vt
>
> Log Message:
> Pull common files into newly created ramdisk-common directory.
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.17 -r1.18 basesrc/distrib/x68k/floppies/ramdisk/Makefile
> cvs rdiff -r1.9 -r0 basesrc/distrib/x68k/floppies/ramdisk/Makefile.inc
> cvs rdiff -r1.1 -r0 basesrc/distrib/x68k/floppies/ramdisk/disktab.preinstall \
>     basesrc/distrib/x68k/floppies/ramdisk/termcap.vt
> cvs rdiff -r1.12 -r1.13 basesrc/distrib/x68k/floppies/ramdisk/list
> cvs rdiff -r0 -r1.1 basesrc/distrib/x68k/floppies/ramdisk-common/Makefile.inc \
>     basesrc/distrib/x68k/floppies/ramdisk-common/disktab.preinstall \
>     basesrc/distrib/x68k/floppies/ramdisk-common/installboot.sh \
>     basesrc/distrib/x68k/floppies/ramdisk-common/termcap.vt
> cvs rdiff -r1.9 -r1.10 basesrc/distrib/x68k/floppies/ramdisk.sysinst/Makefile
> cvs rdiff -r1.1 -r0 \
>     basesrc/distrib/x68k/floppies/ramdisk.sysinst/disktab.preinstall \
>     basesrc/distrib/x68k/floppies/ramdisk.sysinst/termcap.vt
> cvs rdiff -r1.5 -r0 \
>     basesrc/distrib/x68k/floppies/ramdisk.sysinst/installboot.sh
> cvs rdiff -r1.8 -r1.9 basesrc/distrib/x68k/floppies/ramdisk.sysinst/list
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
@
text
@a0 71
#	$NetBSD: Makefile.inc,v 1.1.2.1 2000/09/14 14:28:08 minoura Exp $

.include "${TOP}/Makefile.inc"

WARNS=1

MOUNT_POINT?=	/mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_CDEV=	/dev/${VND}c
VND_CRDEV=	/dev/r${VND}c
IMAGE?=		xxx.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		list
CRUNCHCONF=	${CBIN}.conf
MTREE=		mtree.conf

realall: ${IMAGE}

RAMDISKSIZE!=	expr ${RAMDISKSPT} \* ${RAMDISKCYLS} \* ${RAMDISKHEADS}
RAMDISKGEOM=	512/${RAMDISKSPT}/${RAMDISKHEADS}/${RAMDISKCYLS}

${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS}
	dd if=/dev/zero of=${IMAGE} count=${RAMDISKSIZE}
	vnconfig -v -c ${VND_CDEV} ${IMAGE} ${RAMDISKGEOM}
	newfs -B be -m 0 -o space -i ${RAMDISKBPI} -c ${RAMDISKCPG} ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -U
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    KERNOBJDIR=${KERNOBJDIR} COMMONDIR=${TOP}/ramdisk-common \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND_DEV}
	-/bin/rm -f ${IMAGE}

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	${MAKE} -f ${CBIN}.mk all

# Use size-reduced libhack.
${CBIN}: libhack.o

HACKSRC=${TOP}/../../utils/libhack
.include "${HACKSRC}/Makefile.inc"

# turn off small gethostby* temporarily
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o localeconv.o perror.o setlocale.o strerror.o strsignal.o utmp.o yplib.o
DBG=	-Os

# Used in building bootfloppy
echoimage:
	@@echo ${.OBJDIR}/${IMAGE}

depend:

release:

clean cleandir distclean:
	/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
@


1.1.2.3
log
@Pull up revision 1.2 (requested by minoura):
  Change all ocurrences of ``crunchgen'' to ${CRUNCHGEN}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.2.2 2000/12/15 05:11:36 he Exp $
a20 2
CRUNCHGEN?=	crunchgen

d47 1
a47 1
	${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@


1.1.2.4
log
@Apply patch (requested by he):
  Introduce dependency between ramdisk/miniroot construction and
  osrelease.sh, to better support UPDATE builds of releases.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.2.3 2002/03/25 17:33:06 he Exp $
d51 1
a51 1
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c ${VERDEP}
@
