diff options
author | peter <peter@FreeBSD.org> | 1998-08-08 13:22:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-08-08 13:22:06 +0000 |
commit | 619dff5a8c524e947ceb9cc9b3489b2408e79c8b (patch) | |
tree | fc4c27446105287444839f47b1418d342a61c8e1 /share/mk/bsd.lib.mk | |
parent | 6e4221c1c89b4adeec40740bf3f2a74ad23f76d0 (diff) | |
download | FreeBSD-src-619dff5a8c524e947ceb9cc9b3489b2408e79c8b.zip FreeBSD-src-619dff5a8c524e947ceb9cc9b3489b2408e79c8b.tar.gz |
Clean up all temporaries that we can generate.
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 0dfeb37..7fdc914 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.75 1998/08/08 07:02:07 peter Exp $ +# $Id: bsd.lib.mk,v 1.76 1998/08/08 13:11:44 peter Exp $ # .if !target(__initialized__) @@ -181,8 +181,8 @@ lib${LIB}.a:: ${OBJS} @${AR} cq lib${LIB}.a `lorder ${OBJS} | tsort -q` ${ARADD} ${RANLIB} lib${LIB}.a -.if !defined(NOPROFILE) POBJS+= ${OBJS:.o=.po} +.if !defined(NOPROFILE) lib${LIB}_p.a:: ${POBJS} @${ECHO} building profiled ${LIB} library @rm -f lib${LIB}_p.a @@ -194,9 +194,9 @@ lib${LIB}_p.a:: ${POBJS} LDDESTDIRENV?= LIBRARY_PATH=${DESTDIR}${SHLIBDIR}:${DESTDIR}${LIBDIR} .endif -.if !defined(NOPIC) SOBJS+= ${OBJS:.o=.so} +.if !defined(NOPIC) .if ${BINFORMAT} == aout lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: ${SOBJS} @${ECHO} building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\) @@ -225,13 +225,10 @@ llib-l${LIB}.ln: ${SRCS} .if !target(clean) clean: _SUBDIR - rm -f a.out ${OBJS} ${CLEANFILES} + rm -f a.out ${OBJS} ${OBJS:S/$/.tmp/} ${CLEANFILES} rm -f lib${LIB}.a # llib-l${LIB}.ln - rm -f ${POBJS} lib${LIB}_p.a -.if defined(SOBJS) && !empty(SOBJS) - rm -f ${SOBJS} -.endif - rm -f lib${LIB}.so.*.* lib${LIB}_pic.a + rm -f ${POBJS} ${POBJS:S/$/.tmp/} lib${LIB}_p.a + rm -f ${SOBJS} ${SOBJS:S/$/.tmp/} lib${LIB}.so.*.* lib${LIB}_pic.a .if defined(CLEANDIRS) && !empty(CLEANDIRS) rm -rf ${CLEANDIRS} .endif |