head	1.29;
access;
symbols
	RELENG_8_4:1.28.0.2
	RELENG_9_1_0_RELEASE:1.25.2.2.2.2
	RELENG_9_1:1.25.2.2.0.2
	RELENG_9_1_BP:1.25.2.2
	RELENG_8_3_0_RELEASE:1.22.2.3.2.1
	RELENG_8_3:1.22.2.3.0.2
	RELENG_8_3_BP:1.22.2.3
	RELENG_9_0_0_RELEASE:1.25.2.1.2.1
	RELENG_9_0:1.25.2.1.0.2
	RELENG_9_0_BP:1.25.2.1
	RELENG_9:1.25.0.2
	RELENG_9_BP:1.25
	RELENG_8_2_0_RELEASE:1.22.2.2.2.1
	RELENG_8_2:1.22.2.2.0.2
	RELENG_8_2_BP:1.22.2.2
	RELENG_8_1_0_RELEASE:1.22.2.1.4.1
	RELENG_8_1:1.22.2.1.0.4
	RELENG_8_1_BP:1.22.2.1
	RELENG_8_0_0_RELEASE:1.22.2.1.2.1
	RELENG_8_0:1.22.2.1.0.2
	RELENG_8_0_BP:1.22.2.1
	RELENG_8:1.22.0.2
	RELENG_8_BP:1.22
	RELENG_4_11_0_RELEASE:1.9.2.1
	RELENG_4_11:1.9.2.1.0.16
	RELENG_4_11_BP:1.9.2.1
	RELENG_4_10_0_RELEASE:1.9.2.1
	RELENG_4_10:1.9.2.1.0.14
	RELENG_4_10_BP:1.9.2.1
	RELENG_4_9_0_RELEASE:1.9.2.1
	RELENG_4_9:1.9.2.1.0.12
	RELENG_4_9_BP:1.9.2.1
	RELENG_5_1_0_RELEASE:1.13
	RELENG_5_1:1.13.0.4
	RELENG_5_1_BP:1.13
	RELENG_4_8_0_RELEASE:1.9.2.1
	RELENG_4_8:1.9.2.1.0.10
	RELENG_4_8_BP:1.9.2.1
	RELENG_5_0_0_RELEASE:1.13
	RELENG_5_0:1.13.0.2
	RELENG_5_0_BP:1.13
	RELENG_4_7_0_RELEASE:1.9.2.1
	RELENG_4_7:1.9.2.1.0.8
	RELENG_4_7_BP:1.9.2.1
	RELENG_4_6_2_RELEASE:1.9.2.1
	RELENG_4_6_1_RELEASE:1.9.2.1
	RELENG_4_6_0_RELEASE:1.9.2.1
	RELENG_4_6:1.9.2.1.0.6
	RELENG_4_6_BP:1.9.2.1
	RELENG_4_5_0_RELEASE:1.9.2.1
	RELENG_4_5:1.9.2.1.0.4
	RELENG_4_5_BP:1.9.2.1
	RELENG_4_4_0_RELEASE:1.9.2.1
	RELENG_4_4:1.9.2.1.0.2
	RELENG_4_4_BP:1.9.2.1
	RELENG_4_3_0_RELEASE:1.9
	RELENG_4_3:1.9.0.4
	RELENG_4_3_BP:1.9
	RELENG_4_2_0_RELEASE:1.9
	RELENG_4_1_1_RELEASE:1.9
	PRE_SMPNG:1.9
	RELENG_4_1_0_RELEASE:1.9
	RELENG_3_5_0_RELEASE:1.8.2.1
	RELENG_4_0_0_RELEASE:1.9
	RELENG_4:1.9.0.2
	RELENG_4_BP:1.9
	RELENG_3_4_0_RELEASE:1.8.2.1
	RELENG_3_3_0_RELEASE:1.8.2.1
	RELENG_3_2_PAO:1.8.0.4
	RELENG_3_2_PAO_BP:1.8
	RELENG_3_2_0_RELEASE:1.8
	RELENG_3_1_0_RELEASE:1.8
	RELENG_3:1.8.0.2
	RELENG_3_BP:1.8
	RELENG_2_2_8_RELEASE:1.4
	RELENG_3_0_0_RELEASE:1.7
	RELENG_2_2_7_RELEASE:1.4
	RELENG_2_2_6_RELEASE:1.4
	RELENG_2_2_5_RELEASE:1.4
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.4
	RELENG_2_2_1_RELEASE:1.4
	RELENG_2_2_0_RELEASE:1.4
	RELENG_2_1_7_RELEASE:1.4
	RELENG_2_1_6_1_RELEASE:1.4
	RELENG_2_1_6_RELEASE:1.4
	RELENG_2_2:1.4.0.6
	RELENG_2_2_BP:1.4
	RELENG_2_1_5_RELEASE:1.4
	RELENG_2_1_0_RELEASE:1.4
	RELENG_2_1_0:1.4.0.4
	RELENG_2_1_0_BP:1.4
	RELENG_2_0_5_RELEASE:1.4
	RELENG_2_0_5:1.4.0.2
	RELENG_2_0_5_BP:1.4
	RELENG_2_0_5_ALPHA:1.3
	RELEASE_2_0:1.3
	BETA_2_0:1.3
	ALPHA_2_0:1.3.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.29
