| version 1.24, 1993/08/15 19:26:10 |
version 1.25, 1993/08/15 19:37:10 |
|
|
| # @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 |
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 |
| |
# $Id$ |
| |
|
| .if exists(${.CURDIR}/../Makefile.inc) |
.if exists(${.CURDIR}/../Makefile.inc) |
| .include "${.CURDIR}/../Makefile.inc" |
.include "${.CURDIR}/../Makefile.inc" |
|
|
| .8.0 .7.0 .6.0 .5.0 .4.0 .3.0 .2.0 .1.0: |
.8.0 .7.0 .6.0 .5.0 .4.0 .3.0 .2.0 .1.0: |
| nroff -mandoc ${.IMPSRC} > ${.TARGET} |
nroff -mandoc ${.IMPSRC} > ${.TARGET} |
| |
|
| CFLAGS+=${COPTS} |
CFLAGS+= ${COPTS} |
| |
|
| STRIP?= -s |
STRIP?= -s |
| |
|
| Line 124 cleandir: _PROGSUBDIR |
|
| Line 125 cleandir: _PROGSUBDIR |
|
| .endif |
.endif |
| |
|
| # some of the rules involve .h sources, so remove them from mkdep line |
# some of the rules involve .h sources, so remove them from mkdep line |
| .if !target(depend) |
.include <bsd.dep.mk> |
| depend: .depend _PROGSUBDIR |
depend: _PROGSUBDIR |
| .depend: ${SRCS} |
|
| .if defined(PROG) |
|
| rm -f .depend |
|
| files="${.ALLSRC:M*.c}"; \ |
|
| if [ "$$files" != "" ]; then \ |
|
| mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \ |
|
| fi |
|
| files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \ |
|
| if [ "$$files" != " " ]; then \ |
|
| mkdep -a ${MKDEP} -+ ${CXXFLAGS:M-[ID]*} $$files; \ |
|
| fi |
|
| .endif |
|
| .endif |
|
| |
|
| .if !target(install) |
.if !target(install) |
| .if !target(beforeinstall) |
.if !target(beforeinstall) |