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