head	1.52;
access;
symbols
	RELENG_8_4:1.52.0.2
	RELENG_9_1_0_RELEASE:1.50.2.1.4.2
	RELENG_9_1:1.50.2.1.0.4
	RELENG_9_1_BP:1.50.2.1
	RELENG_8_3_0_RELEASE:1.48.10.1.8.1
	RELENG_8_3:1.48.10.1.0.8
	RELENG_8_3_BP:1.48.10.1
	RELENG_9_0_0_RELEASE:1.50.2.1.2.1
	RELENG_9_0:1.50.2.1.0.2
	RELENG_9_0_BP:1.50.2.1
	RELENG_9:1.50.0.2
	RELENG_9_BP:1.50
	RELENG_7_4_0_RELEASE:1.48.14.1
	RELENG_8_2_0_RELEASE:1.48.10.1.6.1
	RELENG_7_4:1.48.0.14
	RELENG_7_4_BP:1.48
	RELENG_8_2:1.48.10.1.0.6
	RELENG_8_2_BP:1.48.10.1
	RELENG_8_1_0_RELEASE:1.48.10.1.4.1
	RELENG_8_1:1.48.10.1.0.4
	RELENG_8_1_BP:1.48.10.1
	RELENG_7_3_0_RELEASE:1.48.12.1
	RELENG_7_3:1.48.0.12
	RELENG_7_3_BP:1.48
	RELENG_8_0_0_RELEASE:1.48.10.1.2.1
	RELENG_8_0:1.48.10.1.0.2
	RELENG_8_0_BP:1.48.10.1
	RELENG_8:1.48.0.10
	RELENG_8_BP:1.48
	RELENG_7_2_0_RELEASE:1.48.8.1
	RELENG_7_2:1.48.0.8
	RELENG_7_2_BP:1.48
	RELENG_7_1_0_RELEASE:1.48.6.1
	RELENG_6_4_0_RELEASE:1.44.12.1
	RELENG_7_1:1.48.0.6
	RELENG_7_1_BP:1.48
	RELENG_6_4:1.44.0.12
	RELENG_6_4_BP:1.44
	RELENG_7_0_0_RELEASE:1.48
	RELENG_6_3_0_RELEASE:1.44
	RELENG_7_0:1.48.0.4
	RELENG_7_0_BP:1.48
	RELENG_6_3:1.44.0.10
	RELENG_6_3_BP:1.44
	RELENG_7:1.48.0.2
	RELENG_7_BP:1.48
	RELENG_6_2_0_RELEASE:1.44
	RELENG_6_2:1.44.0.8
	RELENG_6_2_BP:1.44
	RELENG_5_5_0_RELEASE:1.42.2.1
	RELENG_5_5:1.42.2.1.0.4
	RELENG_5_5_BP:1.42.2.1
	RELENG_6_1_0_RELEASE:1.44
	RELENG_6_1:1.44.0.6
	RELENG_6_1_BP:1.44
	RELENG_6_0_0_RELEASE:1.44
	RELENG_6_0:1.44.0.4
	RELENG_6_0_BP:1.44
	RELENG_6:1.44.0.2
	RELENG_6_BP:1.44
	RELENG_5_4_0_RELEASE:1.42.2.1
	RELENG_5_4:1.42.2.1.0.2
	RELENG_5_4_BP:1.42.2.1
	RELENG_4_11_0_RELEASE:1.27.2.7
	RELENG_4_11:1.27.2.7.0.10
	RELENG_4_11_BP:1.27.2.7
	RELENG_5_3_0_RELEASE:1.42
	RELENG_5_3:1.42.0.4
	RELENG_5_3_BP:1.42
	RELENG_5:1.42.0.2
	RELENG_5_BP:1.42
	RELENG_4_10_0_RELEASE:1.27.2.7
	RELENG_4_10:1.27.2.7.0.8
	RELENG_4_10_BP:1.27.2.7
	RELENG_5_2_1_RELEASE:1.39
	RELENG_5_2_0_RELEASE:1.39
	RELENG_5_2:1.39.0.2
	RELENG_5_2_BP:1.39
	RELENG_4_9_0_RELEASE:1.27.2.7
	RELENG_4_9:1.27.2.7.0.6
	RELENG_4_9_BP:1.27.2.7
	RELENG_5_1_0_RELEASE:1.38
	RELENG_5_1:1.38.0.2
	RELENG_5_1_BP:1.38
	RELENG_4_8_0_RELEASE:1.27.2.7
	RELENG_4_8:1.27.2.7.0.4
	RELENG_4_8_BP:1.27.2.7
	RELENG_5_0_0_RELEASE:1.37
	RELENG_5_0:1.37.0.2
	RELENG_5_0_BP:1.37
	RELENG_4_7_0_RELEASE:1.27.2.7
	RELENG_4_7:1.27.2.7.0.2
	RELENG_4_7_BP:1.27.2.7
	RELENG_4_6_2_RELEASE:1.27.2.6
	RELENG_4_6_1_RELEASE:1.27.2.6
	RELENG_4_6_0_RELEASE:1.27.2.6
	RELENG_4_6:1.27.2.6.0.4
	RELENG_4_6_BP:1.27.2.6
	RELENG_4_5_0_RELEASE:1.27.2.6
	RELENG_4_5:1.27.2.6.0.2
	RELENG_4_5_BP:1.27.2.6
	RELENG_4_4_0_RELEASE:1.27.2.4.2.1
	RELENG_4_4:1.27.2.4.0.2
	RELENG_4_4_BP:1.27.2.4
	RELENG_4_3_0_RELEASE:1.27.2.2
	RELENG_4_3:1.27.2.2.0.2
	RELENG_4_3_BP:1.27.2.2
	RELENG_4_2_0_RELEASE:1.27.2.1
	RELENG_4_1_1_RELEASE:1.27.2.1
	PRE_SMPNG:1.28
	RELENG_4_1_0_RELEASE:1.27.2.1
	RELENG_3_5_0_RELEASE:1.25.2.1
	RELENG_4_0_0_RELEASE:1.27
	RELENG_4:1.27.0.2
	RELENG_4_BP:1.27
	RELENG_3_4_0_RELEASE:1.25.2.1
	RELENG_3_3_0_RELEASE:1.25.2.1
	RELENG_3_2_PAO:1.25.0.4
	RELENG_3_2_PAO_BP:1.25
	RELENG_3_2_0_RELEASE:1.25
	RELENG_3_1_0_RELEASE:1.25
	RELENG_3:1.25.0.2
	RELENG_3_BP:1.25
	RELENG_2_2_8_RELEASE:1.17.2.1
	RELENG_3_0_0_RELEASE:1.21
	RELENG_2_2_7_RELEASE:1.17.2.1
	RELENG_2_2_6_RELEASE:1.17.2.1
	RELENG_2_2_5_RELEASE:1.17.2.1
	RELENG_2_2_2_RELEASE:1.17.2.1
	RELENG_2_2_1_RELEASE:1.17.2.1
	RELENG_2_2_0_RELEASE:1.17.2.1
	RELENG_2_1_7_RELEASE:1.11.4.8
	RELENG_2_1_6_1_RELEASE:1.11.4.7
	RELENG_2_1_6_RELEASE:1.11.4.7
	RELENG_2_2:1.17.0.2
	RELENG_2_2_BP:1.17
	RELENG_2_1_5_RELEASE:1.11.4.7
	RELENG_2_1_0:1.11.0.4;