date	2013.04.20.00.35.21;	author svnexp;	state Exp;
branches;
next	1.28;

1.28
date	2013.03.23.02.25.00;	author svnexp;	state Exp;
branches
	1.28.2.1;
next	1.27;

1.27
date	2012.11.17.01.54.13;	author svnexp;	state Exp;
branches;
next	1.26;

1.26
date	2012.04.29.09.32.44;	author kib;	state Exp;
branches;
next	1.25;

1.25
date	2010.05.17.09.37.59;	author kaiw;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2010.05.10.15.28.44;	author mm;	state Exp;
branches;
next	1.23;

1.23
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches;
next	1.22;

1.22
date	2008.09.21.00.27.16;	author kaiw;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	2008.09.20.22.10.10;	author kaiw;	state Exp;
branches;
next	1.20;

1.20
date	2008.02.25.16.16.17;	author ru;	state Exp;
branches;
next	1.19;

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

1.18
date	2008.02.22.06.51.26;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	2008.02.22.06.47.45;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	2008.02.21.16.29.52;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	2008.02.21.10.52.31;	author kaiw;	state Exp;
branches;
next	1.14;

1.14
date	2003.06.27.03.53.53;	author obrien;	state dead;
branches;
next	1.13;

1.13
date	2002.07.14.18.23.22;	author alfred;	state Exp;
branches;
next	1.12;

1.12
date	2002.02.08.22.31.35;	author markm;	state Exp;
branches;
next	1.11;

1.11
date	2001.12.02.12.34.08;	author markm;	state Exp;
branches;
next	1.10;

1.10
date	2001.03.27.10.51.37;	author ru;	state Exp;
branches;
next	1.9;

1.9
date	99.08.28.00.59.05;	author peter;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	98.12.06.07.36.44;	author archie;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	98.10.10.12.48.48;	author bde;	state Exp;
branches;
next	1.6;

1.6
date	98.09.07.05.56.57;	author jb;	state Exp;
branches;
next	1.5;

1.5
date	98.05.25.17.34.38;	author sos;	state Exp;
branches;
next	1.4;

1.4
date	95.05.30.06.29.12;	author rgrimes;	state Exp;
branches;
next	1.3;

1.3
date	94.08.05.18.59.07;	author wollman;	state Exp;
branches;
next	1.2;

1.2
date	94.05.30.14.16.52;	author rgrimes;	state Exp;
branches;
next	1.1;

1.1
date	94.05.27.12.30.47;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.28.2.1
date	2013.03.23.02.25.00;	author svnexp;	state dead;
branches;
next	1.28.2.2;

1.28.2.2
date	2013.03.28.13.06.00;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.25.2.1.2.1;
next	1.25.2.2;

1.25.2.2
date	2012.05.13.13.57.53;	author kib;	state Exp;
branches
	1.25.2.2.2.1;
next	1.25.2.3;

1.25.2.3
date	2012.11.17.11.37.36;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.25.2.1.2.2;

1.25.2.1.2.2
date	2012.11.17.08.37.33;	author svnexp;	state Exp;
branches;
next	;

1.25.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.25.2.2.2.2;

1.25.2.2.2.2
date	2012.11.17.08.48.25;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.22.2.1.2.1
	1.22.2.1.4.1;
next	1.22.2.2;

1.22.2.2
date	2010.10.10.08.41.08;	author mm;	state Exp;
branches
	1.22.2.2.2.1;
next	1.22.2.3;

1.22.2.3
date	2011.05.07.10.23.07;	author kaiw;	state Exp;
branches
	1.22.2.3.2.1;
next	1.22.2.4;

