Makefile revision 1.63
1#	$OpenBSD: Makefile,v 1.63 2021/05/03 03:45:40 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 ${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" && \
25      ${MACHINE_CPU} != "riscv64"
26SUBDIR+=	binutils
27.endif
28SUBDIR+=	binutils-2.17
29
30# Do these last; texinfo builds the info 'dir' file, perl must be after binutils
31SUBDIR+=	perl texinfo
32
33maninstall:
34	${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
35		gcc/protoize.1 ${DESTDIR}${MANDIR}1/protoize.1
36	@rm -f ${DESTDIR}${MANDIR}1/unprotoize.1
37	ln ${DESTDIR}${MANDIR}1/protoize.1 ${DESTDIR}${MANDIR}1/unprotoize.1
38
39.include <bsd.subdir.mk>
40