diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2002-06-24 18:03:31 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2002-06-24 18:03:31 +0000 |
commit | 31afed833105b0a4c1e43fe6b85d956d03e6d116 (patch) | |
tree | 332b5feb63c32c2d411c4826ba73633c4815a4d8 /lib/libcurses/Makefile | |
parent | 2447c009aad7998328fdae0b70ef9c50ac808a55 (diff) |
Properly install links for debug libraries; ok deraadt@
Diffstat (limited to 'lib/libcurses/Makefile')
-rw-r--r-- | lib/libcurses/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libcurses/Makefile b/lib/libcurses/Makefile index 2d62acae63a..a3e76e6c581 100644 --- a/lib/libcurses/Makefile +++ b/lib/libcurses/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.48 2000/11/08 22:09:24 deraadt Exp $ +# $OpenBSD: Makefile,v 1.49 2002/06/24 18:03:30 tholo Exp $ # Uncomment this to enable tracing in libcurses #CURSESTRACE=-DTRACE @@ -237,13 +237,20 @@ names.c codes.c: ${.CURDIR}/tinfo/MKnames.awk unctrl.c: ${.CURDIR}/base/MKunctrl.awk echo | ${AWK} -f ${.CURDIR}/base/MKunctrl.awk > ${.TARGET} +.include <bsd.own.mk> + # Link libtermlib, libtermcap to libcurses so we don't break people's Makefiles afterinstall: - -cd ${DESTDIR}/usr/lib; \ + -cd ${DESTDIR}${LIBDIR}; \ for i in ${_LIBS}; do \ ln -f $$i `echo $$i | sed 's/curses/termlib/'`; \ ln -f $$i `echo $$i | sed 's/curses/termcap/'`; \ done +.if (${DEBUGLIBS:L} == "yes") + -cd ${DESTDIR}${LIBDIR}/debug; \ + ln -f lib${LIB}.a lib`echo ${LIB} | sed 's/curses/termlib/'`.a; \ + ln -f lib${LIB}.a lib`echo ${LIB} | sed 's/curses/termcap/'`.a +.endif .include <bsd.lib.mk> |