1.22.2.4
date	2012.11.17.10.37.15;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.22.2.3.2.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.22.2.3.2.2;

1.22.2.3.2.2
date	2012.11.17.08.25.48;	author svnexp;	state Exp;
branches;
next	;

1.9.2.1
date	2001.04.25.11.29.15;	author ru;	state Exp;
branches;
next	1.9.2.2;

1.9.2.2
date	2012.11.17.07.27.19;	author svnexp;	state Exp;
branches;
next	;

1.8.2.1
date	99.08.29.15.25.20;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.27.12.30.48;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.29
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249657
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/usr.bin/ar/Makefile 249657 2013-04-19 19:45:00Z ed $

.include <bsd.own.mk>

PROG=	ar
SRCS=	ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h

DPADD=	${LIBARCHIVE} ${LIBELF} ${LIBZ}
LDADD=	-larchive -lelf -lz

NO_WMISSING_VARIABLE_DECLARATIONS=

CFLAGS+=-I. -I${.CURDIR}

.if ${MK_SHARED_TOOLCHAIN} == "no"
NO_SHARED?=	yes
.endif
LINKS=	${BINDIR}/ar ${BINDIR}/ranlib
MLINKS= ar.1 ranlib.1

.include <bsd.prog.mk>
@


1.28
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248616
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/usr.bin/ar/Makefile 248616 2013-03-22 13:36:03Z mm $
d11 2
@


1.28.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:00 +0000
@
text
@d1 19
@


1.28.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 17
# $FreeBSD: releng/8.4/usr.bin/ar/Makefile 221587 2011-05-07 10:23:07Z kaiw $

PROG=	ar
SRCS=	ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h

WARNS?=	5

DPADD=	${LIBARCHIVE} ${LIBELF}
LDADD=	-larchive -lelf

CFLAGS+=-I. -I${.CURDIR}

NO_SHARED?=	yes
LINKS=	${BINDIR}/ar ${BINDIR}/ranlib
MLINKS= ar.1 ranlib.1

.include <bsd.prog.mk>
@


1.27
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/usr.bin/ar/Makefile 234782 2012-04-29 09:32:44Z kib $
d8 2
a9 2
DPADD=	${LIBARCHIVE} ${LIBELF}
LDADD=	-larchive -lelf
@


1.26
log
@SVN rev 234782 on 2012-04-29 09:32:44Z by kib

Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

Reviewed by:	ru (previous version)
MFC after:	2 weeks
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.25
log
@SVN rev 208189 on 2010-05-17 09:37:59Z by kaiw

Removed ar(1)'s support for compressed archives. This change removes
ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and
fixes building HEAD on some versions of FreeBSD[78]. Option -j and -z
is now accepted but ignored.

Compressed ar(1) archives are not useful without a ld(1) that can read
them. Also, the current ar(1) compression scheme prevents random
access of archive members and needs to be redesigned anyway.

Submitted by:	kientzle (original patch)
Reviewed by:	delphij
Discussed on:	-current mailing list
@
text
@d3 2
d13 1
d15 1
@


1.25.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.25.2.2
log
@SVN rev 235398 on 2012-05-13 13:57:53Z by kib

MFC r234782:
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

MFC r235152 (by imp):
Make is part of the bootstrap path, so we need to guard against this
not being defined.  Otherwise we don't make a new make when the old
make is incompatible.
@
text
@a2 2
.include <bsd.own.mk>

a10 1
.if ${MK_SHARED_TOOLCHAIN} == "no"
a11 1
.endif
@


1.25.2.3
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/usr.bin/ar/Makefile 235398 2012-05-13 13:57:53Z kib $
@


1.25.2.2.2.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.25.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/usr.bin/ar/Makefile 235398 2012-05-13 13:57:53Z kib $
@


1.25.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.25.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/usr.bin/ar/Makefile 208189 2010-05-17 09:37:59Z kaiw $
@


1.24
log
@SVN rev 207849 on 2010-05-10 15:28:44Z by mm

Enable liblzma support in libarchive
Adjust dependencies for programs using libarchive
Add xz and linkage against liblzma to rescue system

Approved by:	kientzle, delphij (mentor)
MFC after:	2 weeks
@
text
@d6 2
a7 2
DPADD=	${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBLZMA} ${LIBELF}
LDADD=	-larchive -lbz2 -lz -llzma -lelf
@


1.23
log
@SVN rev 201386 on 2010-01-02 10:27:05Z by ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.
@
text
@d6 2
a7 2
DPADD=	${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBELF}
LDADD=	-larchive -lbz2 -lz -lelf
@


