blob: 0396760635f9b6a70666feca195e646a7950282d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $OpenBSD: Makefile,v 1.49 2011/09/22 22:21:13 schwarze Exp $
# $NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $
.include <bsd.own.mk>
.if make(obj)
SUBDIR+= cc gcc ../egcs/gcc
.else
. if ${COMPILER_VERSION:L} == "gcc3"
SUBDIR+= gcc
. elif ${COMPILER_VERSION:L} == "gcc4"
SUBDIR+= cc
. else
SUBDIR+= ../egcs/gcc
. endif
.endif
SUBDIR+= cxxfilt cvs lynx
.if make(obj)
SUBDIR+= binutils binutils-2.17
.else
SUBDIR+= ${BINUTILS_VERSION}
.endif
# most ports use binutils gas and ld, some do not (yet).
.if ${ELF_TOOLCHAIN:L} == "no"
SUBDIR+= gas ld
.endif
# Do these last; texinfo builds the info 'dir' file, perl must be after binutils
SUBDIR+= perl texinfo
.if ${COMPILER_VERSION:L} == "gcc4"
maninstall:
${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
gcc/protoize.1 ${DESTDIR}${MANDIR}1/protoize.1
@rm -f ${DESTDIR}${MANDIR}1/unprotoize.1
ln ${DESTDIR}${MANDIR}1/protoize.1 ${DESTDIR}${MANDIR}1/unprotoize.1
.elif ${ELF_TOOLCHAIN:L} == "yes"
maninstall:
.for cmd in addr2line objcopy readelf
${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
binutils/binutils/doc/${cmd}.1 ${DESTDIR}${MANDIR}1/${cmd}.1
.endfor
.endif
.include <bsd.subdir.mk>
|