summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-05-10 18:20:32 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-05-10 18:20:32 +0000
commit3d048d0ab0d9212a257df4643785a7fc4500f65a (patch)
treeee69a2ee7a0126c6826e618641e3694b28356554 /include
parent74ec6f5d77854dfd44aaf3ee3e8836f9a15c38ff (diff)
Switch to using COMPILER_VERSION instead of USE_GCC3, allows for more flexible
complier picking, eg supporting gcc2, gcc3, and gcc4. based on diff by Marco, with fixes from espie@. ok espie@ general mumbling of approval of others.
Diffstat (limited to 'include')
-rw-r--r--include/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/Makefile b/include/Makefile
index 58c1b16782b..31b08942a3b 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.153 2010/02/03 20:49:58 miod Exp $
+# $OpenBSD: Makefile,v 1.154 2010/05/10 18:20:31 drahn Exp $
# $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
@@ -8,7 +8,6 @@
.include <bsd.own.mk>
-USE_GCC3?=No
# Missing: mp.h
FILES= a.out.h ar.h assert.h bitstring.h blf.h bm.h bsd_auth.h cast.h \
@@ -58,10 +57,14 @@ WDIRS= ../usr.sbin/httpd
# before includes
PWDIRS=
-.if ${USE_GCC3:L} == "yes"
+.if ${COMPILER_VERSION:L} == "gcc3"
WDIRS+= ../gnu/lib/libstdc++ ../gnu/usr.bin/gcc ../gnu/lib/libobjc \
../gnu/lib/libf2c
PWDIRS+= ../gnu/lib/libstdc++ ../gnu/lib/libf2c
+.elif ${COMPILER_VERSION:L} == "gcc4"
+RDIRS+= ../gnu/lib/libstdc++-v3 ../gnu/usr.bin/cc/libobjc
+PRDIRS+= ../gnu/lib/libstdc++-v3
+RDIRS+= ../gnu/usr.bin/cc/include
.else
WDIRS+= ../gnu/egcs/libio ../gnu/egcs/libstdc++ \
../gnu/egcs/libf2c ../gnu/lib/libobjc ../gnu/egcs/gcc