Makefile.inc revision 1.7
1#	$NetBSD: Makefile.inc,v 1.7 1997/01/02 22:06:51 christos 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:Q} \
15	  KERNCFLAGS=${CFLAGS:Q} \
16	  SAREL=${SAREL:Q} \
17	  SADIR=${SADIR:Q} \
18	  EXTRACFLAGS=${EXTRACFLAGS:Q} libsa.a)
19.else
20	@(cd ${SADST} && ${MAKE} -f ${SAREL}${SADIR}/Makefile \
21	  KERNCC=${CC:Q} \
22	  KERNCFLAGS=${CFLAGS:Q} \
23	  SAREL=${SAREL:Q} \
24	  SADIR=${SADIR:Q} \
25	  NO_NET="" \
26	  EXTRACFLAGS=${EXTRACFLAGS:Q} 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:Q} \
33	  KERNCFLAGS=${CFLAGS:Q} \
34	  SAREL=${SAREL:Q} \
35	  SADIR=${SADIR:Q} clean)
36
37__always_make_salib:	.NOTMAIN
38	@([ -d ${SADST} ] || mkdir -p ${SADST})
39
40