# $MirOS: src/lib/libncurses/Makefile,v 1.10 2009/09/06 13:46:34 tg Exp $

LIB=		ncurses
LIBLINKS=	curses ncursesw termcap termlib
SHLIB_VERSION?=	14.1

NCMANSRCS+=	curs_add_wch.3x
NCMANSRCS+=	curs_add_wchstr.3x
NCMANSRCS+=	curs_addch.3x
NCMANSRCS+=	curs_addchstr.3x
NCMANSRCS+=	curs_addstr.3x
NCMANSRCS+=	curs_addwstr.3x
NCMANSRCS+=	curs_attr.3x
NCMANSRCS+=	curs_beep.3x
NCMANSRCS+=	curs_bkgd.3x
NCMANSRCS+=	curs_bkgrnd.3x
NCMANSRCS+=	curs_border.3x
NCMANSRCS+=	curs_border_set.3x
NCMANSRCS+=	curs_clear.3x
NCMANSRCS+=	curs_color.3x
NCMANSRCS+=	curs_delch.3x
NCMANSRCS+=	curs_deleteln.3x
NCMANSRCS+=	curs_extend.3x
NCMANSRCS+=	curs_get_wch.3x
NCMANSRCS+=	curs_get_wstr.3x
NCMANSRCS+=	curs_getcchar.3x
NCMANSRCS+=	curs_getch.3x
NCMANSRCS+=	curs_getstr.3x
NCMANSRCS+=	curs_getyx.3x
NCMANSRCS+=	curs_in_wch.3x
NCMANSRCS+=	curs_in_wchstr.3x
NCMANSRCS+=	curs_inch.3x
NCMANSRCS+=	curs_inchstr.3x
NCMANSRCS+=	curs_initscr.3x
NCMANSRCS+=	curs_inopts.3x
NCMANSRCS+=	curs_ins_wch.3x
NCMANSRCS+=	curs_ins_wstr.3x
NCMANSRCS+=	curs_insch.3x
NCMANSRCS+=	curs_insstr.3x
NCMANSRCS+=	curs_instr.3x
NCMANSRCS+=	curs_inwstr.3x
NCMANSRCS+=	curs_kernel.3x
NCMANSRCS+=	curs_mouse.3x
NCMANSRCS+=	curs_move.3x
NCMANSRCS+=	curs_outopts.3x
NCMANSRCS+=	curs_overlay.3x
NCMANSRCS+=	curs_pad.3x
NCMANSRCS+=	curs_print.3x
NCMANSRCS+=	curs_printw.3x
NCMANSRCS+=	curs_refresh.3x
NCMANSRCS+=	curs_scanw.3x
NCMANSRCS+=	curs_scr_dump.3x
NCMANSRCS+=	curs_scroll.3x
NCMANSRCS+=	curs_slk.3x
NCMANSRCS+=	curs_termattrs.3x
NCMANSRCS+=	curs_termcap.3x
NCMANSRCS+=	curs_terminfo.3x
NCMANSRCS+=	curs_touch.3x
NCMANSRCS+=	curs_trace.3x
NCMANSRCS+=	curs_util.3x
NCMANSRCS+=	curs_window.3x
NCMANSRCS+=	default_colors.3x
NCMANSRCS+=	define_key.3x
NCMANSRCS+=	key_defined.3x
NCMANSRCS+=	keybound.3x
NCMANSRCS+=	keyok.3x
NCMANSRCS+=	ncurses.3x
NCMANSRCS+=	resizeterm.3x
NCMANSRCS+=	term.5
NCMANSRCS+=	term.7
NCMANSRCS+=	wresize.3x

