Add build infrastructure for binutils-2.17.
[games.git] / gnu / usr.bin / binutils217 / strip / Makefile
1 # $DragonFly: src/gnu/usr.bin/binutils217/strip/Makefile,v 1.1 2007/04/13 12:24:33 corecode Exp $
2
3 .include "../Makefile.inc0"
4
5 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
6
7 PROG=   strip
8 SRCS=   objcopy.c is-strip.c
9 WARNS=  2
10 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
11 CFLAGS+= -I${SRCDIR}/binutils
12 CFLAGS+= -I${SRCDIR}/bfd -I${.OBJDIR}/../libbfd
13 DPADD=  ${RELTOP}/libbinutils/libbinutils.a
14 DPADD+= ${RELTOP}/libbfd/libbfd.a
15 DPADD+= ${RELTOP}/libiberty/libiberty.a
16 LDADD=  ${DPADD}
17 CLEANFILES+=    maybe_stripped
18
19 all: maybe_stripped
20
21 maybe_stripped: strip
22         cp strip maybe_stripped
23 .if defined(STRIP)
24 .if ${STRIP:M-s} != ""
25         -strip maybe_stripped
26 .endif
27 .endif
28
29 realinstall:
30         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
31             maybe_stripped ${DESTDIR}${BINDIR}/strip
32
33 .include <bsd.prog.mk>