45feb8a90c93a3c9f314b8a5f5b3c6bb144b6bee
[dragonfly.git] / gnu / usr.bin / binutils227 / block2 / ar / Makefile
1 .include "../../Makefile.inc1"
2 .include "../Makefile.block2"
3
4 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
5
6 PROG=   ar
7 SRCS=   ar.c not-ranlib.c arsup.c rename.c binemul.c emul_vanilla.c \
8         arparse.y arlex.l
9 MFILE=  ar${MANPAGEVER}.1
10 MAN=    ${MFILE}
11 DPADD=  ${LIBL} ${LIBZ}
12 LDADD=  ${STD_LDADD} -ll -lz
13
14 CFLAGS+=        -I${SRCDIR}/binutils \
15                 -Dbin_dummy_emulation=bin_vanilla_emulation
16
17 # link-time optimization requires dlopen() which means ar cannot be built
18 # statically and also support -plugin, not even for cross-tools.
19 .undef NOSHARED
20
21 ${MFILE}: ${SRCDIR}/binutils/doc/ar.1
22         cp ${.ALLSRC} ${.TARGET}
23
24 CLEANFILES+=    ${MFILE}
25
26 .if defined(IS_PRIMARY)
27 MLINKS+=        ${MFILE} ar.1
28 .endif
29
30 .include <bsd.prog.mk>