binutils220: add our build infrastructure
[dragonfly.git] / gnu / usr.bin / binutils220 / strip / Makefile
1 .include "../Makefile.bu"
2
3 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
4
5 PROG=   strip
6 SRCS=   objcopy.c is-strip.c
7 WARNS=  1
8
9 CLEANFILES+=    maybe_stripped
10
11 all: maybe_stripped
12
13 maybe_stripped: strip
14         cp strip maybe_stripped
15 .if defined(STRIP)
16 .if ${STRIP:M-s} != ""
17         -strip maybe_stripped
18 .endif
19 .endif
20
21 realinstall:
22         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
23             maybe_stripped ${DESTDIR}${BINDIR}/strip
24
25 .include <bsd.prog.mk>