Home | History | Annotate | Line # | Download | only in dirshack
Makefile revision 1.1.2.3
      1  1.1.2.3  matt #	$NetBSD: Makefile,v 1.1.2.3 2010/01/27 06:52:47 matt Exp $
      2  1.1.2.2   mrg 
      3  1.1.2.2   mrg # hacky method to get compat multilib base objdirs created before
      4  1.1.2.2   mrg # make tries to go create the subdirs used for builds.
      5  1.1.2.2   mrg 
      6  1.1.2.2   mrg # the problem is that make handles objdir creation for subdirs before it
      7  1.1.2.2   mrg # handles this current directory, so when make cd's into $arch/$libtype
      8  1.1.2.2   mrg # and from there into the ../../lib dirs, it ends up setting the forced
      9  1.1.2.2   mrg # MAKEOBJDIRPREFIX to something based upon ${.CURDIR}, since the objdir
     10  1.1.2.2   mrg # doesn't exist yet.
     11  1.1.2.2   mrg # 
     12  1.1.2.2   mrg # our solution is simple - from this Makefile we traverse the same list
     13  1.1.2.2   mrg # of $arch/$libtype's with "BOOTSTRAP_SUBDIR=".  then the compat/Makefile
     14  1.1.2.2   mrg # handles these subdirs as normal, with the base objdir created.
     15  1.1.2.2   mrg 
     16  1.1.2.2   mrg .include <bsd.own.mk>
     17  1.1.2.2   mrg 
     18  1.1.2.2   mrg .if ${MKCOMPAT} != "no"
     19  1.1.2.2   mrg .if make(obj)
     20  1.1.2.2   mrg 
     21  1.1.2.2   mrg .include "../Makefile.md_subdir"
     22  1.1.2.2   mrg 
     23  1.1.2.2   mrg MAKEDIRTARGETENV=	BOOTSTRAP_SUBDIRS=
     24  1.1.2.2   mrg 
     25  1.1.2.3  matt SUBDIR=	${MD_SUBDIR:N.WAIT:C/^/..\//}
     26  1.1.2.2   mrg 
     27  1.1.2.2   mrg .endif	# make(obj)
     28  1.1.2.2   mrg .endif	# MKCOMPAT != no
     29  1.1.2.2   mrg 
     30  1.1.2.2   mrg .include <bsd.subdir.mk>
     31