1# $OpenBSD: Makefile,v 1.54 2013/08/06 19:11:53 miod 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 8.else 9. if ${COMPILER_VERSION:L} == "gcc3" 10SUBDIR+= gcc 11. else 12SUBDIR+= cc 13. endif 14.endif 15 16SUBDIR+= cxxfilt cvs lynx 17.if make(obj) 18SUBDIR+= binutils binutils-2.17 19.else 20# binutils-2.17 needs to build gdb in binutils at the moment 21.if ${BINUTILS_VERSION} == "binutils-2.17" 22SUBDIR+= binutils 23.endif 24SUBDIR+= ${BINUTILS_VERSION} 25.endif 26 27# Do these last; texinfo builds the info 'dir' file, perl must be after binutils 28SUBDIR+= perl texinfo 29 30.if ${COMPILER_VERSION:L} == "gcc4" 31maninstall: 32 ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \ 33 gcc/protoize.1 ${DESTDIR}${MANDIR}1/protoize.1 34 @rm -f ${DESTDIR}${MANDIR}1/unprotoize.1 35 ln ${DESTDIR}${MANDIR}1/protoize.1 ${DESTDIR}${MANDIR}1/unprotoize.1 36.endif 37 38.include <bsd.subdir.mk> 39