MLINKS+=	curs_add_wch.3 add_wch.3
MLINKS+=	curs_add_wch.3 echo_wchar.3
MLINKS+=	curs_add_wch.3 mvadd_wch.3
MLINKS+=	curs_add_wch.3 mvwadd_wch.3
MLINKS+=	curs_add_wch.3 wadd_wch.3
MLINKS+=	curs_add_wch.3 wecho_wchar.3
MLINKS+=	curs_add_wchstr.3 add_wchnstr.3
MLINKS+=	curs_add_wchstr.3 add_wchstr.3
MLINKS+=	curs_add_wchstr.3 mvadd_wchnstr.3
MLINKS+=	curs_add_wchstr.3 mvadd_wchstr.3
MLINKS+=	curs_add_wchstr.3 mvwadd_wchnstr.3
MLINKS+=	curs_add_wchstr.3 mvwadd_wchstr.3
MLINKS+=	curs_add_wchstr.3 wadd_wchnstr.3
MLINKS+=	curs_add_wchstr.3 wadd_wchstr.3
MLINKS+=	curs_addch.3 addch.3
MLINKS+=	curs_addch.3 echochar.3
MLINKS+=	curs_addch.3 mvaddch.3
MLINKS+=	curs_addch.3 mvwaddch.3
MLINKS+=	curs_addch.3 waddch.3
MLINKS+=	curs_addch.3 wechochar.3
MLINKS+=	curs_addchstr.3 addchnstr.3
MLINKS+=	curs_addchstr.3 addchstr.3
MLINKS+=	curs_addchstr.3 mvaddchnstr.3
MLINKS+=	curs_addchstr.3 mvaddchstr.3
MLINKS+=	curs_addchstr.3 mvwaddchnstr.3
MLINKS+=	curs_addchstr.3 mvwaddchstr.3
MLINKS+=	curs_addchstr.3 waddchnstr.3
MLINKS+=	curs_addchstr.3 waddchstr.3
MLINKS+=	curs_addstr.3 addnstr.3
MLINKS+=	curs_addstr.3 addstr.3
MLINKS+=	curs_addstr.3 mvaddnstr.3
MLINKS+=	curs_addstr.3 mvaddstr.3
MLINKS+=	curs_addstr.3 mvwaddnstr.3
MLINKS+=	curs_addstr.3 mvwaddstr.3
MLINKS+=	curs_addstr.3 waddnstr.3
MLINKS+=	curs_addstr.3 waddstr.3
MLINKS+=	curs_addwstr.3 addnwstr.3
MLINKS+=	curs_addwstr.3 addwstr.3
MLINKS+=	curs_addwstr.3 mvaddnwstr.3
MLINKS+=	curs_addwstr.3 mvaddwstr.3
MLINKS+=	curs_addwstr.3 mvwaddnwstr.3
MLINKS+=	curs_addwstr.3 mvwaddwstr.3
MLINKS+=	curs_addwstr.3 waddnwstr.3
MLINKS+=	curs_addwstr.3 waddwstr.3
MLINKS+=	curs_attr.3 PAIR_NUMBER.3
MLINKS+=	curs_attr.3 attr_get.3
MLINKS+=	curs_attr.3 attr_off.3
MLINKS+=	curs_attr.3 attr_on.3
MLINKS+=	curs_attr.3 attr_set.3
MLINKS+=	curs_attr.3 attroff.3
MLINKS+=	curs_attr.3 attron.3
MLINKS+=	curs_attr.3 attrset.3
MLINKS+=	curs_attr.3 chgat.3
MLINKS+=	curs_attr.3 color_set.3
MLINKS+=	curs_attr.3 mvchgat.3
MLINKS+=	curs_attr.3 mvwchgat.3
MLINKS+=	curs_attr.3 standend.3
MLINKS+=	curs_attr.3 standout.3
MLINKS+=	curs_attr.3 wattr_get.3
MLINKS+=	curs_attr.3 wattr_off.3
MLINKS+=	curs_attr.3 wattr_on.3
MLINKS+=	curs_attr.3 wattr_set.3
MLINKS+=	curs_attr.3 wattroff.3
MLINKS+=	curs_attr.3 wattron.3
MLINKS+=	curs_attr.3 wattrset.3
MLINKS+=	curs_attr.3 wchgat.3
MLINKS+=	curs_attr.3 wcolor_set.3
MLINKS+=	curs_attr.3 wstandend.3
MLINKS+=	curs_attr.3 wstandout.3
MLINKS+=	curs_beep.3 beep.3
MLINKS+=	curs_beep.3 flash.3
MLINKS+=	curs_bkgd.3 bkgd.3
MLINKS+=	curs_bkgd.3 bkgdset.3
MLINKS+=	curs_bkgd.3 getbkgd.3
MLINKS+=	curs_bkgd.3 wbkgd.3
MLINKS+=	curs_bkgd.3 wbkgdset.3
MLINKS+=	curs_bkgrnd.3 bkgrnd.3
MLINKS+=	curs_bkgrnd.3 bkgrndset.3
MLINKS+=	curs_bkgrnd.3 getbkgrnd.3
MLINKS+=	curs_bkgrnd.3 wbkgrnd.3
MLINKS+=	curs_bkgrnd.3 wbkgrndset.3
MLINKS+=	curs_bkgrnd.3 wgetbkgrnd.3
MLINKS+=	curs_border.3 border.3
MLINKS+=	curs_border.3 box.3
MLINKS+=	curs_border.3 hline.3
MLINKS+=	curs_border.3 mvhline.3
MLINKS+=	curs_border.3 mvvline.3
MLINKS+=	curs_border.3 mvwhline.3
MLINKS+=	curs_border.3 mvwvline.3
MLINKS+=	curs_border.3 vline.3
MLINKS+=	curs_border.3 wborder.3
MLINKS+=	curs_border.3 whline.3
MLINKS+=	curs_border.3 wvline.3
MLINKS+=	curs_border_set.3 border_set.3
MLINKS+=	curs_border_set.3 box_set.3
MLINKS+=	curs_border_set.3 hline_set.3
MLINKS+=	curs_border_set.3 mvhline_set.3
MLINKS+=	curs_border_set.3 mvvline_set.3
MLINKS+=	curs_border_set.3 mvwhline_set.3
MLINKS+=	curs_border_set.3 mvwvline_set.3
MLINKS+=	curs_border_set.3 vline_set.3
MLINKS+=	curs_border_set.3 wborder_set.3
MLINKS+=	curs_border_set.3 whline_set.3
MLINKS+=	curs_border_set.3 wvline_set.3
MLINKS+=	curs_clear.3 clear.3
MLINKS+=	curs_clear.3 clrtobot.3
MLINKS+=	curs_clear.3 clrtoeol.3
MLINKS+=	curs_clear.3 erase.3
MLINKS+=	curs_clear.3 wclear.3
MLINKS+=	curs_clear.3 wclrtobot.3
MLINKS+=	curs_clear.3 wclrtoeol.3
MLINKS+=	curs_clear.3 werase.3
MLINKS+=	curs_color.3 COLOR_PAIR.3
MLINKS+=	curs_color.3 can_change_color.3
MLINKS+=	curs_color.3 color_content.3
MLINKS+=	curs_color.3 has_colors.3
MLINKS+=	curs_color.3 init_color.3
MLINKS+=	curs_color.3 init_pair.3
MLINKS+=	curs_color.3 pair_content.3
MLINKS+=	curs_color.3 start_color.3
MLINKS+=	curs_delch.3 delch.3
MLINKS+=	curs_delch.3 mvdelch.3
MLINKS+=	curs_delch.3 mvwdelch.3
MLINKS+=	curs_delch.3 wdelch.3
MLINKS+=	curs_deleteln.3 deleteln.3
MLINKS+=	curs_deleteln.3 insdelln.3
MLINKS+=	curs_deleteln.3 insertln.3
MLINKS+=	curs_deleteln.3 wdeleteln.3
MLINKS+=	curs_deleteln.3 winsdelln.3
MLINKS+=	curs_deleteln.3 winsertln.3
MLINKS+=	curs_extend.3 curses_version.3
MLINKS+=	curs_extend.3 use_extended_names.3
MLINKS+=	curs_get_wch.3 get_wch.3
MLINKS+=	curs_get_wch.3 mvget_wch.3
MLINKS+=	curs_get_wch.3 mvwget_wch.3
MLINKS+=	curs_get_wch.3 unget_wch.3
MLINKS+=	curs_get_wch.3 wget_wch.3
MLINKS+=	curs_get_wstr.3 get_wstr.3
MLINKS+=	curs_get_wstr.3 getn_wstr.3
MLINKS+=	curs_get_wstr.3 mvget_wstr.3
MLINKS+=	curs_get_wstr.3 mvgetn_wstr.3
MLINKS+=	curs_get_wstr.3 mvwget_wstr.3
MLINKS+=	curs_get_wstr.3 mvwgetn_wstr.3
MLINKS+=	curs_get_wstr.3 wget_wstr.3
MLINKS+=	curs_get_wstr.3 wgetn_wstr.3
MLINKS+=	curs_getcchar.3 getcchar.3
MLINKS+=	curs_getcchar.3 setcchar.3
MLINKS+=	curs_getch.3 getch.3
MLINKS+=	curs_getch.3 has_key.3
MLINKS+=	curs_getch.3 mvgetch.3
MLINKS+=	curs_getch.3 mvwgetch.3
MLINKS+=	curs_getch.3 ungetch.3
MLINKS+=	curs_getch.3 wgetch.3
MLINKS+=	curs_getstr.3 getnstr.3
MLINKS+=	curs_getstr.3 getstr.3
MLINKS+=	curs_getstr.3 mvgetnstr.3
MLINKS+=	curs_getstr.3 mvgetstr.3
MLINKS+=	curs_getstr.3 mvwgetnstr.3
MLINKS+=	curs_getstr.3 mvwgetstr.3
MLINKS+=	curs_getstr.3 wgetnstr.3
MLINKS+=	curs_getstr.3 wgetstr.3
MLINKS+=	curs_getyx.3 getbegyx.3
MLINKS+=	curs_getyx.3 getmaxyx.3
MLINKS+=	curs_getyx.3 getparyx.3
MLINKS+=	curs_getyx.3 getyx.3
MLINKS+=	curs_in_wch.3 in_wch.3
MLINKS+=	curs_in_wch.3 mvin_wch.3
MLINKS+=	curs_in_wch.3 mvwin_wch.3
MLINKS+=	curs_in_wch.3 win_wch.3
MLINKS+=	curs_in_wchstr.3 in_wchnstr.3
MLINKS+=	curs_in_wchstr.3 in_wchstr.3
MLINKS+=	curs_in_wchstr.3 mvin_wchnstr.3
MLINKS+=	curs_in_wchstr.3 mvin_wchstr.3
MLINKS+=	curs_in_wchstr.3 mvwin_wchnstr.3
MLINKS+=	curs_in_wchstr.3 mvwin_wchstr.3
MLINKS+=	curs_in_wchstr.3 win_wchnstr.3
MLINKS+=	curs_in_wchstr.3 win_wchstr.3
MLINKS+=	curs_inch.3 inch.3
MLINKS+=	curs_inch.3 mvinch.3
MLINKS+=	curs_inch.3 mvwinch.3
MLINKS+=	curs_inch.3 winch.3
MLINKS+=	curs_inchstr.3 inchnstr.3
MLINKS+=	curs_inchstr.3 inchstr.3
MLINKS+=	curs_inchstr.3 mvinchnstr.3
MLINKS+=	curs_inchstr.3 mvinchstr.3
MLINKS+=	curs_inchstr.3 mvwinchnstr.3
MLINKS+=	curs_inchstr.3 mvwinchstr.3
MLINKS+=	curs_inchstr.3 winchnstr.3
MLINKS+=	curs_inchstr.3 winchstr.3
MLINKS+=	curs_initscr.3 delscreen.3
MLINKS+=	curs_initscr.3 endwin.3
MLINKS+=	curs_initscr.3 initscr.3
MLINKS+=	curs_initscr.3 isendwin.3
MLINKS+=	curs_initscr.3 newterm.3
MLINKS+=	curs_initscr.3 set_term.3
MLINKS+=	curs_inopts.3 cbreak.3
MLINKS+=	curs_inopts.3 echo.3
MLINKS+=	curs_inopts.3 halfdelay.3
MLINKS+=	curs_inopts.3 intrflush.3
MLINKS+=	curs_inopts.3 keypad.3
MLINKS+=	curs_inopts.3 meta.3
MLINKS+=	curs_inopts.3 nocbreak.3
MLINKS+=	curs_inopts.3 nodelay.3
MLINKS+=	curs_inopts.3 noecho.3
MLINKS+=	curs_inopts.3 noqiflush.3
MLINKS+=	curs_inopts.3 noraw.3
MLINKS+=	curs_inopts.3 notimeout.3
MLINKS+=	curs_inopts.3 qiflush.3
MLINKS+=	curs_inopts.3 raw.3
MLINKS+=	curs_inopts.3 timeout.3
MLINKS+=	curs_inopts.3 typeahead.3
MLINKS+=	curs_inopts.3 wtimeout.3
MLINKS+=	curs_ins_wch.3 ins_wch.3
MLINKS+=	curs_ins_wch.3 mvins_wch.3
MLINKS+=	curs_ins_wch.3 mvwins_wch.3
MLINKS+=	curs_ins_wch.3 wins_wch.3
MLINKS+=	curs_ins_wstr.3 ins_nwstr.3
MLINKS+=	curs_ins_wstr.3 ins_wstr.3
MLINKS+=	curs_ins_wstr.3 mvins_nwstr.3
MLINKS+=	curs_ins_wstr.3 mvins_wstr.3
MLINKS+=	curs_ins_wstr.3 mvwins_nwstr.3
MLINKS+=	curs_ins_wstr.3 mvwins_wstr.3
MLINKS+=	curs_ins_wstr.3 wins_nwstr.3
MLINKS+=	curs_ins_wstr.3 wins_wstr.3
MLINKS+=	curs_insch.3 insch.3
MLINKS+=	curs_insch.3 mvinsch.3
MLINKS+=	curs_insch.3 mvwinsch.3
MLINKS+=	curs_insch.3 winsch.3
MLINKS+=	curs_insstr.3 insnstr.3
MLINKS+=	curs_insstr.3 insstr.3
MLINKS+=	curs_insstr.3 mvinsnstr.3
MLINKS+=	curs_insstr.3 mvinsstr.3
MLINKS+=	curs_insstr.3 mvwinsnstr.3
MLINKS+=	curs_insstr.3 mvwinsstr.3
MLINKS+=	curs_insstr.3 winsnstr.3
MLINKS+=	curs_insstr.3 winsstr.3
MLINKS+=	curs_instr.3 innstr.3
MLINKS+=	curs_instr.3 instr.3
MLINKS+=	curs_instr.3 mvinnstr.3
MLINKS+=	curs_instr.3 mvinstr.3
MLINKS+=	curs_instr.3 mvwinnstr.3
MLINKS+=	curs_instr.3 mvwinstr.3
MLINKS+=	curs_instr.3 winnstr.3
MLINKS+=	curs_instr.3 winstr.3
MLINKS+=	curs_inwstr.3 innwstr.3
MLINKS+=	curs_inwstr.3 inwstr.3
MLINKS+=	curs_inwstr.3 mvinnwstr.3
MLINKS+=	curs_inwstr.3 mvinwstr.3
MLINKS+=	curs_inwstr.3 mvwinnwstr.3
MLINKS+=	curs_inwstr.3 mvwinwstr.3
MLINKS+=	curs_inwstr.3 winnwstr.3
MLINKS+=	curs_inwstr.3 winwstr.3
MLINKS+=	curs_kernel.3 curs_set.3
MLINKS+=	curs_kernel.3 def_prog_mode.3
MLINKS+=	curs_kernel.3 def_shell_mode.3
MLINKS+=	curs_kernel.3 getsyx.3
MLINKS+=	curs_kernel.3 napms.3
MLINKS+=	curs_kernel.3 reset_prog_mode.3
MLINKS+=	curs_kernel.3 reset_shell_mode.3
MLINKS+=	curs_kernel.3 resetty.3
MLINKS+=	curs_kernel.3 ripoffline.3
MLINKS+=	curs_kernel.3 savetty.3
MLINKS+=	curs_kernel.3 setsyx.3
MLINKS+=	curs_mouse.3 getmouse.3
MLINKS+=	curs_mouse.3 mouse_trafo.3
MLINKS+=	curs_mouse.3 mouseinterval.3
MLINKS+=	curs_mouse.3 mousemask.3
MLINKS+=	curs_mouse.3 ungetmouse.3
MLINKS+=	curs_mouse.3 wenclose.3
MLINKS+=	curs_mouse.3 wmouse_trafo.3
MLINKS+=	curs_move.3 move.3
MLINKS+=	curs_move.3 wmove.3
MLINKS+=	curs_outopts.3 clearok.3
MLINKS+=	curs_outopts.3 idcok.3
MLINKS+=	curs_outopts.3 idlok.3
MLINKS+=	curs_outopts.3 immedok.3
MLINKS+=	curs_outopts.3 leaveok.3
MLINKS+=	curs_outopts.3 nl.3
MLINKS+=	curs_outopts.3 nonl.3
MLINKS+=	curs_outopts.3 scrollok.3
MLINKS+=	curs_outopts.3 setscrreg.3
MLINKS+=	curs_outopts.3 wsetscrreg.3
MLINKS+=	curs_overlay.3 copywin.3
MLINKS+=	curs_overlay.3 overlay.3
MLINKS+=	curs_overlay.3 overwrite.3
MLINKS+=	curs_pad.3 newpad.3
MLINKS+=	curs_pad.3 pecho_wchar.3
MLINKS+=	curs_pad.3 pechochar.3
MLINKS+=	curs_pad.3 pnoutrefresh.3
MLINKS+=	curs_pad.3 prefresh.3
MLINKS+=	curs_pad.3 subpad.3
MLINKS+=	curs_print.3 mcprint.3
MLINKS+=	curs_printw.3 mvprintw.3
MLINKS+=	curs_printw.3 mvwprintw.3
MLINKS+=	curs_printw.3 printw.3
MLINKS+=	curs_printw.3 vw_printw.3
MLINKS+=	curs_printw.3 vwprintw.3
MLINKS+=	curs_printw.3 wprintw.3
MLINKS+=	curs_refresh.3 doupdate.3
MLINKS+=	curs_refresh.3 redrawwin.3
MLINKS+=	curs_refresh.3 refresh.3
MLINKS+=	curs_refresh.3 wnoutrefresh.3
MLINKS+=	curs_refresh.3 wredrawln.3
MLINKS+=	curs_refresh.3 wrefresh.3
MLINKS+=	curs_scanw.3 mvscanw.3
MLINKS+=	curs_scanw.3 mvwscanw.3
MLINKS+=	curs_scanw.3 scanw.3
MLINKS+=	curs_scanw.3 vw_scanw.3
MLINKS+=	curs_scanw.3 vwscanw.3
MLINKS+=	curs_scanw.3 wscanw.3
MLINKS+=	curs_scr_dump.3 scr_dump.3
MLINKS+=	curs_scr_dump.3 scr_init.3
MLINKS+=	curs_scr_dump.3 scr_restore.3
MLINKS+=	curs_scr_dump.3 scr_set.3
MLINKS+=	curs_scroll.3 scrl.3
MLINKS+=	curs_scroll.3 scroll.3
MLINKS+=	curs_scroll.3 wscrl.3
MLINKS+=	curs_slk.3 slk_attr.3
MLINKS+=	curs_slk.3 slk_attr_off.3
MLINKS+=	curs_slk.3 slk_attr_on.3
MLINKS+=	curs_slk.3 slk_attr_set.3
MLINKS+=	curs_slk.3 slk_attroff.3
MLINKS+=	curs_slk.3 slk_attron.3
MLINKS+=	curs_slk.3 slk_attrset.3
MLINKS+=	curs_slk.3 slk_clear.3
MLINKS+=	curs_slk.3 slk_color.3
MLINKS+=	curs_slk.3 slk_init.3
MLINKS+=	curs_slk.3 slk_label.3
MLINKS+=	curs_slk.3 slk_noutrefresh.3
MLINKS+=	curs_slk.3 slk_refresh.3
MLINKS+=	curs_slk.3 slk_restore.3
MLINKS+=	curs_slk.3 slk_set.3
MLINKS+=	curs_slk.3 slk_touch.3
MLINKS+=	curs_termattrs.3 baudrate.3
MLINKS+=	curs_termattrs.3 erasechar.3
MLINKS+=	curs_termattrs.3 erasewchar.3
MLINKS+=	curs_termattrs.3 has_ic.3
MLINKS+=	curs_termattrs.3 has_il.3
MLINKS+=	curs_termattrs.3 killchar.3
MLINKS+=	curs_termattrs.3 killwchar.3
MLINKS+=	curs_termattrs.3 longname.3
MLINKS+=	curs_termattrs.3 term_attrs.3
MLINKS+=	curs_termattrs.3 termattrs.3
MLINKS+=	curs_termattrs.3 termname.3
MLINKS+=	curs_termcap.3 tgetent.3
MLINKS+=	curs_termcap.3 tgetflag.3
MLINKS+=	curs_termcap.3 tgetnum.3
MLINKS+=	curs_termcap.3 tgetstr.3
MLINKS+=	curs_termcap.3 tgoto.3
MLINKS+=	curs_termcap.3 tputs.3
MLINKS+=	curs_terminfo.3 del_curterm.3
MLINKS+=	curs_terminfo.3 mvcur.3
MLINKS+=	curs_terminfo.3 putp.3
MLINKS+=	curs_terminfo.3 restartterm.3
MLINKS+=	curs_terminfo.3 set_curterm.3
MLINKS+=	curs_terminfo.3 setterm.3
MLINKS+=	curs_terminfo.3 setupterm.3
MLINKS+=	curs_terminfo.3 tigetflag.3
MLINKS+=	curs_terminfo.3 tigetnum.3
MLINKS+=	curs_terminfo.3 tigetstr.3
MLINKS+=	curs_terminfo.3 tparm.3
MLINKS+=	curs_terminfo.3 tputs.3
MLINKS+=	curs_terminfo.3 vid_attr.3
MLINKS+=	curs_terminfo.3 vid_puts.3
MLINKS+=	curs_terminfo.3 vidattr.3
MLINKS+=	curs_terminfo.3 vidputs.3
MLINKS+=	curs_touch.3 is_linetouched.3
MLINKS+=	curs_touch.3 is_wintouched.3
MLINKS+=	curs_touch.3 touchline.3
MLINKS+=	curs_touch.3 touchwin.3
MLINKS+=	curs_touch.3 untouchwin.3
MLINKS+=	curs_touch.3 wtouchln.3
MLINKS+=	curs_trace.3 _nc_tracebits.3
MLINKS+=	curs_trace.3 _traceattr.3
MLINKS+=	curs_trace.3 _traceattr2.3
MLINKS+=	curs_trace.3 _tracechar.3
MLINKS+=	curs_trace.3 _tracechtype.3
MLINKS+=	curs_trace.3 _tracechtype2.3
MLINKS+=	curs_trace.3 _tracedump.3
MLINKS+=	curs_trace.3 _tracef.3
MLINKS+=	curs_trace.3 _tracemouse.3
MLINKS+=	curs_trace.3 trace.3
MLINKS+=	curs_util.3 delay_output.3
MLINKS+=	curs_util.3 filter.3
MLINKS+=	curs_util.3 flushinp.3
MLINKS+=	curs_util.3 getwin.3
MLINKS+=	curs_util.3 key_name.3
MLINKS+=	curs_util.3 keyname.3
MLINKS+=	curs_util.3 putwin.3
MLINKS+=	curs_util.3 unctrl.3
MLINKS+=	curs_util.3 use_env.3
MLINKS+=	curs_util.3 wunctrl.3
MLINKS+=	curs_window.3 delwin.3
MLINKS+=	curs_window.3 derwin.3
MLINKS+=	curs_window.3 dupwin.3
MLINKS+=	curs_window.3 mvderwin.3
MLINKS+=	curs_window.3 mvwin.3
MLINKS+=	curs_window.3 newwin.3
MLINKS+=	curs_window.3 subwin.3
MLINKS+=	curs_window.3 syncok.3
MLINKS+=	curs_window.3 wcursyncup.3
MLINKS+=	curs_window.3 wsyncdown.3
MLINKS+=	curs_window.3 wsyncup.3
MLINKS+=	default_colors.3 assume_default_colors.3
MLINKS+=	default_colors.3 use_default_colors.3
MLINKS+=	resizeterm.3 is_term_resized.3
MLINKS+=	resizeterm.3 resize_term.3

