NetBSD/sys/lib/libsa/Makefile.inc

38 lines
971 B
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.4 1995/10/01 06:00:38 phil Exp $
1994-01-26 05:03:32 +03:00
#
# NOTE: $S must correspond to the top of the 'sys' tree
1995-09-15 00:55:00 +04:00
SADIR= $S/lib/libsa
1994-01-26 05:03:32 +03:00
1995-09-15 00:55:00 +04:00
SADST= lib/sa
SAREL?= ../../
SALIB?= ${SADST}/libsa.a
1994-01-26 05:03:32 +03:00
1995-09-15 00:55:00 +04:00
${SALIB}: .NOTMAIN __always_make_salib
@echo making sure the stand-alone library is up to date...
.if !defined(NO_NET)
1995-09-15 00:55:00 +04:00
@(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
KERNCC="${CC}" \
KERNCFLAGS="${CFLAGS}" \
SAREL="${SAREL}" \
SADIR="${SADIR}" libsa.a)
.else
@(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
KERNCC="${CC}" \
KERNCFLAGS="${CFLAGS}" \
SAREL="${SAREL}" \
SADIR="${SADIR}" \
NO_NET="" libsa.a)
.endif
1994-01-26 05:03:32 +03:00
1995-09-15 00:55:00 +04:00
clean:: .NOTMAIN __always_make_salib
@echo cleaning the stand-alone library objects
@(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
KERNCC="${CC}" \
KERNCFLAGS="${CFLAGS}" \
SAREL="${SAREL}" \
SADIR="${SADIR}" clean)
1994-01-26 05:03:32 +03:00
1995-09-15 00:55:00 +04:00
__always_make_salib: .NOTMAIN
@([ -d ${SADST} ] || mkdir -p ${SADST})
1994-01-26 05:03:32 +03:00