1# $OpenBSD: Makefile.inc,v 1.3 2014/07/16 20:08:25 okan Exp $ 2# $NetBSD: Makefile.inc,v 1.5 1996/09/30 16:01:18 ws Exp $ 3# 4# NOTE: $S must correspond to the top of the 'sys' tree 5SADIR= $S/lib/libsa 6 7SADST?= lib/sa 8SAREL?= ../../ 9SALIB?= ${SADST}/libsa.a 10 11SAMAKE= \ 12 cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \ 13 CC="${CC}" XCFLAGS="${CFLAGS}" \ 14 AS='${AS}' XAFLAGS='${AFLAGS}' \ 15 LD='${LD}' \ 16 SAREL="${SAREL}" \ 17 SADIR="${SADIR}" \ 18 EXTRACFLAGS="${EXTRACFLAGS}" 19.if defined(NO_NET) 20SAMAKE+= NO_NET="" 21.endif 22.if defined(SA_ZLIB) 23SAMAKE+= SA_ZLIB="" 24.endif 25 26${SALIB}: .NOTMAIN __always_make_salib 27 @echo making sure the stand-alone library is up to date... 28 @${SAMAKE} libsa.a 29 30clean: .NOTMAIN __always_make_salib 31 @echo cleaning the stand-alone library objects 32 @${SAMAKE} clean 33 34depend: .NOTMAIN __always_make_salib 35 @echo depending the standalone library objects 36 @${SAMAKE} depend 37 38__always_make_salib: .NOTMAIN 39 @([ -d ${SADST} ] || mkdir -p ${SADST}) 40