# OpenBSD special
MLINKS+=	curs_termcap.3 termcap.3
MLINKS+=	curs_termcap.3 tparam.3
MLINKS+=	curs_terminfo.3 terminfo.3
MLINKS+=	ncurses.3 curses.3

.include <bsd.own.mk>

LIBNCDIR=	${.CURDIR}
.include "${LIBNCDIR}/Makefile.inc"

CPPFLAGS+=	-I${NCSRCDIR}/ncurses

# This is used to compile terminal info directly into the library
FALLBACK_LIST=

.PATH: ${NCSRCDIR}/ncurses
.PATH: ${NCSRCDIR}/ncurses/base
.PATH: ${NCSRCDIR}/ncurses/tinfo
.PATH: ${NCSRCDIR}/ncurses/trace
.PATH: ${NCSRCDIR}/ncurses/tty
.PATH: ${NCSRCDIR}/ncurses/widechar

SRCS+=		access.c
SRCS+=		add_tries.c
SRCS+=		alloc_entry.c
SRCS+=		alloc_ttype.c
SRCS+=		captoinfo.c
SRCS+=		charable.c
SRCS+=		codes.c
SRCS+=		comp_captab.c
SRCS+=		comp_error.c
SRCS+=		comp_expand.c
SRCS+=		comp_hash.c
SRCS+=		comp_parse.c
SRCS+=		comp_scan.c
SRCS+=		define_key.c
SRCS+=		doalloc.c
SRCS+=		expanded.c
SRCS+=		fallback.c
SRCS+=		free_ttype.c
SRCS+=		getenv_num.c
SRCS+=		hardscroll.c
SRCS+=		hashmap.c
SRCS+=		home_terminfo.c
SRCS+=		init_keytry.c
SRCS+=		key_defined.c
SRCS+=		keybound.c
SRCS+=		keyok.c
SRCS+=		lib_acs.c
SRCS+=		lib_add_wch.c
SRCS+=		lib_addch.c
SRCS+=		lib_addstr.c
SRCS+=		lib_baudrate.c
SRCS+=		lib_beep.c
SRCS+=		lib_bkgd.c
SRCS+=		lib_box.c
SRCS+=		lib_box_set.c
SRCS+=		lib_cchar.c
SRCS+=		lib_chgat.c
SRCS+=		lib_clear.c
SRCS+=		lib_clearok.c
SRCS+=		lib_clrbot.c
SRCS+=		lib_clreol.c
SRCS+=		lib_color.c
SRCS+=		lib_colorset.c
SRCS+=		lib_cur_term.c
SRCS+=		lib_data.c
SRCS+=		lib_delch.c
SRCS+=		lib_delwin.c
SRCS+=		lib_dft_fgbg.c
SRCS+=		lib_echo.c
SRCS+=		lib_endwin.c
SRCS+=		lib_erase.c
SRCS+=		lib_erasewchar.c
SRCS+=		lib_flash.c
SRCS+=		lib_freeall.c
SRCS+=		lib_gen.c
SRCS+=		lib_get_wch.c
SRCS+=		lib_get_wstr.c
SRCS+=		lib_getch.c
SRCS+=		lib_getstr.c
SRCS+=		lib_has_cap.c
SRCS+=		lib_hline.c
SRCS+=		lib_hline_set.c
SRCS+=		lib_immedok.c
SRCS+=		lib_in_wch.c
SRCS+=		lib_in_wchnstr.c
SRCS+=		lib_inchstr.c
SRCS+=		lib_initscr.c
SRCS+=		lib_ins_wch.c
SRCS+=		lib_insch.c
SRCS+=		lib_insdel.c
SRCS+=		lib_insnstr.c
SRCS+=		lib_instr.c
SRCS+=		lib_inwstr.c
SRCS+=		lib_isendwin.c
SRCS+=		lib_kernel.c
SRCS+=		lib_keyname.c
SRCS+=		lib_leaveok.c
SRCS+=		lib_longname.c
SRCS+=		lib_mouse.c
SRCS+=		lib_move.c
SRCS+=		lib_mvcur.c
SRCS+=		lib_mvwin.c
SRCS+=		lib_napms.c
SRCS+=		lib_newterm.c
SRCS+=		lib_newwin.c
SRCS+=		lib_nl.c
SRCS+=		lib_options.c
SRCS+=		lib_overlay.c
SRCS+=		lib_pad.c
SRCS+=		lib_pecho_wchar.c
SRCS+=		lib_print.c
SRCS+=		lib_printw.c
SRCS+=		lib_raw.c
SRCS+=		lib_redrawln.c
SRCS+=		lib_refresh.c
SRCS+=		lib_restart.c
SRCS+=		lib_scanw.c
SRCS+=		lib_screen.c
SRCS+=		lib_scroll.c
SRCS+=		lib_scrollok.c
SRCS+=		lib_scrreg.c
SRCS+=		lib_set_term.c
SRCS+=		lib_setup.c
SRCS+=		lib_slk.c
SRCS+=		lib_slk_wset.c
SRCS+=		lib_slkatr_set.c
SRCS+=		lib_slkatrof.c
SRCS+=		lib_slkatron.c
SRCS+=		lib_slkatrset.c
SRCS+=		lib_slkattr.c
SRCS+=		lib_slkclear.c
SRCS+=		lib_slkcolor.c
SRCS+=		lib_slkinit.c
SRCS+=		lib_slklab.c
SRCS+=		lib_slkrefr.c
SRCS+=		lib_slkset.c
SRCS+=		lib_slktouch.c
SRCS+=		lib_termcap.c
SRCS+=		lib_termname.c
SRCS+=		lib_tgoto.c
SRCS+=		lib_ti.c
SRCS+=		lib_touch.c
SRCS+=		lib_tparm.c
SRCS+=		lib_tputs.c
SRCS+=		lib_trace.c
SRCS+=		lib_tstp.c
SRCS+=		lib_ttyflags.c
SRCS+=		lib_twait.c
SRCS+=		lib_unget_wch.c
SRCS+=		lib_ungetch.c
SRCS+=		lib_vid_attr.c
SRCS+=		lib_vidattr.c
SRCS+=		lib_vline.c
SRCS+=		lib_vline_set.c
SRCS+=		lib_wacs.c
SRCS+=		lib_wattroff.c
SRCS+=		lib_wattron.c
SRCS+=		lib_winch.c
SRCS+=		lib_window.c
SRCS+=		lib_wunctrl.c
SRCS+=		memmove.c
SRCS+=		name_match.c
SRCS+=		names.c
SRCS+=		nc_panel.c
SRCS+=		parse_entry.c
SRCS+=		read_bsd_terminfo.c
SRCS+=		read_entry.c
SRCS+=		read_termcap.c
SRCS+=		resizeterm.c
SRCS+=		safe_sprintf.c
SRCS+=		setbuf.c
SRCS+=		strings.c
SRCS+=		tries.c
SRCS+=		trim_sgr0.c
SRCS+=		tty_update.c
SRCS+=		unctrl.c
SRCS+=		varargs.c
SRCS+=		version.c
SRCS+=		visbuf.c
SRCS+=		vsscanf.c
SRCS+=		wresize.c
SRCS+=		write_entry.c

