version 1.15, 1993/04/26 13:07:59 |
version 1.22, 1993/07/30 03:40:12 |
|
|
.include "${.CURDIR}/../Makefile.inc" |
.include "${.CURDIR}/../Makefile.inc" |
.endif |
.endif |
|
|
.SUFFIXES: .out .o .c .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0 |
.SUFFIXES: .out .o .c .cc .C .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0 |
|
|
.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} |
Line 35 LIBPC?= /usr/lib/libpc.a |
|
Line 35 LIBPC?= /usr/lib/libpc.a |
|
LIBPLOT?= /usr/lib/libplot.a |
LIBPLOT?= /usr/lib/libplot.a |
LIBRESOLV?= /usr/lib/libresolv.a |
LIBRESOLV?= /usr/lib/libresolv.a |
LIBRPC?= /usr/lib/librpc.a |
LIBRPC?= /usr/lib/librpc.a |
|
LIBRPCSVC?= /usr/lib/librpcsvc.a |
LIBTERM?= /usr/lib/libterm.a |
LIBTERM?= /usr/lib/libterm.a |
LIBUTIL?= /usr/lib/libutil.a |
LIBUTIL?= /usr/lib/libutil.a |
|
|
Line 44 CLEANFILES+=strings |
|
Line 45 CLEANFILES+=strings |
|
${CC} -E ${CFLAGS} ${.IMPSRC} | xstr -c - |
${CC} -E ${CFLAGS} ${.IMPSRC} | xstr -c - |
@${CC} ${CFLAGS} -c x.c -o ${.TARGET} |
@${CC} ${CFLAGS} -c x.c -o ${.TARGET} |
@rm -f x.c |
@rm -f x.c |
|
|
|
.cc.o: |
|
${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c - |
|
@mv -f x.c x.cc |
|
@${CXX} ${CXXFLAGS} -c x.cc -o ${.TARGET} |
|
|
|
.C.o: |
|
${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c - |
|
@mv -f x.c x.C |
|
@${CXX} ${CXXFLAGS} -c x.C -o ${.TARGET} |
.endif |
.endif |
|
|
.if defined(PROG) |
.if defined(PROG) |
.if defined(SRCS) |
.if defined(SRCS) |
|
|
OBJS+= ${SRCS:R:S/$/.o/g} |
OBJS+= ${SRCS:N*.h:R:S/$/.o/g} |
|
|
.if defined(LDONLY) |
.if defined(LDONLY) |
|
|
Line 117 cleandir: _PROGSUBDIR |
|
Line 128 cleandir: _PROGSUBDIR |
|
depend: .depend _PROGSUBDIR |
depend: .depend _PROGSUBDIR |
.depend: ${SRCS} |
.depend: ${SRCS} |
.if defined(PROG) |
.if defined(PROG) |
mkdep ${MKDEP} ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c} |
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 |
.endif |
.endif |
|
|
Line 194 obj: _PROGSUBDIR |
|
Line 213 obj: _PROGSUBDIR |
|
else \ |
else \ |
true ; \ |
true ; \ |
dest=$$here/obj ; \ |
dest=$$here/obj ; \ |
echo "making $$here/obj" ; \ |
|
if test ! -d obj ; then \ |
if test ! -d obj ; then \ |
mkdir $$here/obj; \ |
echo "making $$dest" ; \ |
|
mkdir $$dest; \ |
fi ; \ |
fi ; \ |
fi; |
fi; |
.endif |
.endif |