Makefile.inc revision 1.3
1# $NetBSD: Makefile.inc,v 1.3 1995/09/14 20:55:01 pk Exp $ 2# 3# NOTE: $S must correspond to the top of the 'sys' tree 4SADIR= $S/lib/libsa 5 6SADST= lib/sa 7SAREL?= ../../ 8SALIB?= ${SADST}/libsa.a 9 10${SALIB}: .NOTMAIN __always_make_salib 11 @echo making sure the stand-alone library is up to date... 12 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 13 KERNCC="${CC}" \ 14 KERNCFLAGS="${CFLAGS}" \ 15 SAREL="${SAREL}" \ 16 SADIR="${SADIR}" libsa.a) 17 18clean:: .NOTMAIN __always_make_salib 19 @echo cleaning the stand-alone library objects 20 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 21 KERNCC="${CC}" \ 22 KERNCFLAGS="${CFLAGS}" \ 23 SAREL="${SAREL}" \ 24 SADIR="${SADIR}" clean) 25 26__always_make_salib: .NOTMAIN 27 @([ -d ${SADST} ] || mkdir -p ${SADST}) 28 29