xref: /freebsd/usr.bin/clang/llvm-ar/Makefile (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
16bb1caddSDimitry Andric# $FreeBSD$
26bb1caddSDimitry Andric
3021385abSAlex Richardson.include <src.opts.mk>
4021385abSAlex Richardson
56bb1caddSDimitry AndricPROG_CXX=	llvm-ar
6bd74205dSDimitry AndricMAN=		llvm-ar.1 llvm-ranlib.1
76bb1caddSDimitry Andric
80b57cec5SDimitry AndricSRCDIR=		llvm/tools/llvm-ar
9986e05bcSDimitry AndricSRCS+=		llvm-ar.cpp
106bb1caddSDimitry Andric
11*81ad6265SDimitry AndricCFLAGS.llvm-ar.cpp+=	-Dllvm_ar_main=main
12*81ad6265SDimitry Andric
13dbc595b2SDimitry AndricLIBADD+=	z
14046ffce1SDimitry Andric
15dc6e1047SDimitry AndricLINKS+=		${BINDIR}/llvm-ar ${BINDIR}/llvm-ranlib
16dc6e1047SDimitry Andric
17021385abSAlex Richardson.if ${MK_LLVM_BINUTILS} != "no"
18021385abSAlex RichardsonLINKS=		${BINDIR}/llvm-ar ${BINDIR}/ar ${BINDIR}/llvm-ar ${BINDIR}/ranlib
19021385abSAlex RichardsonMLINKS=		llvm-ar.1 ar.1 llvm-ar.1 ranlib.1
20021385abSAlex Richardson.endif
21021385abSAlex Richardson
22986e05bcSDimitry Andric.include "../llvm.prog.mk"
23