diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-01-04 16:29:40 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-01-05 13:01:32 +0000 |
| commit | 821aa63a09402935da0a73abf20ba0441562aa07 (patch) | |
| tree | b1a1034d969a225e45fc85a376347eea3b391652 /lib/ncurses/menu | |
| parent | 9fd96b416c4572c83d4958763819bae83928cbce (diff) | |
Diffstat (limited to 'lib/ncurses/menu')
| -rw-r--r-- | lib/ncurses/menu/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/ncurses/menu/Makefile b/lib/ncurses/menu/Makefile index 653619638fbc..7844cd4d936c 100644 --- a/lib/ncurses/menu/Makefile +++ b/lib/ncurses/menu/Makefile @@ -1,10 +1,11 @@ # $FreeBSD$ +.include <src.opts.mk> .include "${.CURDIR:H}/config.mk" SRCDIR= ${NCURSES_DIR}/menu -LIB= menu${LIB_SUFFIX} +LIB= menuw .PATH: ${SRCDIR} SRCS= \ @@ -40,9 +41,8 @@ CLEANFILES= ncurses_def.h CFLAGS+= -I${SRCDIR} -LIBADD+= ncurses${LIB_SUFFIX} +LIBADD+= ncursesw -.if defined(ENABLE_WIDEC) INCS= menu.h eti.h .PATH: ${NCURSES_DIR}/man @@ -128,8 +128,16 @@ MLINKS= menu_attributes.3 menu_back.3 \ mitem_value.3 item_value.3 \ mitem_value.3 set_item_value.3 \ mitem_visible.3 item_visible.3 -.else -MAN= + +# backward compat +.if ${MK_INSTALLLIB} != "no" +SYMLINKS+= libmenuw.a ${LIBDIR}/libmenu.a +.endif +.if !defined(NO_PIC) +SYMLINKS+= libmenuw.so ${LIBDIR}/libmenu.so +.endif +.if ${MK_PROFILE} != "no" +SYMLINKS+= libmenuw_p.a ${LIBDIR}/libmenu_p.a .endif .include <bsd.lib.mk> |
