1.include "../../Makefile.inc1"
2.include "../Makefile.block2"
3
4.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
5
6PROG=	nm
7SRCS=	nm.c
8MFILE=	nm${MANPAGEVER}.1
9MAN=	${MFILE}
10LDADD=	${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.undef NOSHARED
15
16${MFILE}: ${SRCDIR}/binutils/doc/nm.1
17	cp ${.ALLSRC} ${.TARGET}
18
19CLEANFILES+=	${MFILE}
20
21.if defined(IS_PRIMARY)
22MLINKS+=	${MFILE} nm.1
23.endif
24
25.include <bsd.prog.mk>
26