locks; strict;
comment	@# @;


1.52
date	2012.12.30.18.06.16;	author svnexp;	state dead;
branches
	1.52.2.1;
next	1.51;

1.51
date	2012.11.17.01.49.48;	author svnexp;	state Exp;
branches;
next	1.50;

1.50
date	2011.05.14.01.53.38;	author attilio;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	2010.08.23.22.24.11;	author imp;	state Exp;
branches;
next	1.48;

1.48
date	2006.10.09.05.12.54;	author kmacy;	state Exp;
branches
	1.48.2.1
	1.48.6.1
	1.48.8.1
	1.48.10.1
	1.48.12.1
	1.48.14.1;
next	1.47;

1.47
date	2006.10.09.04.58.45;	author kmacy;	state Exp;
branches;
next	1.46;

1.46
date	2006.01.27.16.32.13;	author harti;	state Exp;
branches;
next	1.45;

1.45
date	2006.01.12.07.26.57;	author ru;	state Exp;
branches;
next	1.44;

1.44
date	2004.12.21.09.33.46;	author ru;	state Exp;
branches
	1.44.2.1
	1.44.12.1;
next	1.43;

1.43
date	2004.10.24.15.32.32;	author ru;	state Exp;
branches;
next	1.42;

1.42
date	2004.03.30.06.16.41;	author kuriyama;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2004.03.30.01.38.59;	author kuriyama;	state Exp;
branches;
next	1.40;

1.40
date	2004.02.23.20.07.47;	author johan;	state Exp;
branches;
next	1.39;

1.39
date	2003.11.02.08.39.08;	author marcel;	state Exp;
branches;
next	1.38;

1.38
date	2003.04.21.20.36.44;	author phk;	state Exp;
branches;
next	1.37;

1.37
date	2002.10.31.05.43.49;	author nyan;	state Exp;
branches;
next	1.36;

1.36
date	2002.10.29.12.13.36;	author phk;	state Exp;
branches;
next	1.35;

1.35
date	2002.10.27.00.21.02;	author peter;	state Exp;
branches;
next	1.34;

1.34
date	2002.10.23.20.02.33;	author phk;	state Exp;
branches;
next	1.33;

1.33
date	2002.10.23.19.52.32;	author phk;	state Exp;
branches;
next	1.32;

1.32
date	2002.10.22.09.13.02;	author phk;	state Exp;
branches;
next	1.31;

1.31
date	2002.05.13.12.00.45;	author ru;	state Exp;
branches;
next	1.30;

1.30
date	2001.03.27.17.27.00;	author ru;	state Exp;
branches;
next	1.29;

1.29
date	2000.09.16.13.42.51;	author phk;	state Exp;
branches;
next	1.28;

1.28
date	2000.03.29.15.10.27;	author kato;	state Exp;
branches;
next	1.27;

1.27
date	2000.01.14.07.57.27;	author rgrimes;	state Exp;
branches
	1.27.2.1;
next	1.26;

1.26
date	99.08.28.00.04.28;	author peter;	state Exp;
branches;
next	1.25;

1.25
date	98.12.31.02.35.43;	author jkh;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	98.12.30.13.29.11;	author jkh;	state Exp;
branches;
next	1.23;

1.23
date	98.12.30.12.06.07;	author bde;	state Exp;
branches;
next	1.22;

1.22
date	98.12.30.11.26.24;	author bde;	state Exp;
branches;
next	1.21;

