2015-07-23 11:03:24 +03:00
|
|
|
# $NetBSD: compatsubdir.mk,v 1.13 2015/07/23 08:03:25 mrg Exp $
|
2009-12-13 12:27:13 +03:00
|
|
|
|
|
|
|
# Build netbsd libraries.
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2012-08-17 20:22:27 +04:00
|
|
|
TARGETS+= build_install
|
|
|
|
|
2009-12-13 12:27:13 +03:00
|
|
|
.if ${MKCOMPAT} != "no"
|
|
|
|
.if !make(includes)
|
|
|
|
|
|
|
|
# make sure we get an objdir built early enough
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
2011-01-31 13:58:14 +03:00
|
|
|
MAKEDIRTARGETENV=
|
|
|
|
.if defined(MAKEOBJDIRPREFIX)
|
|
|
|
MAKEDIRTARGETENV+= unset MAKEOBJDIRPREFIX &&
|
|
|
|
.endif
|
|
|
|
MAKEDIRTARGETENV+= MAKEOBJDIR='$${.CURDIR:C,^${NETBSDSRCDIR},${.OBJDIR},}'
|
|
|
|
MAKEDIRTARGETENV+= MKOBJDIRS=yes MKSHARE=no
|
|
|
|
MAKEDIRTARGETENV+= BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE}
|
2009-12-13 12:27:13 +03:00
|
|
|
|
|
|
|
.if defined(BOOTSTRAP_SUBDIRS)
|
|
|
|
SUBDIR= ${BOOTSTRAP_SUBDIRS}
|
|
|
|
.else
|
2010-12-04 00:38:46 +03:00
|
|
|
SUBDIR= ../../../lib .WAIT \
|
2009-12-13 12:27:13 +03:00
|
|
|
../../../libexec/ld.elf_so
|
2015-06-19 21:17:49 +03:00
|
|
|
.if ${MKCOMPATTESTS} != "no"
|
|
|
|
SUBDIR+= ../../../tests
|
2015-06-22 03:11:33 +03:00
|
|
|
SUBDIR+= ../../../tests/share # because MKSHARE=no above
|
|
|
|
SUBDIR+= ../../../external/bsd/atf/tests
|
2015-06-19 21:17:49 +03:00
|
|
|
.endif
|
2015-07-23 11:03:24 +03:00
|
|
|
.if ${MKCOMPATX11} != no && ${MKX11} != no && make(obj)
|
2015-06-25 01:20:24 +03:00
|
|
|
SUBDIR+= ../../../external/mit/xorg/lib
|
|
|
|
.endif # } MKX11
|
|
|
|
.endif # } BOOTSTRAP_SUBDIRS
|
2009-12-13 12:27:13 +03:00
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|
|
|
|
|
|
|
|
.endif
|
|
|
|
.endif
|