summaryrefslogtreecommitdiff
path: root/lib/libocurses
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>2002-06-24 18:03:31 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>2002-06-24 18:03:31 +0000
commit31afed833105b0a4c1e43fe6b85d956d03e6d116 (patch)
tree332b5feb63c32c2d411c4826ba73633c4815a4d8 /lib/libocurses
parent2447c009aad7998328fdae0b70ef9c50ac808a55 (diff)
Properly install links for debug libraries; ok deraadt@
Diffstat (limited to 'lib/libocurses')
-rw-r--r--lib/libocurses/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libocurses/Makefile b/lib/libocurses/Makefile
index 397dfb86026..b84a8f75284 100644
--- a/lib/libocurses/Makefile
+++ b/lib/libocurses/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 1998/12/02 15:45:43 espie Exp $
+# $OpenBSD: Makefile,v 1.8 2002/06/24 18:03:30 tholo Exp $
CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
@@ -22,12 +22,18 @@ includes:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
curses.h ${DESTDIR}/usr/include/ocurses.h
+.include <bsd.own.mk>
+
# Link libotermcap to libocurses for programs that need full compatibility
# with the old termcap behavior
afterinstall:
- -cd ${DESTDIR}/usr/lib; \
+ -cd ${DESTDIR}${LIBDIR}; \
for i in ${_LIBS}; do \
ln -f $$i `echo $$i | sed 's/ocurses/otermcap/'`; \
done
+.if (${DEBUGLIBS:L} == "yes")
+ -cd ${DESTDIR}${LIBDIR}/debug; \
+ ln -f lib${LIB}.a lib`echo ${LIB} | sed 's/ocurses/otermcap/'`.a
+.endif
.include <bsd.lib.mk>