summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-01-29 03:48:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-01-29 03:48:09 +0000
commit322f4ac848fe5ebf2d97010adf374f2f11fc48ad (patch)
tree516670007b63954e32a00a5cddea4fb23d7fb5ed
parentc26edc60b74725fa6d54c6258e5b1e9c7b3a9b55 (diff)
descend into clang when building obj or when COMPILER_VERSION is clang
ok patrick@ kettenis@
-rw-r--r--gnu/usr.bin/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile
index a887a9b88cf..1cc0484052b 100644
--- a/gnu/usr.bin/Makefile
+++ b/gnu/usr.bin/Makefile
@@ -1,15 +1,17 @@
-# $OpenBSD: Makefile,v 1.56 2015/06/01 17:36:19 miod Exp $
+# $OpenBSD: Makefile,v 1.57 2017/01/29 03:48:08 jsg Exp $
# $NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $
.include <bsd.own.mk>
.if make(obj)
-SUBDIR+= cc gcc
+SUBDIR+= cc clang gcc
.else
. if ${COMPILER_VERSION:L} == "gcc3"
SUBDIR+= gcc
-. else
+. elif ${COMPILER_VERSION:L} == "gcc4"
SUBDIR+= cc
+. elif ${COMPILER_VERSION:L} == "clang"
+SUBDIR+= clang
. endif
.endif