Only run LIBDIR.${_SL}!= if it isn't defined, and add it to .MAKEOVERRIDES.

Noticably improves make's performance when traversing this subtree...
This commit is contained in:
lukem 2003-10-24 14:50:51 +00:00
parent 5207acb8cf
commit 8a6b8a5e46
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,10 @@
# $NetBSD: Makefile,v 1.2 2003/09/13 07:03:30 lukem Exp $
# $NetBSD: Makefile,v 1.3 2003/10/24 14:50:51 lukem Exp $
.include <bsd.own.mk>
SUBDIR= Xnest Xprt Xvfb
XTODO= XFree86
.include "Makefile.Xserver"
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.Xserver,v 1.2 2003/09/23 23:21:06 lukem Exp $
# $NetBSD: Makefile.Xserver,v 1.3 2003/10/24 14:50:51 lukem Exp $
.PATH: ${NETBSDSRCDIR}/x11/Xserver/Xserver
@ -8,9 +8,12 @@
hw/xnest hw/vfb \
\
dix/xpstubs
.if !defined(LIBDIR.${_SL})
LIBDIR.${_SL}!= cd ${NETBSDSRCDIR}/x11/Xserver/${_SL} && ${PRINTOBJDIR}
.MAKEOVERRIDES+=LIBDIR.${_SL}
LDADD.${_SL}= ${LIBDIR.${_SL}}/lib${_SL:T}.a
DPADD.${_SL}= ${LIBDIR.${_SL}}/lib${_SL:T}.a
.endif
.endfor
LIBCWRAPPER= ${LIBDIR.os}/libc_wrapper.o