summaryrefslogtreecommitdiff
path: root/lib/libocurses/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libocurses/Makefile')
-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>