version 1.1.1.1, 1993/03/21 09:45:37 |
version 1.5, 1993/04/04 15:30:16 |
|
|
BINOWN?= bin |
BINOWN?= bin |
BINMODE?= 555 |
BINMODE?= 555 |
|
|
|
|
|
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 |
LIBCURSES?= /usr/lib/libcurses.a |
LIBCURSES?= /usr/lib/libcurses.a |
Line 30 LIBMP?= /usr/lib/libmp.a |
|
Line 32 LIBMP?= /usr/lib/libmp.a |
|
LIBPC?= /usr/lib/libpc.a |
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/sunrpc.a |
LIBRPC?= /usr/lib/librpc.a |
LIBTERM?= /usr/lib/libterm.a |
LIBTERM?= /usr/lib/libterm.a |
LIBUTIL?= /usr/lib/libutil.a |
LIBUTIL?= /usr/lib/libutil.a |
|
|
Line 47 CLEANFILES+=strings |
|
Line 49 CLEANFILES+=strings |
|
|
|
OBJS+= ${SRCS:R:S/$/.o/g} |
OBJS+= ${SRCS:R:S/$/.o/g} |
|
|
|
.if defined(LDONLY) |
|
|
|
${PROG}: ${LIBCRT0} ${LIBC} ${OBJS} ${DPADD} |
|
${LD} ${LDFLAGS} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD} |
|
|
|
.else defined(LDONLY) |
|
|
${PROG}: ${OBJS} ${LIBC} ${DPADD} |
${PROG}: ${OBJS} ${LIBC} ${DPADD} |
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD} |
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD} |
|
|
|
.endif |
|
|
.else defined(PROG) |
.else defined(PROG) |
|
|
SRCS= ${PROG}.c |
SRCS= ${PROG}.c |
Line 88 all: ${PROG} ${MANALL} _PROGSUBDIR |
|
Line 99 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} |
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} ${MANALL} |
rm -f .depend ${MANALL} |
rm -f .depend ${MANALL} |
.endif |
.endif |
|
|
|
|
|
|
realinstall: _PROGSUBDIR |
realinstall: _PROGSUBDIR |
.if defined(PROG) |
.if defined(PROG) |
install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ |
install -c ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ |
${PROG} ${DESTDIR}${BINDIR} |
${PROG} ${DESTDIR}${BINDIR} |
.endif |
.endif |
.if defined(HIDEGAME) |
.if defined(HIDEGAME) |
Line 153 lint: ${SRCS} _PROGSUBDIR |
|
Line 165 lint: ${SRCS} _PROGSUBDIR |
|
obj: _PROGSUBDIR |
obj: _PROGSUBDIR |
.else |
.else |
obj: _PROGSUBDIR |
obj: _PROGSUBDIR |
@cd ${.CURDIR}; rm -rf obj; \ |
@cd ${.CURDIR}; rm -f obj > /dev/null 2>&1 || true; \ |
here=`pwd`; dest=/usr/obj/`echo $$here | sed 's,/usr/src/,,'`; \ |
here=`pwd`; subdir=`echo $$here | sed 's,^/usr/src/,,'`; \ |
echo "$$here -> $$dest"; ln -s $$dest obj; \ |
if test $$here != $$subdir ; then \ |
if test -d /usr/obj -a ! -d $$dest; then \ |
dest=/usr/obj/$$subdir ; \ |
mkdir -p $$dest; \ |
echo "$$here -> $$dest"; ln -s $$dest obj; \ |
|
if test -d /usr/obj -a ! -d $$dest; then \ |
|
mkdir -p $$dest; \ |
|
else \ |
|
true; \ |
|
fi; \ |
else \ |
else \ |
true; \ |
true ; \ |
|
dest=$$here/obj ; \ |
|
echo "making $$here/obj" ; \ |
|
if test ! -d obj ; then \ |
|
mkdir $$here/obj; \ |
|
fi ; \ |
fi; |
fi; |
.endif |
.endif |
.endif |
.endif |