Added a `checkdpadd' target to help check that ${DPADD} is consistent with
${LDADD}. It doesn't handle internal libraries very well yet.
This commit is contained in:
parent
6a2c9543a5
commit
373fdd9648
@ -1,4 +1,4 @@
|
||||
# $Id: bsd.obj.mk,v 1.10 1996/09/19 06:58:26 peter Exp $
|
||||
# $Id: bsd.obj.mk,v 1.11 1996/09/20 16:08:21 bde Exp $
|
||||
#
|
||||
# The include file <bsd.obj.mk> handles creating 'obj' directory
|
||||
# and cleaning up object files, log files etc.
|
||||
@ -131,4 +131,16 @@ cleandepend:
|
||||
clean: cleanfiles _SUBDIR
|
||||
.endif
|
||||
|
||||
.if !target(checkdpadd)
|
||||
checkdpadd: _SUBDIR
|
||||
.if (defined(DPADD) || defined(LDADD))
|
||||
checkdpadd:
|
||||
@if [ "${DPADD:S;^/usr/lib/lib;-l;S;.a$;;}" != "${LDADD}" ] ; then \
|
||||
echo ${.CURDIR} ; \
|
||||
echo "DPADD -> " ${DPADD:S;^/usr/lib/lib;-l;S;.a$;;} ; \
|
||||
echo "LDADD = " ${LDADD} ; \
|
||||
fi
|
||||
.endif
|
||||
.endif
|
||||
|
||||
cleandir: cleanobj _SUBDIR
|
||||
|
@ -1,5 +1,5 @@
|
||||
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
|
||||
# $Id: bsd.subdir.mk,v 1.9 1996/04/05 22:22:44 wosch Exp $
|
||||
# $Id: bsd.subdir.mk,v 1.10 1996/06/24 21:33:23 jkh Exp $
|
||||
|
||||
.MAIN: all
|
||||
|
||||
@ -26,7 +26,8 @@ ${SUBDIR}::
|
||||
${MAKE} all
|
||||
|
||||
|
||||
.for __target in all clean cleandir cleandepend obj objlink depend maninstall lint tags
|
||||
.for __target in all checkdpadd clean cleandepend cleandir depend lint \
|
||||
maninstall obj objlink tags
|
||||
.if !target(__target)
|
||||
${__target}: _SUBDIRUSE
|
||||
.endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user