GENERATED=	curses.h hashsize.h init_keytry.h ncurses_def.h \
		nomacros.h parametrized.h term.h
CLEANFILES+=	${GENERATED} boolcodes boolfnames boolnames codeftr codes.c \
		comp_captab.c curses.keys expanded.c fallback.c keys.list \
		lib_gen.c lib_keyname.c make_hash make_keys nameftr namehdr \
		names.c numcodes numfnames numnames run_MKnames strcodes \
		strfnames strnames unctrl.c

beforedepend: ${GENERATED}

codes.c: run_MKnames

comp_captab.c: make_hash ${NCSRCDIR}/include/Caps \
    ${NCSRCDIR}/ncurses/tinfo/MKcaptab.awk
	${MKSH} ${NCSRCDIR}/ncurses/tinfo/MKcaptab.awk ${AWK:Q} \
	    ${NCSRCDIR}/include/Caps >$@

curses.h: ${NCSRCDIR}/include/curses.head curses.keys \
    ${NCSRCDIR}/include/curses.wide ${NCSRCDIR}/include/curses.tail
	cat ${NCSRCDIR}/include/curses.head curses.keys \
	    ${NCSRCDIR}/include/curses.wide \
	    ${NCSRCDIR}/include/curses.tail >$@

curses.keys: ${NCSRCDIR}/include/MKkey_defs.sh ${NCSRCDIR}/include/Caps
	AWK=${AWK:Q} ${MKSH} ${NCSRCDIR}/include/MKkey_defs.sh \
	    ${NCSRCDIR}/include/Caps >$@

