1 .include "../../Makefile.inc1"
2 .include "../Makefile.block2"
4 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
7 SRCS= ar.c not-ranlib.c arsup.c rename.c binemul.c emul_vanilla.c \
9 MFILE= ar${MANPAGEVER}.1
11 DPADD= ${LIBL} ${LIBZ}
12 LDADD= ${STD_LDADD} -ll -lz
14 CFLAGS+= -I${SRCDIR}/binutils \
15 -Dbin_dummy_emulation=bin_vanilla_emulation
17 # link-time optimization requires dlopen() which means ar cannot be built
18 # statically and also support -plugin, not even for cross-tools.
21 ${MFILE}: ${SRCDIR}/binutils/doc/ar.1
22 cp ${.ALLSRC} ${.TARGET}
26 .if defined(IS_PRIMARY)
27 MLINKS+= ${MFILE} ar.1
30 .include <bsd.prog.mk>