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