blob: 3e3e7139347fa89889a4353cd5bcdcbc02073f8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# $FreeBSD$
.if defined(WITH_BSDAR)
PROG= ar
.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
.if defined(WITH_BSDAR)
NO_SHARED?= yes
LINKS= ${BINDIR}/ar ${BINDIR}/ranlib
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
.include <bsd.prog.mk>
|