2008-02-21 10:52:31 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-02-22 06:47:45 +00:00
|
|
|
.if defined(WITH_BSDAR)
|
2008-02-21 10:52:31 +00:00
|
|
|
PROG= ar
|
2008-02-22 06:47:45 +00:00
|
|
|
.else
|
|
|
|
PROG= bsdar
|
|
|
|
.endif
|
2008-02-21 10:52:31 +00:00
|
|
|
SRCS= ar.c read.c util.c write.c
|
2008-02-22 06:47:45 +00:00
|
|
|
|
2008-02-21 10:52:31 +00:00
|
|
|
WARNS?= 5
|
2008-02-22 06:47:45 +00:00
|
|
|
|
2008-02-21 16:29:52 +00:00
|
|
|
DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBELF}
|
|
|
|
LDADD= -larchive -lbz2 -lz -lelf
|
2008-02-22 06:47:45 +00:00
|
|
|
|
|
|
|
.if defined(WITH_BSDAR)
|
2008-02-22 06:51:26 +00:00
|
|
|
NO_SHARED?= yes
|
2008-02-21 10:52:31 +00:00
|
|
|
LINKS= ${BINDIR}/ar ${BINDIR}/ranlib
|
2008-02-22 06:47:45 +00:00
|
|
|
MLINKS= ar ranlib
|
|
|
|
.else
|
|
|
|
LINKS= ${BINDIR}/bsdar ${BINDIR}/bsdranlib
|
|
|
|
MLINKS= bsdar.1 bsdranlib.1
|
|
|
|
|
2008-02-22 06:53:52 +00:00
|
|
|
CLEANFILES+= bsdar.1
|
2008-02-22 06:47:45 +00:00
|
|
|
bsdar.1: ar.1
|
|
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
.endif
|
2008-02-21 10:52:31 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|