1 # $NetBSD: Makefile.inc,v 1.4 1995/10/01 06:00:38 phil Exp $ 2 # 3 # NOTE: $S must correspond to the top of the 'sys' tree 4 SADIR= $S/lib/libsa 5 6 SADST= lib/sa 7 SAREL?= ../../ 8 SALIB?= ${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}" libsa.a) 18 .else 19 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 20 KERNCC="${CC}" \ 21 KERNCFLAGS="${CFLAGS}" \ 22 SAREL="${SAREL}" \ 23 SADIR="${SADIR}" \ 24 NO_NET="" libsa.a) 25 .endif 26 27 clean:: .NOTMAIN __always_make_salib 28 @echo cleaning the stand-alone library objects 29 @(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 30 KERNCC="${CC}" \ 31 KERNCFLAGS="${CFLAGS}" \ 32 SAREL="${SAREL}" \ 33 SADIR="${SADIR}" clean) 34 35 __always_make_salib: .NOTMAIN 36 @([ -d ${SADST} ] || mkdir -p ${SADST}) 37 38