From 3d048d0ab0d9212a257df4643785a7fc4500f65a Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 10 May 2010 18:20:32 +0000 Subject: 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. --- include/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include') 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 -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 -- cgit v1.2.3