# $OpenBSD: Makefile,v 1.51 2011/11/21 01:36:18 jsg Exp $ # $NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $ .include .if make(obj) SUBDIR+= cc gcc ../egcs/gcc .else . if ${COMPILER_VERSION:L} == "gcc3" SUBDIR+= gcc . elif ${COMPILER_VERSION:L} == "gcc4" SUBDIR+= cc . elif ${COMPILER_VERSION:L} == "gcc2" 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 .endif .include