Makefile revision 1.58
1# $OpenBSD: Makefile,v 1.58 2017/02/20 01:00:26 jsg 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 ${COMPILER_VERSION:L} == "gcc3" 10SUBDIR+= gcc 11. elif ${COMPILER_VERSION:L} == "gcc4" 12SUBDIR+= cc 13. elif ${COMPILER_VERSION:L} == "clang" 14SUBDIR+= clang 15. endif 16.endif 17 18SUBDIR+= cxxfilt cvs 19# binutils-2.17 needs to build gdb in binutils at the moment 20.if make(obj) 21SUBDIR+= binutils 22.elif ${MACHINE_CPU} != "aarch64" 23SUBDIR+= binutils 24.endif 25SUBDIR+= binutils-2.17 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