1.21
date	98.10.06.11.57.08;	author dfr;	state Exp;
branches;
next	1.20;

1.20
date	97.02.22.15.06.25;	author peter;	state Exp;
branches;
next	1.19;

1.19
date	97.01.23.06.28.59;	author obrien;	state Exp;
branches;
next	1.18;

1.18
date	97.01.14.06.09.05;	author jkh;	state Exp;
branches;
next	1.17;

1.17
date	96.08.30.01.47.56;	author peter;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	96.06.23.13.11.51;	author bde;	state Exp;
branches;
next	1.15;

1.15
date	96.05.07.23.18.43;	author wosch;	state Exp;
branches;
next	1.14;

1.14
date	96.03.18.15.15.42;	author jkh;	state Exp;
branches;
next	1.13;

1.13
date	96.03.17.23.20.08;	author joerg;	state Exp;
branches;
next	1.12;

1.12
date	96.03.17.19.02.07;	author peter;	state Exp;
branches;
next	1.11;

1.11
date	95.05.10.05.57.01;	author phk;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	95.05.04.07.00.52;	author phk;	state Exp;
branches;
next	1.9;

1.9
date	95.05.03.06.30.47;	author phk;	state Exp;
branches;
next	1.8;

1.8
date	95.05.01.08.08.02;	author jkh;	state Exp;
branches;
next	1.7;

1.7
date	95.04.30.22.51.02;	author phk;	state Exp;
branches;
next	1.6;

1.6
date	95.04.30.06.19.32;	author phk;	state Exp;
branches;
next	1.5;

1.5
date	95.04.30.06.09.23;	author phk;	state Exp;
branches;
next	1.4;

1.4
date	95.04.29.07.21.09;	author phk;	state Exp;
branches;
next	1.3;

1.3
date	95.04.29.04.00.52;	author phk;	state Exp;
branches;
next	1.2;

1.2
date	95.04.29.01.55.15;	author phk;	state Exp;
branches;
next	1.1;

1.1
date	95.04.28.23.56.56;	author phk;	state Exp;
branches;
next	;

1.52.2.1
date	2012.12.30.18.06.16;	author svnexp;	state dead;
branches;
next	1.52.2.2;

1.52.2.2
date	2013.03.28.13.03.13;	author svnexp;	state Exp;
branches;
next	;

1.50.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.50.2.1.2.1
	1.50.2.1.4.1;
next	1.50.2.2;

1.50.2.2
date	2012.11.17.11.36.22;	author svnexp;	state Exp;
branches;
next	;

1.50.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.50.2.1.2.2;

1.50.2.1.2.2
date	2012.11.17.08.36.23;	author svnexp;	state Exp;
branches;
next	;

1.50.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.50.2.1.4.2;

1.50.2.1.4.2
date	2012.11.17.08.47.12;	author svnexp;	state Exp;
branches;
next	;

1.48.2.1
date	2012.11.17.08.02.40;	author svnexp;	state Exp;
branches;
next	;

1.48.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.48.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.48.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.48.10.1.2.1
	1.48.10.1.4.1
	1.48.10.1.6.1
	1.48.10.1.8.1;
next	1.48.10.2;

1.48.10.2
date	2012.11.17.10.36.07;	author svnexp;	state Exp;
branches;
next	;

1.48.10.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.48.10.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.48.10.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.48.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.48.10.1.8.2;

1.48.10.1.8.2
date	2012.11.17.08.24.48;	author svnexp;	state Exp;
branches;
next	;

1.48.12.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.48.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.48.14.2;

1.48.14.2
date	2012.11.17.08.16.47;	author svnexp;	state Exp;
branches;
next	;

1.44.2.1
date	2012.11.17.07.40.22;	author svnexp;	state Exp;
branches;
next	;

1.44.12.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.42.2.1
date	2005.02.13.07.23.12;	author obrien;	state Exp;
branches;
next	;

1.27.2.1
date	2000.04.01.13.07.44;	author nyan;	state Exp;
branches;
next	1.27.2.2;

1.27.2.2
date	2001.03.04.20.18.36;	author markm;	state Exp;
branches;
next	1.27.2.3;

1.27.2.3
date	2001.04.25.10.04.27;	author ru;	state Exp;
branches;
next	1.27.2.4;

1.27.2.4
date	2001.05.13.20.16.32;	author jkh;	state Exp;
branches
	1.27.2.4.2.1;
next	1.27.2.5;

1.27.2.5
date	2001.09.18.06.47.30;	author jkh;	state Exp;
branches;
next	1.27.2.6;

1.27.2.6
date	2001.12.30.09.56.12;	author phk;	state Exp;
branches;
next	1.27.2.7;

1.27.2.7
date	2002.07.19.18.46.26;	author ru;	state Exp;
branches;
next	1.27.2.8;

1.27.2.8
date	2012.11.17.07.23.53;	author svnexp;	state Exp;
branches;
next	;

1.27.2.4.2.1
date	2001.09.18.15.16.21;	author murray;	state Exp;
branches;
next	;

1.25.2.1
date	99.08.29.14.56.39;	author peter;	state Exp;
branches;
next	;

1.17.2.1
date	97.01.24.21.08.27;	author jkh;	state Exp;
branches;
next	1.17.2.2;

1.17.2.2
date	99.09.05.11.16.58;	author peter;	state Exp;
branches;
next	;

