aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/panel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ncurses/panel/Makefile')
-rw-r--r--lib/ncurses/panel/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/lib/ncurses/panel/Makefile b/lib/ncurses/panel/Makefile
index 1993f5e76ac2..a22df4d89570 100644
--- a/lib/ncurses/panel/Makefile
+++ b/lib/ncurses/panel/Makefile
@@ -1,10 +1,11 @@
# $FreeBSD$
+.include <src.opts.mk>
.include "${.CURDIR:H}/config.mk"
SRCDIR= ${NCURSES_DIR}/panel
-LIB= panel${LIB_SUFFIX}
+LIB= panelw
.PATH: ${SRCDIR}
SRCS= \
@@ -29,10 +30,7 @@ CLEANFILES= ncurses_def.h
CFLAGS+= -I${SRCDIR}
-LIBADD+= ncurses${LIB_SUFFIX}
-
-.if defined(ENABLE_WIDEC)
-INCS= panel.h
+LIBADD+= ncursesw
# generate MAN
.PATH: ${NCURSES_DIR}/man
@@ -56,10 +54,19 @@ MLINKS= panel.3 bottom_panel.3 \
panel.3 show_panel.3 \
panel.3 top_panel.3 \
panel.3 update_panels.3
-.else
-MAN=
+
+# backward compat
+.if ${MK_INSTALLLIB} != "no"
+SYMLINKS+= libpanelw.a ${LIBDIR}/libpanel.a
+.endif
+.if !defined(NO_PIC)
+SYMLINKS+= libpanelw.so ${LIBDIR}/libpanel.so
.endif
-
+.if ${MK_PROFILE} != "no"
+SYMLINKS+= libpanelw_p.a ${LIBDIR}/libpanel_p.a
+.endif
+
+INCS= panel.h
.include <bsd.lib.mk>
# Keep the .SUFFIXES line after the include of bsd.lib.mk