xref: /openbsd-src/gnu/usr.bin/Makefile (revision 0d088026b6883f22c8e4ccd43697d66ec91f3932)
1*0d088026Smiod#	$OpenBSD: Makefile,v 1.64 2022/10/28 15:50:55 miod Exp $
2a64cc307Sniklas#	$NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $
3df930be7Sderaadt
406243ed8Sart.include <bsd.own.mk>
506243ed8Sart
6eb158ea4Sespie.if make(obj)
764fc6436SjsgSUBDIR+=	cc clang gcc
8eb158ea4Sespie.else
9d8ee3b15Skettenis.  if ${BUILD_GCC3:L} == "yes"
10eb158ea4SespieSUBDIR+=	gcc
11d8ee3b15Skettenis.  endif
12d8ee3b15Skettenis.  if ${BUILD_GCC4:L} == "yes"
1324b66d92SdrahnSUBDIR+=	cc
14d8ee3b15Skettenis.  endif
15d8ee3b15Skettenis.  if ${BUILD_CLANG:L} == "yes"
1664fc6436SjsgSUBDIR+=	clang
17eb158ea4Sespie.  endif
18eb158ea4Sespie.endif
19eb158ea4Sespie
20*0d088026SmiodSUBDIR+=	cvs
2146f5b06eSmiod# binutils-2.17 needs to build gdb in binutils at the moment
223d3f3a5dSjsg.if make(obj)
2346f5b06eSmiodSUBDIR+=	binutils
24f11c68bdSjsg.elif ${MACHINE_CPU} != "aarch64" && ${MACHINE_CPU} != "powerpc64" && \
25f11c68bdSjsg      ${MACHINE_CPU} != "riscv64"
263d3f3a5dSjsgSUBDIR+=	binutils
273d3f3a5dSjsg.endif
28448f2cefSmiodSUBDIR+=	binutils-2.17
29df930be7Sderaadt
303a1b8192Smillert# Do these last; texinfo builds the info 'dir' file, perl must be after binutils
313a1b8192SmillertSUBDIR+=	perl texinfo
322ea999d2Sderaadt
33c903079fSschwarzemaninstall:
34c903079fSschwarze	${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
35c903079fSschwarze		gcc/protoize.1 ${DESTDIR}${MANDIR}1/protoize.1
36c903079fSschwarze	@rm -f ${DESTDIR}${MANDIR}1/unprotoize.1
37c903079fSschwarze	ln ${DESTDIR}${MANDIR}1/protoize.1 ${DESTDIR}${MANDIR}1/unprotoize.1
38c903079fSschwarze
39df930be7Sderaadt.include <bsd.subdir.mk>
40