1.22
log
@SVN rev 183220 on 2008-09-21 00:27:16Z by kaiw

Fix build.
@
text
@a5 2
WARNS?=	5

@


1.22.2.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.22.2.2
log
@SVN rev 213667 on 2010-10-10 08:41:08Z by mm

- Add liblzma support to libarchive and usr.bin/tar
- Do not link usr.bin/ar to liblzma if building bootstrap-tools and
the local system doesn't include liblzma (fixes world build on FreeBSD 7.x)

This is a direct commit.

Approved by:	delphij (mentor)
@
text
@a10 7
# Do not depend on liblzma if we are building the bootstrap-tools and
# the local system doesn't include liblzma
.if !defined(BOOTSTRAPPING) || ${BOOTSTRAPPING} >= 800505
DPADD+=	${LIBLZMA}
LDADD+=	-llzma
.endif

@


1.22.2.3
log
@SVN rev 221587 on 2011-05-07 10:23:07Z by kaiw

MFC r208189:

Removed ar(1)'s support for compressed archives. This change removes
ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and
fixes building HEAD on some versions of FreeBSD[78]. Option -j and -z
is now accepted but ignored.

Compressed ar(1) archives are not useful without a ld(1) that can read
them. Also, the current ar(1) compression scheme prevents random
access of archive members and needs to be redesigned anyway.
@
text
@d8 9
a16 2
DPADD=	${LIBARCHIVE} ${LIBELF}
LDADD=	-larchive -lelf
@


1.22.2.4
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/usr.bin/ar/Makefile 221587 2011-05-07 10:23:07Z kaiw $
@


1.22.2.3.2.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.22.2.3.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/usr.bin/ar/Makefile 221587 2011-05-07 10:23:07Z kaiw $
@


1.22.2.2.2.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.22.2.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.22.2.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.21
log
@SVN rev 183218 on 2008-09-20 22:10:10Z by kaiw

Add support for option "-M", which is used to operate ar(1) in a
script mode like the MRI(Microtec Research Inc.) "librarian" program.

Originally this option is provided by Binutils ar(1) to ease the
transition for developers who are used to writing "librarian" scripts.

We added this option to BSD ar(1) because:

1. Further improve the compatibility with Binutils ar(1).
2. There are still a few software using this -M option. (at least one
in our ports collection)

Suggested by:	rink & erwin
@
text
@d11 2
@


1.20
log
@Make again BSD ar(1) the default system ar(1), now properly handling
source upgrades by falling back to GNU ar(1) as necessary.  Option
WITH_BSDAR is gone.  Option _WITH_GNUAR to aid in upgrades is *not*
supposed to be set by the user.

Stop bootstrapping BSD ar(1) on the next __FreeBSD_version bump, as
there are no known bugs in it.  Bump __FreeBSD_version to anticipate
this and to flag the switch to BSD ar(1), should it be needed for
something.

Input from:	obrien, des, kaiw
@
text
@d4 1
a4 1
SRCS=	ar.c read.c util.c write.c
@


1.19
log
@Clean up created turds.
@
text
@a2 1
.if defined(WITH_BSDAR)
a3 3
.else
PROG=	bsdar
.endif
a10 1
.if defined(WITH_BSDAR)
d13 1
a13 9
MLINKS=	ar ranlib
.else
LINKS=	${BINDIR}/bsdar ${BINDIR}/bsdranlib
MLINKS=	bsdar.1 bsdranlib.1

CLEANFILES+= bsdar.1
bsdar.1: ar.1
	ln -sf ${.ALLSRC} ${.TARGET}
.endif
@


1.18
log
@We build important toolchain statically.  So build BSD 'ar' statically
when its replacing GNU 'ar'.
@
text
@d23 1
@


1.17
log
@Re-introduce the new BSDLed 'ar' to the build.
It is installed as "bsdar" unless WANT_BSDAR is defined.

Discussed with: kaiw
@
text
@d16 1
@


1.16
log
@Fix static linkage.
@
text
@d3 1
d5 3
a7 1
VERSION=	1.0.2
d9 1
d11 1
d14 2
a15 1
CFLAGS+=	-DBSDAR_VERSION=\"${VERSION}\"
d17 8
@


1.15
log
@Import ar(1) front-end. (aka 'BSD' ar)

