diff options
Diffstat (limited to 'usr.bin/ar')
-rw-r--r-- | usr.bin/ar/Makefile | 18 | ||||
-rw-r--r-- | usr.bin/ar/ar.h | 2 |
2 files changed, 18 insertions, 2 deletions
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index 57a56a5..4ecfe36 100644 --- a/usr.bin/ar/Makefile +++ b/usr.bin/ar/Makefile @@ -1,12 +1,26 @@ # $FreeBSD$ +.if defined(WITH_BSDAR) PROG= ar -VERSION= 1.0.2 +.else +PROG= bsdar +.endif SRCS= ar.c read.c util.c write.c + WARNS?= 5 + DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBELF} LDADD= -larchive -lbz2 -lz -lelf -CFLAGS+= -DBSDAR_VERSION=\"${VERSION}\" + +.if defined(WITH_BSDAR) LINKS= ${BINDIR}/ar ${BINDIR}/ranlib +MLINKS= ar ranlib +.else +LINKS= ${BINDIR}/bsdar ${BINDIR}/bsdranlib +MLINKS= bsdar.1 bsdranlib.1 + +bsdar.1: ar.1 + ln -sf ${.ALLSRC} ${.TARGET} +.endif .include <bsd.prog.mk> diff --git a/usr.bin/ar/ar.h b/usr.bin/ar/ar.h index aaad1b9..478b8b9 100644 --- a/usr.bin/ar/ar.h +++ b/usr.bin/ar/ar.h @@ -26,6 +26,8 @@ * $FreeBSD$ */ +#define BSDAR_VERSION "1.0.2" + /* * ar(1) options. */ |