Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / gnu / usr.bin / binutils / strip / Makefile
1 # $FreeBSD: src/gnu/usr.bin/binutils/strip/Makefile,v 1.6.2.3 2002/09/01 23:39:18 obrien Exp $
2 # $DragonFly: src/gnu/usr.bin/binutils/strip/Attic/Makefile,v 1.2 2003/06/17 04:25:45 dillon Exp $
3
4 .include "../Makefile.inc0"
5
6 .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
7
8 PROG=   strip
9 SRCS=   objcopy.c is-strip.c
10 WARNS=  2
11 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
12 CFLAGS+= -I${SRCDIR}/binutils
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>