1.11.4.1
date	96.03.17.19.04.07;	author peter;	state Exp;
branches;
next	1.11.4.2;

1.11.4.2
date	96.03.17.23.25.31;	author joerg;	state Exp;
branches;
next	1.11.4.3;

1.11.4.3
date	96.03.22.20.02.41;	author nate;	state Exp;
branches;
next	1.11.4.4;

1.11.4.4
date	96.05.28.22.51.06;	author jkh;	state Exp;
branches;
next	1.11.4.5;

1.11.4.5
date	96.06.03.05.11.36;	author jkh;	state Exp;
branches;
next	1.11.4.6;

1.11.4.6
date	96.06.05.02.52.27;	author jkh;	state Exp;
branches;
next	1.11.4.7;

1.11.4.7
date	96.07.09.12.18.58;	author jkh;	state Exp;
branches;
next	1.11.4.8;

1.11.4.8
date	97.02.07.03.24.09;	author jkh;	state Exp;
branches;
next	1.11.4.9;

1.11.4.9
date	99.09.05.11.18.34;	author peter;	state Exp;
branches;
next	;


desc
@@


1.52
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244865
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/lib/libdisk/Makefile 221869 2011-05-14 01:53:38Z attilio $

.if ${MACHINE_CPUARCH} == "ia64"
_open_disk=	open_ia64_disk.c
.else
_change	=	change.c
_open_disk=	open_disk.c
.endif

LIB=	disk
SRCS=	blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \
	rules.c write_disk.c 
SRCS+=  write_${MACHINE}_disk.c

INCS=	libdisk.h

WARNS?=	2

CFLAGS+=	-I${.CURDIR}/../../sys/geom

.if ${MACHINE} == "pc98"
CFLAGS+=	-DPC98
.endif

CLEANFILES+=	tmp.c tst01 tst01.o
NO_PROFILE=
NO_PIC=

MAN=		libdisk.3

.include <bsd.lib.mk>

tst01: tst01.o libdisk.a
	cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a

ad0:	all install tst01
	./tst01 ad0

da0:	all install tst01
	./tst01 da0

da1:	all install tst01
	./tst01 da1
@


1.52.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:13 +0000
@
text
@d1 43
@


1.52.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 47
# $FreeBSD: releng/8.4/lib/libdisk/Makefile 163149 2006-10-09 05:12:54Z kmacy $

.if ${MACHINE_ARCH} == "ia64"
_open_disk=	open_ia64_disk.c
.else
_change	=	change.c
_open_disk=	open_disk.c
.endif

LIB=	disk
SRCS=	blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \
	rules.c write_disk.c 
.if ${MACHINE} == "sun4v"
SRCS+=  write_sparc64_disk.c
.else
SRCS+=  write_${MACHINE}_disk.c
.endif

INCS=	libdisk.h

WARNS?=	2

CFLAGS+=	-I${.CURDIR}/../../sys/geom

.if ${MACHINE} == "pc98"
CFLAGS+=	-DPC98
.endif

CLEANFILES+=	tmp.c tst01 tst01.o
NO_PROFILE=
NO_PIC=

MAN=		libdisk.3

.include <bsd.lib.mk>

tst01: tst01.o libdisk.a
	cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a

ad0:	all install tst01
	./tst01 ad0

da0:	all install tst01
	./tst01 da0

da1:	all install tst01
	./tst01 da1
@


1.51
log
@Switching exporter and resync
@
text
@@


1.50
log
@SVN rev 221869 on 2011-05-14 01:53:38Z by attilio

Disconnect sun4v architecture from the three.

Some files keep the SUN4V tags as a code reference, for the future,
if any rewamped sun4v support wants to be added again.

Reviewed by:	marius
Tested by:	sbruno
Approved by:	re
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.50.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.50.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/lib/libdisk/Makefile 221869 2011-05-14 01:53:38Z attilio $
@


1.50.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.50.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/lib/libdisk/Makefile 221869 2011-05-14 01:53:38Z attilio $
@


1.50.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.50.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/lib/libdisk/Makefile 221869 2011-05-14 01:53:38Z attilio $
@


1.49
log
@SVN rev 211725 on 2010-08-23 22:24:11Z by imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
@
text
@a12 3
.if ${MACHINE} == "sun4v"
SRCS+=  write_sparc64_disk.c
.else
a13 1
.endif
@


1.48
log
@unbreak build for sparc64 etc.
TARGET won't be defined on non subarches

Approved by: rwatson (mentor)
Reviewed by: jmg
@
text
@d3 1
a3 1
.if ${MACHINE_ARCH} == "ia64"
@


1.48.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/lib/libdisk/Makefile 163149 2006-10-09 05:12:54Z kmacy $
@


1.48.14.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.48.14.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/lib/libdisk/Makefile 163149 2006-10-09 05:12:54Z kmacy $
@


1.48.12.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.48.10.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.48.10.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/lib/libdisk/Makefile 163149 2006-10-09 05:12:54Z kmacy $
@


1.48.10.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.48.10.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/lib/libdisk/Makefile 163149 2006-10-09 05:12:54Z kmacy $
@


1.48.10.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.48.10.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.48.10.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.48.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.48.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.47
log
@buildworld fixes for sun4v
not sure why pmap.c is included as it is unchanged

Approved by: rwatson (mentor)
Reviewed by: jmg
@
text
@d13 1
a13 1
.if ${TARGET} == "sun4v"
@


