OpenBSD-4.6/gnu/egcs/Makefile.bsd-wrapper

#	$OpenBSD: Makefile.bsd-wrapper,v 1.9 2005/04/28 21:33:25 espie Exp $

.include <bsd.own.mk>
USE_GCC3?=No

.if make(obj)
SUBDIR+= libio libf2c libstdc++
.else
.  if ${USE_GCC3:L} == "no"
SUBDIR+= libio libf2c libstdc++
.  else
SUBDIR+=
.  endif
.endif

# just so that the main directory will have a subdir, which simplifies
# libf2c build 
obj: _SUBDIRUSE
	cd $(.CURDIR) && $(MAKE) -f Makefile.bsd-wrapper1 obj
	cd $(.CURDIR)/gcc && $(MAKE) -f Makefile.bsd-wrapper obj

.include <bsd.subdir.mk>