expanded.c: ${NCSRCDIR}/ncurses/tty/MKexpanded.sh
	${MKSH} $> ${CPP:Q} ${CPPFLAGS:Q} >$@

fallback.c: ${NCSRCDIR}/ncurses/tinfo/MKfallback.sh
	${MKSH} ${NCSRCDIR}/ncurses/tinfo/MKfallback.sh $(FALLBACK_LIST) >$@

hashsize.h: ${NCSRCDIR}/include/MKhashsize.sh ${NCSRCDIR}/include/Caps
	${MKSH} ${NCSRCDIR}/include/MKhashsize.sh ${NCSRCDIR}/include/Caps >$@

init_keytry.h: keys.list make_keys
	./make_keys keys.list >$@

keys.list: ${NCSRCDIR}/ncurses/tinfo/MKkeys_list.sh ${NCSRCDIR}/include/Caps
	AWK=${AWK:Q} ${MKSH} ${NCSRCDIR}/ncurses/tinfo/MKkeys_list.sh \
	    ${NCSRCDIR}/include/Caps | sort -o $@

lib_gen.c: ${NCSRCDIR}/ncurses/base/MKlib_gen.sh curses.h
	${MKSH} ${NCSRCDIR}/ncurses/base/MKlib_gen.sh \
	    "${CPP} ${CPPFLAGS}" ${AWK:Q} generated <curses.h >$@