1.46
log
@Revert 1.45 now that snmp_hostres uses libgeom.
@
text
@d12 7
a18 1
	rules.c write_disk.c write_${MACHINE}_disk.c
@


1.45
log
@Build shared library on behalf of bsnmpd.
@
text
@d25 1
@


1.44
log
@NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
@
text
@a24 1
NO_PIC=
@


1.44.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/lib/libdisk/Makefile 139106 2004-12-21 09:33:47Z ru $
@


1.44.12.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.43
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d24 2
a25 2
NOPROFILE=
NOPIC=
@


1.42
log
@Down to WARNS=2 for a while.
@
text
@d24 2
a25 2
NOPROFILE=	yes
NOPIC=		yes
@


1.42.2.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d24 2
a25 2
NOPROFILE=
NOPIC=
@


1.41
log
@Make libdisk WARNS=4 clean.

Glanced by:	jhb
@
text
@d15 1
a15 1
WARNS?=	4
@


1.40
log
@style.Makefile:
	Use WARNS?= instead of WARNS=.
@
text
@d15 1
a15 1
WARNS?=	2
@


1.39
log
@o  Move Int_Open_Disk() from disk.c to open_disk.c for use by all
   platforms except ia64 and use Int_Open_Disk() in open_ia64_disk.c
   on ia64. We need to know more than GEOM can provide us so we're
   forced to read from the disk. Move uuid_type() to open_ia64_disk.c
   and remove all references on non-ia64.
o  Pass the GEOM conftxt to Int_Open_Disk() so that only Open_Disk()
   needs to know about GEOM and libdisk can more easily be used with
   media not handled by GEOM.
o  Create an ia64 specific definiton of struct disk on ia64, because
   we don't need/have most of the fields other platforms need and
   other fields not applicable on platforms other than ia64.
o  Do not compile change.c on ia64. It's too PC specific.
o  In Fixup_Names() in create_chunk.c, try all partition numbers
   that are valid for the GPT disk. We have the total number of
   partitions that can be allocated in the disk structure on ia64.
   Also, use the GPT partition naming if we're creating one under
   a chunk of type "whole". It's a GPT partition in that case.
o  In Create_Chunk(), compile-out the PC specific code on ia64 that
   checks BIOS geometry restrictions.
o  In Debug_Disk() in disk.c, dump the ia64 specific fields.
o  Save the partition index in the chunk on ia64 so that we can
   preserve it when we write the data back to disk. This avoids that
   partitions get moved around or swapped after installing FreeBSD,
   which may render a disk unusable.
@
text
@d15 1
a15 1
WARNS=	2
@


1.38
log
@Update libdisk to use the explicing encoding function for sunlabel data
structures.
@
text
@d3 7
d11 2
a12 2
SRCS=	blocks.c chunk.c disk.c change.c \
	create_chunk.c rules.c write_disk.c write_${MACHINE}_disk.c
@


1.37
log
@Use ${MACHINE} variable instead of using '.if .endif' each machines.
@
text
@d10 2
@


1.36
log
@Since make release is toast anyway, add wood to the pyre:

This significantly rewamps libdisks discovery of existing disk
layout.

Please send me reports if this does not work as expected on
i386 or sparc64 platforms.

I need to sort out alpha, pc98 and ia64 (in that order) before
testing on those platforms make a lot of sense.

Belived to work for:	i386 sparc64
Unknown state:		pc98 alpha ia64
@
text
@d5 1
a5 1
	create_chunk.c rules.c write_disk.c
a11 17
SRCS	+=	write_pc98_disk.c
.endif

.if ${MACHINE} == "i386"
SRCS	+=	write_i386_disk.c
.endif

.if ${MACHINE_ARCH} == "ia64"
SRCS	+=	write_ia64_disk.c
.endif

.if ${MACHINE_ARCH} == "alpha"
SRCS	+=	write_alpha_disk.c
.endif

.if ${MACHINE_ARCH} == "sparc64"
SRCS	+=	write_sparc64_disk.c
@


1.35
log
@Add back ia64 support that was removed in the last few revisions.
I've cloned write_ia64_disk.c from write_i386_disk.c.
@
text
@d27 4
d41 9
@


1.34
log
@Remove unnecessary ioctls tickling kernel side to realize that we fiddled
with the disk.  GEOM will automatically retaste when we closet he filedesc.
@
text
@d19 5
a23 1
.if ${MACHINE} == "alpha"
@


1.33
log
@Untangle #ifdefs in the write-end of things by giving each arch its
own file and own copy of WriteDisk() to do things in.

This should have happened years ago, instead of adding #ifdefs all
over the place.
@
text
@d7 1
@


1.32
log
@Swing the weed-whacker around libdisk:

Constify some things.
Staticize some things.
Remove some unused things.
Prototype some things.
Don't install a gazillion man-pages links.
Drop support for ON-TRACK disk-manager.
@
text
@d7 1
a8 1
CFLAGS+= 	-Wall
d11 1
d13 9
@


