version 1.1, 1993/03/21 09:45:37 |
version 1.12, 1993/05/26 11:48:40 |
|
|
@${LD} -X -r ${.TARGET} |
@${LD} -X -r ${.TARGET} |
@mv a.out ${.TARGET} |
@mv a.out ${.TARGET} |
|
|
|
.if !defined(NOMAN) |
MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8} |
MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8} |
|
.endif |
|
|
.if !defined(NOPROFILE) |
.if !defined(NOPROFILE) |
_LIBS=lib${LIB}.a lib${LIB}_p.a |
_LIBS=lib${LIB}.a lib${LIB}_p.a |
Line 77 llib-l${LIB}.ln: ${SRCS} |
|
Line 79 llib-l${LIB}.ln: ${SRCS} |
|
|
|
.if !target(clean) |
.if !target(clean) |
clean: |
clean: |
rm -f a.out Errs errs mklog core ${CLEANFILES} ${OBJS} ${POBJS} \ |
rm -f a.out Errs errs mklog core ${CLEANFILES} |
profiled/*.o lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln |
rm -f ${OBJS} |
|
rm -f ${POBJS} profiled/*.o |
|
rm -f lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln |
.endif |
.endif |
|
|
.if !target(cleandir) |
.if !target(cleandir) |
cleandir: |
cleandir: |
rm -f a.out Errs errs mklog core ${CLEANFILES} ${OBJS} ${POBJS} \ |
rm -f a.out Errs errs mklog core ${CLEANFILES} |
profiled/*.o lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln |
rm -f ${OBJS} |
|
rm -f ${POBJS} profiled/*.o |
|
rm -f lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln |
rm -f ${MANALL} ${.CURDIR}/tags .depend |
rm -f ${MANALL} ${.CURDIR}/tags .depend |
.endif |
.endif |
|
|
.if !target(depend) |
.if !target(depend) |
depend: .depend |
depend: .depend |
.depend: ${SRCS} |
.depend: ${SRCS} |
mkdep ${CFLAGS:M-[ID]*} ${AINC} ${.ALLSRC} |
mkdep ${CFLAGS:M-[ID+]*} ${AINC} ${.ALLSRC} |
@(TMP=/tmp/_depend$$$$; \ |
@(TMP=/tmp/_depend$$$$; \ |
sed -e 's/^\([^\.]*\).o:/\1.o \1.po:/' < .depend > $$TMP; \ |
sed -e 's/^\([^\.]*\).o:/\1.o \1.po:/' < .depend > $$TMP; \ |
mv $$TMP .depend) |
mv $$TMP .depend) |
|
|
.if !target(install) |
.if !target(install) |
.if !target(beforeinstall) |
.if !target(beforeinstall) |
beforeinstall: |
beforeinstall: |
|
@if [ ! -d "${DESTDIR}${LIBDIR}" ]; then \ |
|
/bin/rm -f ${DESTDIR}${LIBDIR} ; \ |
|
mkdir -p ${DESTDIR}${LIBDIR} ; \ |
|
chown root.wheel ${DESTDIR}${LIBDIR} ; \ |
|
chmod 755 ${DESTDIR}${LIBDIR} ; \ |
|
else \ |
|
true ; \ |
|
fi |
.endif |
.endif |
|
|
realinstall: beforeinstall |
realinstall: |
ranlib lib${LIB}.a |
ranlib lib${LIB}.a |
install -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} lib${LIB}.a \ |
install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} lib${LIB}.a \ |
${DESTDIR}${LIBDIR} |
${DESTDIR}${LIBDIR} |
${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}.a |
${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}.a |
|
.if !defined(NOPROFILE) |
ranlib lib${LIB}_p.a |
ranlib lib${LIB}_p.a |
install -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
lib${LIB}_p.a ${DESTDIR}${LIBDIR} |
lib${LIB}_p.a ${DESTDIR}${LIBDIR} |
${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_p.a |
${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_p.a |
# install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
.endif |
|
# install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
# llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR} |
# llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR} |
.if defined(LINKS) && !empty(LINKS) |
.if defined(LINKS) && !empty(LINKS) |
@set ${LINKS}; \ |
@set ${LINKS}; \ |
Line 126 realinstall: beforeinstall |
|
Line 142 realinstall: beforeinstall |
|
done; true |
done; true |
.endif |
.endif |
|
|
install: afterinstall |
install: maninstall |
afterinstall: realinstall maninstall |
maninstall: afterinstall |
|
afterinstall: realinstall |
|
realinstall: beforeinstall |
.endif |
.endif |
|
|
.if !target(lint) |
.if !target(lint) |
|
|
sed "s;\${.CURDIR}/;;" > tags |
sed "s;\${.CURDIR}/;;" > tags |
.endif |
.endif |
|
|
|
.if !defined(NOMAN) |
.include <bsd.man.mk> |
.include <bsd.man.mk> |
|
.endif |
|
|
.if !target(obj) |
.if !target(obj) |
.if defined(NOOBJ) |
.if defined(NOOBJ) |
obj: |
obj: |
.else |
.else |
obj: |
obj: |
@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 |