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 retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- src/share/mk/bsd.prog.mk 1993/03/23 07:26:55 1.3 +++ src/share/mk/bsd.prog.mk 1993/03/27 12:17:32 1.4 @@ -17,6 +17,8 @@ BINGRP?= bin BINOWN?= bin BINMODE?= 555 + +LIBCRT0?= /usr/lib/crt0.o LIBC?= /usr/lib/libc.a LIBCOMPAT?= /usr/lib/libcompat.a LIBCURSES?= /usr/lib/libcurses.a @@ -47,9 +49,18 @@ CLEANFILES+=strings OBJS+= ${SRCS:R:S/$/.o/g} +.if defined(LDONLY) + +${PROG}: ${LIBCRT0} ${LIBC} ${OBJS} ${DPADD} + ${LD} ${LDFLAGS} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD} + +.else defined(LDONLY) + ${PROG}: ${OBJS} ${LIBC} ${DPADD} ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD} +.endif + .else defined(PROG) SRCS= ${PROG}.c @@ -88,11 +99,12 @@ all: ${PROG} ${MANALL} _PROGSUBDIR .if !target(clean) clean: _PROGSUBDIR rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} + rm -f .depend ${MANALL} .endif .if !target(cleandir) cleandir: _PROGSUBDIR - rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} + rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} ${MANALL} rm -f .depend ${MANALL} .endif @@ -115,7 +127,7 @@ afterinstall: realinstall: _PROGSUBDIR .if defined(PROG) - install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + install -c ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${PROG} ${DESTDIR}${BINDIR} .endif .if defined(HIDEGAME)