1.31
log
@NOSHARED is meaningless in the bsd.lib.mk context.
@
text
@d4 1
a4 1
SRCS=	blocks.c disklabel.c chunk.c disk.c change.c \
a16 27
MLINKS+=	libdisk.3 Open_Disk.3 \
		libdisk.3 Clone_Disk.3 \
		libdisk.3 Free_Disk.3 \
		libdisk.3 Debug_Disk.3 \
		libdisk.3 Set_Bios_Geom.3 \
		libdisk.3 Delete_Chunk.3 \
		libdisk.3 Collapse_Disk.3 \
		libdisk.3 Collapse_Chunk.3 \
		libdisk.3 Create_Chunk.3 \
		libdisk.3 All_FreeBSD.3 \
		libdisk.3 CheckRules.3 \
		libdisk.3 Disk_Names.3 \
		libdisk.3 Set_Boot_Mgr.3 \
		libdisk.3 Set_Boot_Blocks.3 \
		libdisk.3 Write_Disk.3 \
		libdisk.3 Cyl_Aligned.3 \
		libdisk.3 Next_Cyl_Aligned.3 \
		libdisk.3 Prev_Cyl_Aligned.3 \
		libdisk.3 Track_Aligned.3 \
		libdisk.3 Next_Track_Aligned.3 \
		libdisk.3 Prev_Track_Aligned.3 \
		libdisk.3 Create_Chunk_DWIM.3 \
		libdisk.3 MakeDev.3 \
		libdisk.3 MakeDevDisk.3 \
		libdisk.3 ShowChunkFlags.3 \
		libdisk.3 ChunkCanBeRoot.3 \
		libdisk.3 slice_type_name.3
@


1.30
log
@MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.29 2000/09/16 13:42:51 phk Exp $
a13 1
NOSHARED=	yes
@


1.29
log
@Turn dkcksum() into an __inline function.

Change its type to u_int_16_t.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.28 2000/03/29 15:10:27 kato Exp $
d17 1
a17 1
MAN3=		libdisk.3
@


1.28
log
@Changes for PC-98.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.27 2000/01/14 07:57:27 rgrimes Exp $
d4 1
a4 1
SRCS=	blocks.c disklabel.c dkcksum.c chunk.c disk.c change.c \
a12 1
VPATH=		${.CURDIR}/../../sbin/disklabel
@


1.27
log
@Replace beforeinstall target with new variables used by .mk system.

Reviewed by:	marcel, and make world
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.26 1999/08/28 00:04:28 peter Exp $
d9 3
@


1.27.2.1
log
@MFC: Supported PC-98.
@
text
@d1 1
a1 1
# $FreeBSD$
a8 3
.if ${MACHINE} == "pc98"
CFLAGS+=	-DPC98
.endif
@


1.27.2.2
log
@Yet another repair to "make world".

MFC: file removed when sbin/disklabel was MFC'd (.path: problem).
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.27.2.1 2000/04/01 13:07:44 nyan Exp $
d4 1
a4 1
SRCS=	blocks.c disklabel.c chunk.c disk.c change.c \
@


1.27.2.3
log
@MFC: MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.27.2.2 2001/03/04 20:18:36 markm Exp $
d18 1
a18 1
MAN=		libdisk.3
@


1.27.2.4
log
@*** empty log message ***
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.27.2.3 2001/04/25 10:04:27 ru Exp $
d13 1
@


1.27.2.4.2.1
log
@MFS: Don't use kern.disks sysctl.

     Makefile (rev 1.27.2.5)
     disk.c (rev 1.50.2.14)
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.27.2.5 2001/09/18 06:47:30 jkh Exp $
d8 1
a8 2
# Remove KERN_DISKS_BROKEN when kern.disks sysctl returns disks in sorted order
CFLAGS+= 	-Wall -DKERN_DISKS_BROKEN
@


1.27.2.5
log
@Temporarily disable the use of kern.disks - it returns the disk
devices in the wrong order and causes them to be displayed out of
sequence in sysinstall.  The right fix is to sort that info in the
kernel, this is just a stop-gap measure which falls back to the code
which always ran prior to kern.disks existing.  This deliberately
not committed to -current because we have aple time to pursue the
right fix in that branch.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libdisk/Makefile,v 1.27.2.4 2001/05/13 20:16:32 jkh Exp $
d8 1
a8 2
# Remove KERN_DISKS_BROKEN when kern.disks sysctl returns disks in sorted order
CFLAGS+= 	-Wall -DKERN_DISKS_BROKEN
@


1.27.2.6
log
@MFC: sort disk name in libdisk and use the proper interface to the kernel.

Approved by:	re
@
text
@d1 1
a1 1
# $FreeBSD$
d9 1
a9 1
CFLAGS+= 	-Wall
@


1.27.2.7
log
@MFC: new bsd.lib.mk API.
@
text
@d15 1
@


1.27.2.8
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/lib/libdisk/Makefile 100377 2002-07-19 18:46:30Z ru $
@


1.26
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d6 1
a44 5

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/libdisk.h \
	    ${DESTDIR}/usr/include/libdisk.h

@


1.25
log
@Eliminate all dependence on boot1 and boot2.  This is passed in by
Set_Boot_Blocks() anyway and should thus have never been a part of
libdisk, it should have been provided by the client of libdisk since
passing the information in is already part of the API.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.24 1998/12/30 13:29:11 jkh Exp $
@


1.25.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.24
log
@Transition libdisk to use /boot since what it's looking for (boot1 and boot2)
are now there.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.23 1998/12/30 12:06:07 bde Exp $
d5 1
a5 1
	create_chunk.c rules.c write_disk.c data.c
d8 1
a8 1
CLEANFILES+=	tmp.c tst01 tst01.o data.c
a43 16

BOOTS=/boot

