summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/egcs/Makefile.bsd-wrapper13
-rw-r--r--gnu/lib/Makefile13
-rw-r--r--gnu/usr.bin/Makefile12
-rw-r--r--include/Makefile23
4 files changed, 51 insertions, 10 deletions
diff --git a/gnu/egcs/Makefile.bsd-wrapper b/gnu/egcs/Makefile.bsd-wrapper
index ca5e7f62dc2..cc3daf9ea08 100644
--- a/gnu/egcs/Makefile.bsd-wrapper
+++ b/gnu/egcs/Makefile.bsd-wrapper
@@ -1,6 +1,17 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.6 2003/11/24 17:12:55 espie Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.7 2004/01/23 18:21:13 espie Exp $
+.include <bsd.own.mk>
+USE_GCC3?=No
+
+.if make(obj)
+SUBDIR+= libio libf2c libobjc libstdc++
+.else
+. if ${USE_GCC3:L} == "no"
SUBDIR+= libio libf2c libstdc++ libobjc
+. else
+SUBDIR+=
+. endif
+.endif
# just so that the main directory will have a subdir, which simplifies
# libf2c/libobjc build
diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile
index 058fda6bc6c..530df88050b 100644
--- a/gnu/lib/Makefile
+++ b/gnu/lib/Makefile
@@ -1,5 +1,16 @@
-# $OpenBSD: Makefile,v 1.9 2003/11/24 17:12:55 espie Exp $
+# $OpenBSD: Makefile,v 1.10 2004/01/23 18:21:13 espie Exp $
+.include <bsd.own.mk>
+USE_GCC3?=No
+
+.if make(obj)
+SUBDIR+=libiberty libobjc libstdc++ ../egcs libreadline
+.else
+. if ${USE_GCC3:L} == "yes"
+SUBDIR+=libiberty libobjc libstdc++ libreadline
+. else
SUBDIR+=libiberty ../egcs libreadline
+. endif
+.endif
.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile
index e2a7a1ef539..ec8ac6ddc39 100644
--- a/gnu/usr.bin/Makefile
+++ b/gnu/usr.bin/Makefile
@@ -1,9 +1,19 @@
-# $OpenBSD: Makefile,v 1.40 2003/11/24 17:12:55 espie Exp $
+# $OpenBSD: Makefile,v 1.41 2004/01/23 18:21:13 espie Exp $
# $NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $
.include <bsd.own.mk>
+USE_GCC3?=No
+.if make(obj)
+SUBDIR+= gcc ../egcs/gcc
+.else
+. if ${USE_GCC3:L} == "yes"
+SUBDIR+= gcc
+. else
SUBDIR+= ../egcs/gcc
+. endif
+.endif
+
SUBDIR+= cxxfilt cvs groff lynx rcs sendbug binutils
# most ports use binutils gas and ld, some do not (yet).
diff --git a/include/Makefile b/include/Makefile
index 5e71a9c29b2..c9ab8c517bc 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.122 2004/01/03 14:08:52 espie Exp $
+# $OpenBSD: Makefile,v 1.123 2004/01/23 18:21:13 espie Exp $
# $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
@@ -6,8 +6,11 @@
# The ``rm -rf''s used below are safe because rm doesn't follow symbolic
# links.
-# Missing: mp.h
+.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 \
cpio.h ctype.h curses.h db.h dbm.h des.h dirent.h disktab.h \
dlfcn.h elf_abi.h err.h fnmatch.h fstab.h fts.h ftw.h getopt.h \
@@ -47,18 +50,24 @@ RDIRS= ../lib/libpthread ../lib/libcompat ../lib/libcurses \
PRDIRS=
# Directories with an includes target that use Makefile.bsd-wrapper
-WDIRS= ../usr.sbin/httpd ../gnu/egcs/libio ../gnu/egcs/libstdc++ \
- ../gnu/egcs/libf2c ../gnu/egcs/libobjc ../gnu/egcs/gcc \
- ../gnu/usr.bin/binutils
+WDIRS= ../usr.sbin/httpd ../gnu/usr.bin/binutils
# Places using Makefile.bsd-wrapper that needs a prerequisite target met
# before includes
-PWDIRS= ../usr.sbin/httpd ../gnu/egcs/libf2c ../gnu/usr.bin/binutils
+PWDIRS= ../usr.sbin/httpd ../gnu/usr.bin/binutils
+
+.if ${USE_GCC3:L} == "yes"
+WDIRS+= ../gnu/lib/libstdc++ ../gnu/usr.bin/gcc ../gnu/lib/libobjc
+PWDIRS+= ../gnu/lib/libstdc++
+.else
+WDIRS+= ../gnu/egcs/libio ../gnu/egcs/libstdc++ \
+ ../gnu/egcs/libf2c ../gnu/egcs/libobjc ../gnu/egcs/gcc
+PWDIRS+= ../gnu/egcs/libf2c
+.endif
NOOBJ= noobj
# Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies
-.include <bsd.own.mk>
SYS_INCLUDE?= copies
.if ${KERBEROS5:L} == "yes"
RDIRS+= ../lib/libkrb5 ../lib/libgssapi ../lib/libkadm5srv