lib_keyname.c: ${NCSRCDIR}/ncurses/base/MKkeyname.awk keys.list
	${AWK} -f ${NCSRCDIR}/ncurses/base/MKkeyname.awk keys.list >$@

make_hash: ${NCSRCDIR}/ncurses/tinfo/comp_hash.c hashsize.h
	${HOSTCC} ${HOSTCFLAGS} -DMAIN_PROGRAM ${HOSTLDFLAGS} $> -o $@

make_keys: ${NCSRCDIR}/ncurses/tinfo/make_keys.c ncurses_def.h run_MKnames
	${HOSTCC} ${HOSTCFLAGS} ${HOSTLDFLAGS} $> -o $@

names.c: run_MKnames

ncurses_def.h: ${NCSRCDIR}/include/MKncurses_def.sh \
    ${NCSRCDIR}/include/ncurses_defs
	AWK=${AWK:Q} ${MKSH} ${NCSRCDIR}/include/MKncurses_def.sh \
	    ${NCSRCDIR}/include/ncurses_defs >$@

nomacros.h: ${NCSRCDIR}/ncurses/base/MKlib_gen.sh curses.h
	${MKSH} ${NCSRCDIR}/ncurses/base/MKlib_gen.sh \
	    ${CPP:Q}\ ${CPPFLAGS:Q} ${AWK:Q} generated <curses.h | \
	    fgrep undef >$@

