Makefile revision 1.60
1#	$OpenBSD: Makefile,v 1.60 2017/07/27 19:44:45 deraadt 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"
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
32.if ${COMPILER_VERSION:L} != "gcc3"
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.endif
39
40.include <bsd.subdir.mk>
41