Remove binutils 2.17 from contrib/.
[dragonfly.git] / gnu / usr.bin / binutils217 / strip / Makefile
1 .include "../Makefile.inc0"
2
3 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
4
5 PROG=   strip
6 SRCS=   objcopy.c is-strip.c
7 MAN=    strip217.1
8 WARNS=  1
9 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
10 CFLAGS+= -I${SRCDIR}/binutils
11 CFLAGS+= -I${SRCDIR}/bfd -I${.OBJDIR}/../libbfd
12 DPADD=  ${RELTOP}/libbinutils/libbinutils.a
13 DPADD+= ${RELTOP}/libbfd/libbfd.a
14 DPADD+= ${RELTOP}/libiberty/libiberty.a
15 LDADD=  ${DPADD}
16 CLEANFILES+=    maybe_stripped
17
18 all: maybe_stripped
19
20 maybe_stripped: strip
21         cp strip maybe_stripped
22 .if defined(STRIP)
23 .if ${STRIP:M-s} != ""
24         -strip maybe_stripped
25 .endif
26 .endif
27
28 strip217.1: ${SRCDIR}/binutils/doc/strip.1
29         cp ${.ALLSRC} ${.TARGET}
30
31 CLEANFILES+=    strip217.1
32
33 realinstall:
34         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
35             maybe_stripped ${DESTDIR}${BINDIR}/strip
36
37 .include <bsd.prog.mk>