summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-17 13:36:44 +0000
committerbde <bde@FreeBSD.org>1997-12-17 13:36:44 +0000
commitc0bce29b7dfd3768c18acd8db03224eae64522cb (patch)
treeb3fb78148e356c25c3674ccdc496411f48b5a789 /share/mk
parenta3800989c11caa7f22124276aee991f67f91098c (diff)
downloadFreeBSD-src-c0bce29b7dfd3768c18acd8db03224eae64522cb.zip
FreeBSD-src-c0bce29b7dfd3768c18acd8db03224eae64522cb.tar.gz
Normally don't include <bsd.libnames.mk>. Include it in the !aout case
(as in bsd.prog.mk). Include it if `checkdpadd' is being made, so that it can be checked until it goes away. Don't clean files that we don't create. Fixed style of empty test.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.lib.mk14
1 files changed, 8 insertions, 6 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 465b5f7..3395e2d 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
-# $Id: bsd.lib.mk,v 1.62 1997/09/05 09:09:55 peter Exp $
+# $Id: bsd.lib.mk,v 1.63 1997/09/05 11:45:12 peter Exp $
#
.if exists(${.CURDIR}/../Makefile.inc)
@@ -33,7 +33,9 @@ CFLAGS+= ${DEBUG_FLAGS}
STRIP?= -s
.endif
+.if ${BINFORMAT} != aout || make(checkdpadd)
.include <bsd.libnames.mk>
+.endif
.MAIN: all
@@ -194,10 +196,10 @@ llib-l${LIB}.ln: ${SRCS}
.if !target(clean)
clean: _SUBDIR
- rm -f a.out Errs errs mklog ${CLEANFILES} ${OBJS}
- rm -f lib${LIB}.a llib-l${LIB}.ln
- rm -f ${POBJS} profiled/*.o lib${LIB}_p.a
- rm -f ${SOBJS} shared/*.o
+ rm -f a.out ${OBJS} ${CLEANFILES}
+ rm -f lib${LIB}.a # llib-l${LIB}.ln
+ rm -f ${POBJS} lib${LIB}_p.a
+ rm -f ${SOBJS}
rm -f lib${LIB}.so.*.* lib${LIB}_pic.a
.if defined(CLEANDIRS) && !empty(CLEANDIRS)
rm -rf ${CLEANDIRS}
@@ -218,7 +220,7 @@ _EXTRADEPEND::
`${LDDESTDIRENV} ${CC} -shared -Wl,-f ${LDDESTDIR} ${LDADD}` \
>> ${DEPENDFILE}
.else
-.if defined(DPADD) && ${DPADD} != ""
+.if defined(DPADD) && !empty(DPADD)
echo lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: \
${DPADD} >> ${DEPENDFILE}
.endif
OpenPOWER on IntegriCloud