parametrized.h: ${NCSRCDIR}/include/MKparametrized.sh ${NCSRCDIR}/include/Caps
	AWK=${AWK:Q} ${MKSH} ${NCSRCDIR}/include/MKparametrized.sh \
	    ${NCSRCDIR}/include/Caps >$@

run_MKnames: 
	${AWK} -f ${NCSRCDIR}/ncurses/tinfo/MKnames.awk \
	    ${NCSRCDIR}/include/Caps
	cat namehdr boolnames boolfnames numnames numfnames \
	    strnames strfnames nameftr >names.c
	cat namehdr boolcodes numcodes strcodes codeftr >codes.c
	touch $@

term.h: ${NCSRCDIR}/include/MKterm.h.awk ${NCSRCDIR}/include/Caps
	${AWK} -f ${NCSRCDIR}/include/MKterm.h.awk ${NCSRCDIR}/include/Caps >$@

unctrl.c: ${NCSRCDIR}/ncurses/base/MKunctrl.awk
	print | ${AWK} -f $> >$@

prereq: curses.h term.h

HDRS=		${.OBJDIR}/curses.h ncurses_dll.h ${.OBJDIR}/term.h \
		termcap.h unctrl.h
HDRSRC=		${NCSRCDIR}/include
HDRDST=		${DESTDIR}/usr/include/ncursesw

