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.37 retrieving revision 1.38 diff -u -p -r1.37 -r1.38 --- src/share/mk/bsd.prog.mk 1994/04/06 06:37:38 1.37 +++ src/share/mk/bsd.prog.mk 1994/05/22 23:03:58 1.38 @@ -1,5 +1,5 @@ # from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 -# $Id: bsd.prog.mk,v 1.37 1994/04/06 06:37:38 chopps Exp $ +# $Id: bsd.prog.mk,v 1.38 1994/05/22 23:03:58 jtc Exp $ .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" @@ -49,10 +49,13 @@ CLEANFILES+=strings @rm -f x.C .endif + .if defined(PROG) .if defined(SRCS) - OBJS+= ${SRCS:N*.h:R:S/$/.o/g} +.else +OBJS+= ${PROG}.o +.endif .if defined(LDONLY) @@ -66,17 +69,6 @@ ${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${DP .endif -.else - -SRCS= ${PROG}.c - -${PROG}: ${LIBCRT0} ${SRCS} ${LIBC} ${DPADD} - ${CC} ${LDFLAGS} ${LDSTATIC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD} - -MKDEP= -p - -.endif - .if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \ !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \ !defined(MAN7) && !defined(MAN8)