buildworld: Really support static toolchain.
[dragonfly.git] / gnu / usr.bin / binutils227 / block2 / nm / Makefile
1 .include "../../Makefile.inc1"
2 .include "../Makefile.block2"
3
4 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
5
6 PROG=   nm
7 SRCS=   nm.c
8 MFILE=  nm${MANPAGEVER}.1
9 MAN=    ${MFILE}
10 LDADD=  ${STD_LDADD} -lz
11
12 # link-time optimization requires dlopen() which means nm cannot be built
13 # statically and also support -plugin, not even for cross-tools.
14 .if !defined(REALLY_NOSHARED)
15 .undef NOSHARED
16 .endif
17
18 ${MFILE}: ${SRCDIR}/binutils/doc/nm.1
19         cp ${.ALLSRC} ${.TARGET}
20
21 CLEANFILES+=    ${MFILE}
22
23 .if defined(IS_PRIMARY)
24 MLINKS+=        ${MFILE} nm.1
25 .endif
26
27 .include <bsd.prog.mk>