Reviewed by: 		jkoshy
Approved by:		jkoshy (mentor)
Tested by:		erwin (ports build test on pointyhat)
Sponsored by:		Google Summer of Code 2007
Reviewed by (earlier version): Jaakko Heinonen <jh[AT]saunalahti.fi>
Tested by (earlier version): Steve Kargl <sgk[AT]troutmask.apl.washington.edu>
Tested by (earlier version): Martin Voros <martin_voros[AT]yahoo.com>
Tested by (earlier version): swell.k[AT]gmail.com
Tested by (earlier version): joel
Tested by (earlier version): Alexey Shuvaev <shuvaev[AT]physik.uni-wuerzburg.de>
Tested by (earlier version): Arjan van Leeuwen <avleeuwen[AT]gmail.com>

Thanks to gabor@@ for building ports for it.
Thanks to erwin@@ and kris@@ for scheduling the ports build test on pointyhat.
And thanks to many others for their feedback.
@
text
@d7 2
a8 2
DPADD=	${LIBARCHIVE} ${LIBELF}
LDADD=	-larchive -lelf
@


1.14
log
@Finish the deorbital burn of the i386-only a.out toolchain.
@
text
@d1 1
a1 2
#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD: src/usr.bin/ar/Makefile,v 1.13 2002/07/14 18:23:22 alfred Exp $
d4 7
a10 6
SRCS=	append.c ar.c archive.c contents.c delete.c extract.c misc.c \
	move.c print.c replace.c
CFLAGS+=-I${.CURDIR}
MAN=	ar.1aout ar.5
BINDIR=	/usr/libexec/aout
WARNS?=	4
@


1.13
log
@WARNS=4
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.12
log
@Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.
@
text
@d10 1
@


1.11
log
@WARNS=2 fixup.
@
text
@a7 1
WARNS?=	2
@


1.10
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/ar/Makefile,v 1.9 1999/08/28 00:59:05 peter Exp $
a4 1
CFLAGS+=-I${.CURDIR} -Wall
d7 2
@


1.9
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d8 1
a8 2
MAN1aout=ar.1aout
MAN5=	ar.5
@


1.9.2.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/ar/Makefile,v 1.9 1999/08/28 00:59:05 peter Exp $
d8 2
a9 1
MAN=	ar.1aout ar.5
@


1.9.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/usr.bin/ar/Makefile 75957 2001-04-25 11:29:51Z ru $
@


1.8
log
@Eliminate compiler warnings from -Wall
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1998/10/10 12:48:48 bde Exp $
@


1.8.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.7
log
@Don't build or install ${MAN1}.  It's just a copy of ${MAN1aout} and
installing it clobbers the elf ${MAN1}.  The MAN1 -> MAN1aout changes
actually work now.

Fixed order of MAN* and BINDIR.
@
text
@d2 1
a2 1
#	$Id$
d5 1
a5 1
CFLAGS+=-I${.CURDIR}
@


1.6
log
@Install the legacy man file in section 1aout.
@
text
@d2 1
a4 2
BINDIR=	/usr/libexec/aout
MAN1aout=ar.1aout
d8 1
a8 1
MAN1=	ar.1
d10 1
@


1.5
log
@ELF preparation step 1:

Move our old a.out utils to /usr/libexec/aout.
Enable binutils and put the utils in /usr/libexec/elf
Enable objformat, a little helper program that calls the right
utils based on /etc/objformat and $OBJFORMAT.

This will enable the ELF generating tools.
Remember that this is only step one, the system is still compiled
and run in a.out format ONLY.

Problem left to solve: The BSD manpages wins over the GNU equivalents
as the are installed last. We need to distinguish between the manpages
somehow...
@
text
@d5 1
@


1.4
log
@Remove trailing whitespace.
@
text
@d4 1
@


1.3
log
@More merry makefile munging for man page compatability.
@
text
@d6 1
a6 1
	move.c print.c replace.c 
@


1.2
log
@Cleanup so that make install can run, many install: maninstall changed
to just install:, sperious targets and CLEANFILES removed.
@
text
@d7 2
a8 9
MAN1=	ar.0
CLEANFILES=ar.5.0

ar.0: ar.5.0

# XXX BROKEN: afterinstall:
XXXafterinstall:
	install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} ar.5.0 \
	    ${DESTDIR}${MANDIR}5/ar.0
@


1.1
log
@Initial revision
@
text
@d12 2
a13 1
afterinstall:
@


1.1.1.1
log
@BSD 4.4 Lite Usr.bin Sources
@
text
@@
