Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.prog.mk,v rcsdiff: /ftp/cvs/cvsroot/src/share/mk/bsd.prog.mk,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.87 retrieving revision 1.95 diff -u -p -r1.87 -r1.95 --- src/share/mk/bsd.prog.mk 1997/09/29 15:02:49 1.87 +++ src/share/mk/bsd.prog.mk 1998/09/10 00:40:33 1.95 @@ -1,16 +1,19 @@ -# $NetBSD: bsd.prog.mk,v 1.87 1997/09/29 15:02:49 gwr Exp $ +# $NetBSD: bsd.prog.mk,v 1.95 1998/09/10 00:40:33 ross Exp $ # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 +.if !target(__initialized__) +__initialized__: .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" .endif - .include - +.include .MAIN: all +.endif + .PHONY: cleanprog proginstall scriptsinstall realinstall: proginstall scriptsinstall -clean cleandir: cleanprog +clean cleandir distclean: cleanprog CFLAGS+= ${COPTS} @@ -25,7 +28,9 @@ LIBCRTEND?= .endif LIBCRT0?= ${DESTDIR}/usr/lib/crt0.o + LIBBFD?= ${DESTDIR}/usr/lib/libbfd.a +LIBBZ2?= ${DESTDIR}/usr/lib/libbz2.a LIBC?= ${DESTDIR}/usr/lib/libc.a LIBC_PIC?= ${DESTDIR}/usr/lib/libc_pic.a LIBCOMPAT?= ${DESTDIR}/usr/lib/libcompat.a @@ -43,6 +48,7 @@ LIBL?= ${DESTDIR}/usr/lib/libl.a LIBM?= ${DESTDIR}/usr/lib/libm.a LIBMP?= ${DESTDIR}/usr/lib/libmp.a LIBNTP?= ${DESTDIR}/usr/lib/libntp.a +LIBOBJC?= ${DESTDIR}/usr/lib/libobjc.a LIBPC?= ${DESTDIR}/usr/lib/libpc.a LIBPCAP?= ${DESTDIR}/usr/lib/libpcap.a LIBPLOT?= ${DESTDIR}/usr/lib/libplot.a @@ -83,6 +89,9 @@ SRCS?= ${PROG}.c DPSRCS+= ${SRCS:M*.l:.l=.c} ${SRCS:M*.y:.y=.c} CLEANFILES+= ${DPSRCS} +.if defined(YHEADER) +CLEANFILES+= ${SRCS:M*.y:.y=.h} +.endif .if !empty(SRCS:N*.h:N*.sh) OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} @@ -180,21 +189,16 @@ scriptsinstall:: lint: ${LOBJS} .if defined(LOBJS) && !empty(LOBJS) - @${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD} + ${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD} .endif -.if !defined(NOMAN) .include -.endif - -.if !defined(NONLS) .include -.endif - -.include .include .include .include .include -.include .include + +# Make sure all of the standard targets are defined, even if they do nothing. +regress: