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