Makefile.inc revision 1.5
1# $NetBSD: Makefile.inc,v 1.5 1996/09/30 16:01:18 ws 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.if !defined(NO_NET) 13 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 14 KERNCC="${CC}" \ 15 KERNCFLAGS="${CFLAGS}" \ 16 SAREL="${SAREL}" \ 17 SADIR="${SADIR}" \ 18 EXTRACFLAGS="${EXTRACFLAGS}" libsa.a) 19.else 20 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 21 KERNCC="${CC}" \ 22 KERNCFLAGS="${CFLAGS}" \ 23 SAREL="${SAREL}" \ 24 SADIR="${SADIR}" \ 25 NO_NET="" \ 26 EXTRACFLAGS="${EXTRACFLAGS}" libsa.a) 27.endif 28 29clean:: .NOTMAIN __always_make_salib 30 @echo cleaning the stand-alone library objects 31 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 32 KERNCC="${CC}" \ 33 KERNCFLAGS="${CFLAGS}" \ 34 SAREL="${SAREL}" \ 35 SADIR="${SADIR}" clean) 36 37__always_make_salib: .NOTMAIN 38 @([ -d ${SADST} ] || mkdir -p ${SADST}) 39 40