.if exists
(${.CURDIR
}/..
/Makefile.inc
)
.
include "${.CURDIR}/../Makefile.inc"
LIBCOMPAT?
= /usr
/lib
/libcompat.a
LIBCURSES?
= /usr
/lib
/libcurses.a
LIBDBM?
= /usr
/lib
/libdbm.a
LIBDES?
= /usr
/lib
/libdes.a
LIBKDB?
= /usr
/lib
/libkdb.a
LIBKRB?
= /usr
/lib
/libkrb.a
LIBPLOT?
= /usr
/lib
/libplot.a
LIBRPC?
= /usr
/lib
/sunrpc.a
LIBTERM?
= /usr
/lib
/libterm.a
LIBUTIL?
= /usr
/lib
/libutil.a
${PROG}: ${OBJS} ${LIBC} ${DPADD}
${CC} ${LDFLAGS} -o
${.TARGET
} ${OBJS} ${LDADD}
${PROG}: ${SRCS} ${LIBC} ${DPADD}
${CC} ${CFLAGS} -o
${.TARGET
} ${.CURDIR
}/${SRCS} ${LDADD}
.if
!defined
(MAN1
) && !defined
(MAN2
) && !defined
(MAN3
) && \
!defined
(MAN4
) && !defined
(MAN5
) && !defined
(MAN6
) && \
!defined
(MAN7
) && !defined
(MAN8
) && !defined
(NOMAN
)
MANALL
= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}
.if defined
(SUBDIR
) && !empty
(SUBDIR
)
@for entry in
${SUBDIR}; do \
if
test -d
${.CURDIR
}/$${entry}.
${MACHINE}; then \
cd
${.CURDIR
}/$${entry}.
${MACHINE}; \
cd
${.CURDIR
}/$${entry}; \
all: ${PROG} ${MANALL} PROGSUBDIR
rm -f a.out
[Ee
]rrs mklog core
${PROG} ${OBJS} ${CLEANFILES}
rm -f a.out
[Ee
]rrs mklog core
${PROG} ${OBJS} ${CLEANFILES}
rm -f .depend
${.CURDIR
}/tags ${MANALL}
# some of the rules involve .h sources, so remove them from mkdep line
STDDEPEND
: ${SRCS} PROGSUBDIR
mkdep
${CFLAGS
:M-
[ID
]*} ${.ALLSRC
:M
*.c
}
install ${STRIP} -o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
${PROG} ${DESTDIR}${BINDIR}
(cd
${DESTDIR}/usr
/games
; rm -f
${PROG}; ln
-s dm
${PROG}; \
@
${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC
} | more
2>&1
tags -f
${.CURDIR
}/tags ${.ALLSRC
}