.if ${MACHINE_ARCH} == "i386"
data.c:	${.CURDIR}/libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
	file2c 'const unsigned char boot1[] = {' '};' \
                < ${BOOTS}/boot1 > tmp.c
	file2c 'const unsigned char boot2[] = {' '};' \
                < ${BOOTS}/boot2 >> tmp.c
	mv -f tmp.c data.c
.elif ${MACHINE_ARCH} == "alpha"
data.c:	${.CURDIR}/libdisk.h ${BOOTS}/boot1
	file2c 'const unsigned char boot1[] = {' '};' \
                < ${BOOTS}/boot1 > tmp.c
	mv -f tmp.c data.c
.endif
@


1.23
log
@Backed out previous commit.  It depends on a.out utilities and libraries
somehow being available even on pure elf systems.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.22 1998/12/30 11:26:24 bde Exp $
d45 1
a45 1
BOOTS=/usr/mdec
@


1.22
log
@Fixed bootstrapping of /usr/mdec/boot[12].
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.21 1998/10/06 11:57:08 dfr Exp $
d45 1
a45 1
BOOTS=	${DESTDIR}/usr/mdec
@


1.21
log
@Teach libdisk about alpha boot blocks.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.20 1997/02/22 15:06:25 peter Exp $
d45 1
a45 1
BOOTS=/usr/mdec
@


1.20
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a1 1
#	$Id$
d47 1
d54 6
@


1.19
log
@Adds slice_type_name() which extends chunk_n[] for subtype's too.

Curorary review by:	phk
@
text
@d1 1
a1 1
#	$FreeBSD$
@


1.18
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d40 2
a41 1
		libdisk.3 ChunkCanBeRoot.3
@


1.17
log
@cmp -s || install -c ==> install -C
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.16 1996/06/23 13:11:51 bde Exp $
@


1.17.2.1
log
@Merge slicing naming changes from -current.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.17 1996/08/30 01:47:56 peter Exp $
d40 1
a40 2
		libdisk.3 ChunkCanBeRoot.3 \
		libdisk.3 slice_type_name.3
@


1.17.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.16
log
@Removed -g from CFLAGS.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.15 1996/05/07 23:18:43 wosch Exp $
d54 1
a54 4
	@@${ECHO} installing libdisk.h
	@@cd ${.CURDIR}; \
	cmp -s libdisk.h ${DESTDIR}/usr/include/libdisk.h || \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 libdisk.h \
@


1.15
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d1 1
a1 1
#	$Id: $
d7 1
a7 1
CFLAGS+= 	-Wall -g
@


1.14
log
@Fix bogus MLINKS line.  When is the old libdisk going to go away, BTW?
@
text
@d1 2
d51 1
a51 1
	mv tmp.c data.c
@


