BSD 4_3_Reno release
[unix-history] / usr / src / share / mk / bsd.prog.mk
index adcb431..406f015 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)bsd.prog.mk 5.17 (Berkeley) %G%
+#      @(#)bsd.prog.mk 5.20 (Berkeley) 6/29/90
 
 .if exists(${.CURDIR}/../Makefile.inc)
 .include "${.CURDIR}/../Makefile.inc"
 
 .if exists(${.CURDIR}/../Makefile.inc)
 .include "${.CURDIR}/../Makefile.inc"
@@ -17,7 +17,7 @@ BINGRP?=      bin
 BINOWN?=       bin
 BINMODE?=      555
 
 BINOWN?=       bin
 BINMODE?=      555
 
-LIBC?=         /lib/libc.a
+LIBC?=         /usr/lib/libc.a
 LIBCOMPAT?=    /usr/lib/libcompat.a
 LIBCURSES?=    /usr/lib/libcurses.a
 LIBDBM?=       /usr/lib/libdbm.a
 LIBCOMPAT?=    /usr/lib/libcompat.a
 LIBCURSES?=    /usr/lib/libcurses.a
 LIBDBM?=       /usr/lib/libdbm.a
@@ -35,6 +35,7 @@ LIBTERM?=     /usr/lib/libterm.a
 LIBUTIL?=      /usr/lib/libutil.a
 
 .if defined(SHAREDSTRINGS)
 LIBUTIL?=      /usr/lib/libutil.a
 
 .if defined(SHAREDSTRINGS)
+CLEANFILES+=strings
 .c.o:
        ${CC} -E ${CFLAGS} ${.IMPSRC} | xstr -c -
        @${CC} ${CFLAGS} -c x.c -o ${.TARGET}
 .c.o:
        ${CC} -E ${CFLAGS} ${.IMPSRC} | xstr -c -
        @${CC} ${CFLAGS} -c x.c -o ${.TARGET}
@@ -56,6 +57,8 @@ SRCS= ${PROG}.c
 ${PROG}: ${SRCS} ${LIBC} ${DPADD}
        ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD}
 
 ${PROG}: ${SRCS} ${LIBC} ${DPADD}
        ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD}
 
+MKDEP= -p
+
 .endif
 
 .if    !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
 .endif
 
 .if    !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
@@ -98,7 +101,7 @@ cleandir: _PROGSUBDIR
 depend: .depend _PROGSUBDIR
 .depend: ${SRCS}
 .if defined(PROG)
 depend: .depend _PROGSUBDIR
 .depend: ${SRCS}
 .if defined(PROG)
-       mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
+       mkdep ${MKDEP} ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
 .endif
 .endif
 
 .endif
 .endif