Simplify some Makefiles.
[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 MFILE=  nm${MANPAGEVER}.1
8 MAN=    ${MFILE}
9 LDADD=  ${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
20 CLEANFILES+=    ${MFILE}
21
22 .if defined(IS_PRIMARY)
23 MLINKS+=        ${MFILE} nm.1
24 .endif
25
26 .include <bsd.prog.mk>