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