1.13
log
@libdisk is now `adult':

. install libdisk.h into /usr/include
. add a (preliminary) manpage, mostly featured after phk's comments
  in libdisk.h
@
text
@d13 1
a13 2
MLINKS+=	libdisk.3 \
		libdisk.3 Open_Disk.3 \
@


1.12
log
@Repository copy src/release/libdisk to src/lib/libdisk as per recent
discussion on -core about disk partitioning tools etc.

Add NOPIC=yes to Makefile to prevent any possibility of version mismatch
because of the potential grave consequences. (as suggested by phk)

Note that this is also on RELENG_2_1_0, since the sysinstall stuff is
hopefully going to remain in sync.
@
text
@d12 29
d45 1
a45 1
data.c:	libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
d51 8
@


1.11
log
@Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies.
@
text
@d10 1
@


1.11.4.1
log
@Add NOPIC=yes, as per HEAD to avoid any chance of version mismatches
and the dire consequences.
@
text
@a9 1
NOPIC=		yes
@


1.11.4.2
log
@Bring over rev 1.13 from HEAD.
@
text
@a11 29
MAN3=		libdisk.3
MLINKS+=	libdisk.3 \
		libdisk.3 Open_Disk.3 \
		libdisk.3 Clone_Disk.3 \
		libdisk.3 Free_Disk.3 \
		libdisk.3 Debug_Disk.3 \
		libdisk.3 Set_Bios_Geom.3 \
		libdisk.3 Delete_Chunk.3 \
		libdisk.3 Collapse_Disk.3 \
		libdisk.3 Collapse_Chunk.3 \
		libdisk.3 Create_Chunk.3 \
		libdisk.3 All_FreeBSD.3 \
		libdisk.3 CheckRules.3 \
		libdisk.3 Disk_Names.3 \
		libdisk.3 Set_Boot_Mgr.3 \
		libdisk.3 Set_Boot_Blocks.3 \
		libdisk.3 Write_Disk.3 \
		libdisk.3 Cyl_Aligned.3 \
		libdisk.3 Next_Cyl_Aligned.3 \
		libdisk.3 Prev_Cyl_Aligned.3 \
		libdisk.3 Track_Aligned.3 \
		libdisk.3 Next_Track_Aligned.3 \
		libdisk.3 Prev_Track_Aligned.3 \
		libdisk.3 Create_Chunk_DWIM.3 \
		libdisk.3 MakeDev.3 \
		libdisk.3 MakeDevDisk.3 \
		libdisk.3 ShowChunkFlags.3 \
		libdisk.3 ChunkCanBeRoot.3

d16 1
a16 1
data.c:	${.CURDIR}/libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
a21 8

beforeinstall:
	@@${ECHO} installing libdisk.h
	@@cd ${.CURDIR}; \
	cmp -s libdisk.h ${DESTDIR}/usr/include/libdisk.h || \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 libdisk.h \
	    ${DESTDIR}/usr/include/libdisk.h

@


1.11.4.3
log
@Bring in from the HEAD

revision 1.14
date: 1996/03/18 15:15:42;  author: jkh;  state: Exp;  lines: +1 -2
Fix bogus MLINKS line.
@
text
@d13 2
a14 1
MLINKS+=	libdisk.3 Open_Disk.3 \
@


1.11.4.4
log
@Merge from HEAD.
@
text
@a0 2
#	$Id: Makefile,v 1.15 1996/05/07 23:18:43 wosch Exp $

d49 1
a49 1
	mv -f tmp.c data.c
@


1.11.4.5
log
@Phase 2 of merge - also fix things broken in phase 1.
Watch out for falling rock until phase 3 is over!

libc completely merged except for phkmalloc & rfork (don't know if David
wants that).

Some include files in sys/ had to be updated in order to bring in libc.
@
text
@d1 1
a1 5
#	$Id: Makefile,v 1.11.4.4 1996/05/28 22:51:06 jkh Exp $

#	$Id$

#	$Id$
@


1.11.4.6
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d3 4
@


1.11.4.7
log
@Merge.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11.4.6 1996/06/05 02:52:27 jkh Exp $
d7 1
a7 1
CFLAGS+= 	-Wall
@


1.11.4.8
log
@Merge from -current.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11.4.7 1996/07/09 12:18:58 jkh Exp $
d40 1
a40 2
		libdisk.3 ChunkCanBeRoot.3 \
		libdisk.3 slice_type_name.3
@


1.11.4.9
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.10
log
@Make the partitions names even more sensible
CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
@
text
@d15 1
a15 1
data.c:
@


1.9
log
@Make the target for tst01 more sensible.
Remove bogus targets.
Allocate partition letters as follows:
	lowest offset "flags & CHUNK_IS_ROOT" gets 'a',
	lowest offset "subtype==FS_SWAP" gets 'b'
	the rest is allocated in offset order from this sequence "defghab".
This will generally make sense.
Added rules to complain if more than one CHUNK_IS_ROOT or more than one
FS_SWAP per FreeBSD chunk.
Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk.
Run Fixup_Names in Open_Disk.
@
text
@d6 1
a6 1
CLEANFILES+=	tmp.c tst01 tst01.o
@


1.8
log
@Stick a more BSD-like Makefile here so that I can link to the library.
@
text
@d13 1
a13 13
# Custom weird and funky targets that we'll leave here.
test:	tst01
	cp tst01 /0
	./tst01 wd1

fd:	tst01
	-umount /dev/fd1
	-umount /mnt
	mount /dev/fd1 /mnt
	strip tst01
	gzip < tst01 > /mnt/stand/disklayout
	chmod 755 /mnt/stand/disklayout
	-umount /mnt
a14 1
BOOTS=/usr/mdec
d22 2
a23 2
tst01: tst01.o
	cc ${CFLAGS} -static tst01.o -o tst01 -L${.CURDIR} -ldisk
@


1.7
log
@Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).
Get the CHS's right.
Get the disklabels (more) right.
@
text
@d1 9
a9 4
.PATH:	/usr/src/sbin/disklabel
OBJS=	tst01.o blocks.o disklabel.o dkcksum.o chunk.o disk.o change.o \
	create_chunk.o rules.o write_disk.o data.o
CFLAGS+= -Wall -g
d11 1
a11 1
all:	tst01
d13 1
d28 1
a28 1
data.o:
d33 1
a33 2
	cc ${CFLAGS} -o data.o -c tmp.c
	rm -f tmp.c
d35 2
a36 6
tst01:	${OBJS}
	#cc ${CFLAGS} -DREADLINE -static -o tst01 ${OBJS} -lreadline -ltermcap 
	cc ${CFLAGS} -static -o tst01 ${OBJS}

clean:
	rm -f *.o *.core tst01 tmp.c
@


1.6
log
@Make the default case less scary :-)
@
text
@d28 1
d35 1
a35 1
	rm -f *.o *.core tst01
@


1.5
log
@Now we do writes too.
@
text
@d6 2
@


1.4
log
@Names are assigned when chunks are created.
Rules for only one fat & one extended in MBR.
@
text
@d3 1
a3 1
	create_chunk.o rules.o write_disk.o
d10 17
d28 2
a29 1
	cc ${CFLAGS} -static -o tst01 ${OBJS} -lreadline -ltermcap 
@


1.3
log
@Next Iteration, getting better.
Made an All_FreeBSD() function.
Added a cmd-line interface (lowest rank) to the tst01 program.
The tst01 program is harmless (worst it can do is coredump), but it
is instructive to run, you can see what the slice-code things of your
disk...
@
text
@d3 1
a3 1
	create_chunk.o rules.o
d8 1
a8 1
	./tst01 sd0 
@


1.2
log
@Sanitize and explain a little bit...  Implement the first rules...
@
text
@d4 1
a4 1
CFLAGS+= -Wall
d11 4
a14 1
	cc ${CFLAGS} -static -o tst01 ${OBJS}
@


1.1
log
@This is a revision 0.00 of the backend stuff for the fdisk/disklabel stuff
in the new sysinstall.  If you want to give a helping hand, then send email
to phk@@FreeBSD.ORG.  DO NOT COMMIT TO THIS DIRECTORY!
@
text
@d3 1
a3 1
	create_chunk.o
@
