summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/Makefile.inc
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-06 14:22:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-06 14:22:34 +0000
commit2e7326637e61f011d39058f6e99e26c9008c4a53 (patch)
treee883e132e6926368e126b398f76957b6839a66a3 /sys/lib/libsa/Makefile.inc
parentf5deb2d68c8ffb793e3e05b713b05e865f88476f (diff)
remove net/zlib.c (use -lz now)
export NO_NET and SA_ZLIB to the Makefile (from Makefile.inc) add -p printf flag (tiny code) just for gcc -Wall import latest alloc.c from netbsd text data bss dec hex 400 8 0 408 198
Diffstat (limited to 'sys/lib/libsa/Makefile.inc')
-rw-r--r--sys/lib/libsa/Makefile.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/lib/libsa/Makefile.inc b/sys/lib/libsa/Makefile.inc
index 95e1c5373ed..d45b9d2710b 100644
--- a/sys/lib/libsa/Makefile.inc
+++ b/sys/lib/libsa/Makefile.inc
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile.inc,v 1.4 1996/12/08 15:15:44 niklas Exp $
+# $OpenBSD: Makefile.inc,v 1.5 1997/02/06 14:22:32 mickey Exp $
# $NetBSD: Makefile.inc,v 1.5 1996/09/30 16:01:18 ws Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
SADIR= $S/lib/libsa
-SADST= lib/sa
+SADST?= lib/sa
SAREL?= ../../
SALIB?= ${SADST}/libsa.a
@@ -17,14 +17,16 @@ SAMAKE= \
SAREL="${SAREL}" \
SADIR="${SADIR}" \
EXTRACFLAGS="${EXTRACFLAGS}"
+.if defined(NO_NET)
+SAMAKE+= NO_NET=""
+.endif
+.if defined(SA_ZLIB)
+SAMAKE+= SA_ZLIB=""
+.endif
${SALIB}: .NOTMAIN __always_make_salib
@echo making sure the stand-alone library is up to date...
-.if !defined(NO_NET)
@${SAMAKE} libsa.a
-.else
- @${SAMAKE} NO_NET="" libsa.a
-.endif
clean:: .NOTMAIN __always_make_salib
@echo cleaning the stand-alone library objects