afterincludes:
	cd ${HDRDST:Q}; if [[ $$(readlink ncurses.h 2>&-) != curses.h ]]; then \
		rm -f ncurses.h; \
		ln -sf curses.h ncurses.h; \
	fi
	cd ${DESTDIR:Q}/usr/include; for i in ${HDRS:T:S/curses.h/n&/}; do \
		[[ $$(readlink $$i 2>&-) = ncursesw/$$i ]] && continue; \
		rm -f $$i; \
		ln -s ncursesw/$$i; \
	done

.if ${NOMAN:L} == "no"
maninstall: catmaninstall

catmaninstall:
	${MINSTALL} ${NCSRCDIR}/man/terminfo.cat5 \
	    ${DESTDIR}${MANDIR}5/terminfo.0
.endif

afterinstall:
	${INSTALL} -d -o ${BINOWN} -g ${CONFGRP} -m ${DIRMODE} \
	    ${DESTDIR}/usr/share/doc/html/curses
	cd ${NCSRCDIR}/doc/html; ${INSTALL} ${INSTALL_COPY} -o ${DOCOWN} \
	    -g ${DOCGRP} -m ${DOCMODE} NCURSES-Programming-HOWTO.html \
	    announce.html hackguide.html index.html ncurses-intro.html \
	    ${DESTDIR}/usr/share/doc/html/curses/
	${INSTALL} ${INSTALL_COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \
	    ${NCSRCDIR}/include/Caps ${DESTDIR}/usr/share/misc/

.include <bsd.lib.mk>

${OBJS}: ${GENERATED}
