version 1.6, 1993/04/08 14:02:02 |
version 1.20, 1993/07/17 13:43:56 |
|
|
.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} |
|
|
BINOWN?= bin |
BINOWN?= bin |
BINMODE?= 555 |
BINMODE?= 555 |
|
|
|
|
LIBCRT0?= /usr/lib/crt0.o |
LIBCRT0?= /usr/lib/crt0.o |
LIBC?= /usr/lib/libc.a |
LIBC?= /usr/lib/libc.a |
LIBCOMPAT?= /usr/lib/libcompat.a |
LIBCOMPAT?= /usr/lib/libcompat.a |
|
.ifndef EXPORTABLE_SYSTEM |
|
LIBCRYPT?= /usr/lib/libcrypt.a |
|
.endif |
LIBCURSES?= /usr/lib/libcurses.a |
LIBCURSES?= /usr/lib/libcurses.a |
LIBDBM?= /usr/lib/libdbm.a |
LIBDBM?= /usr/lib/libdbm.a |
LIBDES?= /usr/lib/libdes.a |
LIBDES?= /usr/lib/libdes.a |
Line 33 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 42 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) |
Line 66 ${PROG}: ${OBJS} ${LIBC} ${DPADD} |
|
Line 79 ${PROG}: ${OBJS} ${LIBC} ${DPADD} |
|
SRCS= ${PROG}.c |
SRCS= ${PROG}.c |
|
|
${PROG}: ${SRCS} ${LIBC} ${DPADD} |
${PROG}: ${SRCS} ${LIBC} ${DPADD} |
${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD} |
${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${SRCS} ${LDADD} |
|
|
MKDEP= -p |
MKDEP= -p |
|
|
|
|
|
|
.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \ |
.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \ |
!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \ |
!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \ |
!defined(MAN7) && !defined(MAN8) && !defined(NOMAN) |
!defined(MAN7) && !defined(MAN8) |
MAN1= ${PROG}.0 |
MAN1= ${PROG}.0 |
.endif |
.endif |
.endif |
.endif |
|
|
|
.if !defined(NOMAN) |
MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8} |
MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8} |
|
.endif |
|
|
_PROGSUBDIR: .USE |
_PROGSUBDIR: .USE |
.if defined(SUBDIR) && !empty(SUBDIR) |
.if defined(SUBDIR) && !empty(SUBDIR) |
Line 99 all: ${PROG} ${MANALL} _PROGSUBDIR |
|
Line 115 all: ${PROG} ${MANALL} _PROGSUBDIR |
|
.if !target(clean) |
.if !target(clean) |
clean: _PROGSUBDIR |
clean: _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 ${MANALL} |
|
.endif |
.endif |
|
|
.if !target(cleandir) |
.if !target(cleandir) |
cleandir: _PROGSUBDIR |
cleandir: _PROGSUBDIR |
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} ${MANALL} |
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} |
rm -f .depend ${MANALL} |
rm -f .depend ${MANALL} |
.endif |
.endif |
|
|
Line 113 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 |
|
|
.if !target(install) |
.if !target(install) |
.if !target(beforeinstall) |
.if !target(beforeinstall) |
beforeinstall: |
beforeinstall: |
@if [ ! -d ${DESTDIR}${BINDIR} ]; then \ |
.if defined(DESTDIR) || defined(BINDIR) |
/bin/rm ${DESTDIR}${BINDIR} ; \ |
@if [ ! -d "${DESTDIR}${BINDIR}" ]; then \ |
|
/bin/rm -f ${DESTDIR}${BINDIR} ; \ |
mkdir -p ${DESTDIR}${BINDIR} ; \ |
mkdir -p ${DESTDIR}${BINDIR} ; \ |
chown root.wheel ${DESTDIR}${BINDIR} ; \ |
chown root.wheel ${DESTDIR}${BINDIR} ; \ |
chmod 755 ${DESTDIR}${BINDIR} ; \ |
chmod 755 ${DESTDIR}${BINDIR} ; \ |
|
|
true ; \ |
true ; \ |
fi |
fi |
.endif |
.endif |
|
.endif |
.if !target(afterinstall) |
.if !target(afterinstall) |
afterinstall: |
afterinstall: |
.endif |
.endif |
|
|
|
.if !target(realinstall) |
realinstall: _PROGSUBDIR |
realinstall: _PROGSUBDIR |
.if defined(PROG) |
.if defined(PROG) |
install -c ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ |
install ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ |
${PROG} ${DESTDIR}${BINDIR} |
${PROG} ${DESTDIR}${BINDIR} |
.endif |
.endif |
.if defined(HIDEGAME) |
.if defined(HIDEGAME) |
Line 154 realinstall: _PROGSUBDIR |
|
Line 180 realinstall: _PROGSUBDIR |
|
ln $$l $$t; \ |
ln $$l $$t; \ |
done; true |
done; true |
.endif |
.endif |
|
.endif |
|
|
install: maninstall |
install: maninstall |
maninstall: afterinstall |
maninstall: afterinstall |