xref: /dragonfly/lib/libncurses/Makefile (revision 1de703da)
1# $FreeBSD: src/lib/libncurses/Makefile,v 1.39.2.13 2002/08/07 16:31:48 ru Exp $
2# $DragonFly: src/lib/libncurses/Makefile,v 1.2 2003/06/17 04:26:50 dillon Exp $
3
4NCURSES=${.CURDIR}/../../contrib/ncurses
5
6LIB=	ncurses
7SHLIB_MAJOR=5
8SHLIB_MINOR=0
9
10# Should be elsewhere
11AWK?=	awk
12TERMINFODIR?=	${SHAREDIR}/misc
13
14NCURSES_MAJOR!=egrep 'NCURSES_MAJOR[ 	]*=' ${NCURSES}/dist.mk | sed -e 's/^[^0-9]*//'
15NCURSES_MINOR!=egrep 'NCURSES_MINOR[ 	]*=' ${NCURSES}/dist.mk | sed -e 's/^[^0-9]*//'
16NCURSES_PATCH!=egrep 'NCURSES_PATCH[ 	]*=' ${NCURSES}/dist.mk | sed -e 's/^[^0-9]*//'
17
18# From autoconf (!)
19NCURSES_CONST=
20NCURSES_XNAMES=	1
21OSPEED_INCLUDES=\#include <termios.h>
22OSPEED_TYPE=	speed_t
23BUILTIN_BOOL=	1
24BOOL_TYPE=	0
25TYPE_OF_BOOL=	char
26TYPEOF_CHTYPE=	long
27WIDEC_SHIFT=	8
28SHIFT_LIMIT=	32
29ONEUL=		1UL
30
31.PATH:  ${NCURSES}/ncurses
32.PATH:  ${NCURSES}/ncurses/base
33.PATH:  ${NCURSES}/ncurses/tinfo
34.PATH:  ${NCURSES}/ncurses/tty
35.PATH:  ${NCURSES}/ncurses/trace
36.PATH:  ${NCURSES}/include
37.PATH:  ${NCURSES}/man
38
39CFLAGS+=-I. -I${.CURDIR} -I${NCURSES}/ncurses -I${NCURSES}/include
40CFLAGS+=-Wall -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS
41
42GENSRC= \
43	codes.c \
44	expanded.c \
45	fallback.c \
46	lib_gen.c \
47	lib_keyname.c \
48	names.c \
49	unctrl.c
50
51GENHDR= \
52	curses.h \
53	hashsize.h \
54	init_keytry.h \
55	ncurses_def.h \
56	nomacros.h \
57	parametrized.h \
58	term.h \
59	termcap.h \
60	unctrl.h
61
62# Installed
63HEADERS=curses.h term.h termcap.h unctrl.h
64INCS=	${HEADERS}
65INCSLINKS= curses.h ${INCLUDEDIR}/ncurses.h
66
67# Components of names.c and codes.c
68NAMESRC=boolnames boolfnames numnames numfnames strnames strfnames
69CODESRC=boolcodes numcodes strcodes
70
71SRCS=	${GENHDR} ${GENSRC} \
72	access.c \
73	add_tries.c \
74	alloc_entry.c \
75	alloc_ttype.c \
76	captoinfo.c \
77	comp_captab.c \
78	comp_error.c \
79	comp_expand.c \
80	comp_hash.c \
81	comp_parse.c \
82	comp_scan.c \
83	define_key.c \
84	doalloc.c \
85	free_ttype.c \
86	getenv_num.c \
87	hardscroll.c \
88	hashmap.c \
89	home_terminfo.c \
90	init_keytry.c \
91	keybound.c \
92	keyok.c \
93	lib_acs.c \
94	lib_addch.c \
95	lib_addstr.c \
96	lib_baudrate.c \
97	lib_beep.c \
98	lib_bkgd.c \
99	lib_box.c \
100	lib_chgat.c \
101	lib_clear.c \
102	lib_clearok.c \
103	lib_clrbot.c \
104	lib_clreol.c \
105	lib_color.c \
106	lib_colorset.c \
107	lib_cur_term.c \
108	lib_data.c \
109	lib_delch.c \
110	lib_delwin.c \
111	lib_dft_fgbg.c \
112	lib_echo.c \
113	lib_endwin.c \
114	lib_erase.c \
115	lib_flash.c \
116	lib_freeall.c \
117	lib_getch.c \
118	lib_getstr.c \
119	lib_has_cap.c \
120	lib_hline.c \
121	lib_immedok.c \
122	lib_inchstr.c \
123	lib_initscr.c \
124	lib_insch.c \
125	lib_insdel.c \
126	lib_insstr.c \
127	lib_instr.c \
128	lib_isendwin.c \
129	lib_kernel.c \
130	lib_leaveok.c \
131	lib_longname.c \
132	lib_mouse.c \
133	lib_move.c \
134	lib_mvcur.c \
135	lib_mvwin.c \
136	lib_napms.c \
137	lib_newterm.c \
138	lib_newwin.c \
139	lib_nl.c \
140	lib_options.c \
141	lib_overlay.c \
142	lib_pad.c \
143	lib_print.c \
144	lib_printw.c \
145	lib_raw.c \
146	lib_redrawln.c \
147	lib_refresh.c \
148	lib_restart.c \
149	lib_scanw.c \
150	lib_screen.c \
151	lib_scroll.c \
152	lib_scrollok.c \
153	lib_scrreg.c \
154	lib_set_term.c \
155	lib_setup.c \
156	lib_slk.c \
157	lib_slkatr_set.c \
158	lib_slkatrof.c \
159	lib_slkatron.c \
160	lib_slkatrset.c \
161	lib_slkattr.c \
162	lib_slkclear.c \
163	lib_slkcolor.c \
164	lib_slkinit.c \
165	lib_slklab.c \
166	lib_slkrefr.c \
167	lib_slkset.c \
168	lib_slktouch.c \
169	lib_termcap.c \
170	lib_termname.c \
171	lib_tgoto.c \
172	lib_ti.c \
173	lib_touch.c \
174	lib_tparm.c \
175	lib_tputs.c \
176	lib_trace.c \
177	lib_traceatr.c \
178	lib_tracebits.c \
179	lib_tracechr.c \
180	lib_tracedmp.c \
181	lib_tracemse.c \
182	lib_tstp.c \
183	lib_ttyflags.c \
184	lib_twait.c \
185	lib_ungetch.c \
186	lib_vidattr.c \
187	lib_vline.c \
188	lib_wattroff.c \
189	lib_wattron.c \
190	lib_winch.c \
191	lib_window.c \
192	memmove.c \
193	name_match.c \
194	nc_panel.c \
195	parse_entry.c \
196	read_entry.c \
197	resizeterm.c \
198	safe_sprintf.c \
199	setbuf.c \
200	sigaction.c \
201	strings.c \
202	trace_buf.c \
203	trace_tries.c \
204	trace_xnames.c \
205	tries.c \
206	tty_update.c \
207	version.c \
208	vsscanf.c \
209	wresize.c \
210	write_entry.c \
211
212# From our old libtermcap.
213# Used instead of the hideous read_termcap.c abomination.
214SRCS+=	termcap.c
215
216CLEANFILES+=	${GENSRC} ${GENHDR} keys.tries make_hash term.h.new \
217	make_keys MKterm.h.awk comp_captab.c \
218	namehdr nameftr codeftr ${NAMESRC} ${CODESRC}
219
220SYMLINKS+=libncurses.a ${LIBDIR}/libcurses.a
221SYMLINKS+=libncurses.a ${LIBDIR}/libtermcap.a
222SYMLINKS+=libncurses.a ${LIBDIR}/libtermlib.a
223SYMLINKS+=libncurses.a ${LIBDIR}/libmytinfo.a
224SYMLINKS+=libncurses.a ${LIBDIR}/libtinfo.a
225.if !defined(NOPIC)
226.if ${OBJFORMAT} == aout
227SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
228	  libcurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
229SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
230	  libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
231SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
232	  libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
233SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
234	  libmytinfo.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
235SYMLINKS+=libncurses.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
236	  libtinfo.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
237.else
238# no need for major at all, it's an ld-time redirection only
239SYMLINKS+=libncurses.so ${SHLIBDIR}/libcurses.so
240SYMLINKS+=libncurses.so ${SHLIBDIR}/libtermcap.so
241SYMLINKS+=libncurses.so ${SHLIBDIR}/libtermlib.so
242SYMLINKS+=libncurses.so ${SHLIBDIR}/libmytinfo.so
243SYMLINKS+=libncurses.so ${SHLIBDIR}/libtinfo.so
244.endif
245.endif
246.if !defined(NOPROFILE)
247SYMLINKS+=libncurses_p.a ${LIBDIR}/libcurses_p.a
248SYMLINKS+=libncurses_p.a ${LIBDIR}/libtermcap_p.a
249SYMLINKS+=libncurses_p.a ${LIBDIR}/libtermlib_p.a
250SYMLINKS+=libncurses_p.a ${LIBDIR}/libmytinfo_p.a
251SYMLINKS+=libncurses_p.a ${LIBDIR}/libtinfo_p.a
252.endif
253
254DOCSDIR= /usr/share/doc/ncurses
255DOCS=	ncurses-intro.html hackguide.html
256
257.if !defined(NOHTML)
258afterinstall:
259.for file in ${DOCS}
260	cd ${.CURDIR}/../../contrib/ncurses/misc ; \
261	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \
262		${DESTDIR}${DOCSDIR}
263.endfor
264.endif
265
266# Generated source
267namehdr nameftr codeftr ${NAMESRC} ${CODESRC}: MKnames.awk Caps
268	${AWK} -f ${NCURSES}/ncurses/tinfo/MKnames.awk ${NCURSES}/include/Caps
269
270.ORDER: namehdr ${NAMESRC} ${CODESRC} nameftr codeftr names.c codes.c
271
272names.c:	 namehdr ${NAMESRC} nameftr
273	cat namehdr ${NAMESRC} nameftr > $@
274
275codes.c:	 namehdr ${CODESRC} codeftr
276	cat namehdr ${CODESRC} codeftr > $@
277
278lib_gen.c:	MKlib_gen.sh curses.h
279	sh ${NCURSES}/ncurses/base/MKlib_gen.sh "${CC} -E ${CFLAGS}" \
280	    "${AWK}" < curses.h >$@
281
282lib_keyname.c:	keys.list MKkeyname.awk
283	${AWK} -f ${NCURSES}/ncurses/base/MKkeyname.awk \
284	    ${NCURSES}/ncurses/tinfo/keys.list > lib_keyname.c
285
286unctrl.c:	MKunctrl.awk
287	echo | ${AWK} -f ${NCURSES}/ncurses/base/MKunctrl.awk > unctrl.c
288
289comp_captab.c:	MKcaptab.awk Caps make_hash
290	sh ${NCURSES}/ncurses/tinfo/MKcaptab.awk "${AWK}" \
291	    ${NCURSES}/include/Caps > comp_captab.c
292
293expanded.c:	MKexpanded.sh
294	sh ${NCURSES}/ncurses/tty/MKexpanded.sh "${CC} -E" ${CFLAGS} >expanded.c
295
296fallback.c:	MKfallback.sh
297	sh ${NCURSES}/ncurses/tinfo/MKfallback.sh > fallback.c
298
299# Generated headers
300ncurses_def.h:	MKncurses_def.sh ncurses_defs
301	AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
302	    ${NCURSES}/include/ncurses_defs > ncurses_def.h
303
304nomacros.h:	MKlib_gen.sh curses.h
305	sh ${NCURSES}/ncurses/base/MKlib_gen.sh "${CC} -E ${CFLAGS}" \
306	    "${AWK}" < curses.h | fgrep undef > $@
307
308init_keytry.h:	keys.list make_keys
309	./make_keys ${NCURSES}/ncurses/tinfo/keys.list > init_keytry.h
310
311hashsize.h:	MKhashsize.sh Caps
312	sh ${NCURSES}/include/MKhashsize.sh ${NCURSES}/include/Caps > $@
313
314parametrized.h:	MKparametrized.sh Caps
315	AWK=${AWK} sh ${NCURSES}/include/MKparametrized.sh \
316	    ${NCURSES}/include/Caps > $@
317
318term.h:		MKterm.h.awk edit_cfg.sh Caps
319	${AWK} -f MKterm.h.awk ${NCURSES}/include/Caps > $@.new
320	sh ${NCURSES}/include/edit_cfg.sh ${.CURDIR}/ncurses_cfg.h $@.new
321	mv -f $@.new $@
322
323# Build tools
324build-tools: make_hash make_keys
325
326make_keys:	make_keys.c names.c ncurses_def.h ${HEADERS}
327	${CC} -o $@ ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c
328
329make_hash:	comp_hash.c hashsize.h ncurses_def.h ${HEADERS}
330	${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \
331		${NCURSES}/ncurses/tinfo/comp_hash.c
332
333# ./configure generated
334MKterm.h.awk:	MKterm.h.awk.in
335	sed <${NCURSES}/include/$@.in >$@ \
336	    -e "/@NCURSES_MAJOR@/s//${NCURSES_MAJOR}/" \
337	    -e "/@NCURSES_MINOR@/s//${NCURSES_MINOR}/" \
338	    -e "/@NCURSES_CONST@/s//${NCURSES_CONST}/" \
339	    -e "/@NCURSES_XNAMES@/s//${NCURSES_XNAMES}/"
340
341termcap.h:	termcap.h.in
342	sed <${NCURSES}/include/$@.in >$@ \
343	    -e "/@NCURSES_MAJOR@/s//${NCURSES_MAJOR}/" \
344	    -e "/@NCURSES_MINOR@/s//${NCURSES_MINOR}/" \
345	    -e "/@NCURSES_CONST@/s//${NCURSES_CONST}/" \
346	    -e "/@OSPEED_INCLUDES@/s//${OSPEED_INCLUDES}/" \
347	    -e "/@OSPEED_TYPE@/s//${OSPEED_TYPE}/"
348
349curses.h:	curses.h.in
350	sed <${NCURSES}/include/$@.in >$@ \
351	    -e "/@NCURSES_MAJOR@/s//${NCURSES_MAJOR}/" \
352	    -e "/@NCURSES_MINOR@/s//${NCURSES_MINOR}/" \
353	    -e "/@NCURSES_PATCH@/s//${NCURSES_PATCH}/" \
354	    -e "/@NCURSES_CONST@/s//${NCURSES_CONST}/" \
355	    -e "s/@cf_cv_builtin_bool@/${BUILTIN_BOOL}/g" \
356	    -e "s/@cf_cv_cc_bool_type@/${BOOL_TYPE}/g" \
357	    -e "s/@cf_cv_type_of_bool@/${TYPE_OF_BOOL}/g" \
358	    -e "s/@cf_cv_typeof_chtype@/${TYPEOF_CHTYPE}/g" \
359	    -e "s/@cf_cv_widec_shift@/${WIDEC_SHIFT}/g" \
360	    -e "s/@cf_cv_shift_limit@/${SHIFT_LIMIT}/g" \
361	    -e "s/@cf_cv_1UL@/${ONEUL}/g"
362
363unctrl.h:	unctrl.h.in
364	sed <${NCURSES}/include/$@.in >$@ \
365	    -e "/@NCURSES_MAJOR@/s//${NCURSES_MAJOR}/" \
366	    -e "/@NCURSES_MINOR@/s//${NCURSES_MINOR}/"
367
368# MAN page gunk
369terminfo.5:	MKterminfo.sh terminfo.head Caps
370	sh ${NCURSES}/man/MKterminfo.sh ${NCURSES}/man/terminfo.head \
371	    ${NCURSES}/include/Caps ${NCURSES}/man/terminfo.tail >$@
372
373CLEANFILES+=	terminfo.5
374MANFILTER=	sed -e 's\#@TERMINFO@\#${TERMINFODIR}/terminfo\#g'
375
376MANx=	curs_addch.3x curs_addchstr.3x curs_addstr.3x curs_attr.3x \
377	curs_beep.3x curs_bkgd.3x curs_border.3x curs_clear.3x curs_color.3x \
378	curs_delch.3x curs_deleteln.3x curs_extend.3x curs_getch.3x \
379	curs_getstr.3x \
380	curs_getyx.3x curs_inch.3x curs_inchstr.3x curs_initscr.3x \
381	curs_inopts.3x curs_insch.3x curs_insstr.3x curs_instr.3x \
382	curs_kernel.3x curs_mouse.3x curs_move.3x curs_outopts.3x \
383	curs_overlay.3x curs_pad.3x curs_print.3x curs_printw.3x \
384	curs_refresh.3x curs_scanw.3x curs_scr_dump.3x curs_scroll.3x \
385	curs_slk.3x curs_termattrs.3x curs_termcap.3x curs_terminfo.3x \
386	curs_touch.3x curs_trace.3x curs_util.3x curs_window.3x \
387	default_colors.3x define_key.3x \
388	dft_fgbg.3x keybound.3x keyok.3x ncurses.3x resizeterm.3x wresize.3x
389MAN=	term.5 terminfo.5
390MAN+=	term.7
391
392# Generate the MAN list from MANx
393.for page in ${MANx}
394CLEANFILES+=${page:T:S/x$//g}
395MAN+=${page:T:S/x$//g}
396${page:T:S/x$//g}: ${page}
397	ln -s ${.ALLSRC} ${.TARGET}
398.endfor
399
400MLINKS+=ncurses.3 curses.3
401MLINKS+=curs_addch.3 addch.3 curs_addch.3 echochar.3 curs_addch.3 mvaddch.3 \
402	curs_addch.3 mvwaddch.3 curs_addch.3 waddch.3 curs_addch.3 wechochar.3
403MLINKS+=curs_addchstr.3 addchnstr.3 curs_addchstr.3 addchstr.3 \
404	curs_addchstr.3 mvaddchnstr.3 curs_addchstr.3 mvaddchstr.3 \
405	curs_addchstr.3 mvwaddchnstr.3 curs_addchstr.3 mvwaddchstr.3 \
406	curs_addchstr.3 waddchnstr.3 curs_addchstr.3 waddchstr.3
407MLINKS+=curs_addstr.3 addnstr.3 curs_addstr.3 addstr.3 \
408	curs_addstr.3 mvaddnstr.3 curs_addstr.3 mvaddstr.3 \
409	curs_addstr.3 mvwaddnstr.3 curs_addstr.3 mvwaddstr.3 \
410	curs_addstr.3 waddnstr.3 curs_addstr.3 waddstr.3
411MLINKS+=curs_attr.3 PAIR_NUMBER.3 \
412	curs_attr.3 attr_get.3 curs_attr.3 attr_off.3 curs_attr.3 attr_on.3 \
413	curs_attr.3 attr_set.3 curs_attr.3 attroff.3 curs_attr.3 attron.3 \
414	curs_attr.3 attrset.3 curs_attr.3 chgat.3 curs_attr.3 color_set.3 \
415	curs_attr.3 mvchgat.3 curs_attr.3 mvwchgat.3 curs_attr.3 standend.3 \
416	curs_attr.3 standout.3 curs_attr.3 wattr_get.3 curs_attr.3 wattr_off.3 \
417	curs_attr.3 wattr_on.3 curs_attr.3 wattr_set.3 curs_attr.3 wattroff.3 \
418	curs_attr.3 wattron.3 curs_attr.3 wattrset.3 curs_attr.3 wchgat.3 \
419	curs_attr.3 wcolor_set.3 curs_attr.3 wstandend.3 \
420	curs_attr.3 wstandout.3
421MLINKS+=curs_beep.3 beep.3 curs_beep.3 flash.3
422MLINKS+=curs_bkgd.3 bkgd.3 curs_bkgd.3 bkgdset.3 curs_bkgd.3 getbkgd.3 \
423	curs_bkgd.3 wbkgd.3 curs_bkgd.3 wbkgdset.3
424MLINKS+=curs_border.3 border.3 curs_border.3 box.3 curs_border.3 hline.3 \
425	curs_border.3 mvhline.3 curs_border.3 mvvline.3 \
426	curs_border.3 mvwhline.3 \
427	curs_border.3 mvwvline.3 curs_border.3 vline.3 curs_border.3 wborder.3 \
428	curs_border.3 whline.3 curs_border.3 wvline.3
429MLINKS+=curs_clear.3 clear.3 curs_clear.3 clrtobot.3 curs_clear.3 clrtoeol.3 \
430	curs_clear.3 erase.3 curs_clear.3 wclear.3 curs_clear.3 wclrtobot.3 \
431	curs_clear.3 wclrtoeol.3 curs_clear.3 werase.3
432MLINKS+=curs_color.3 COLOR_PAIR.3 \
433	curs_color.3 can_change_color.3 curs_color.3 color_content.3 \
434	curs_color.3 has_colors.3 curs_color.3 init_color.3 \
435	curs_color.3 init_pair.3 curs_color.3 pair_content.3 \
436	curs_color.3 start_color.3
437MLINKS+=curs_delch.3 delch.3 curs_delch.3 mvdelch.3 curs_delch.3 mvwdelch.3 \
438	curs_delch.3 wdelch.3
439MLINKS+=curs_deleteln.3 deleteln.3 curs_deleteln.3 insdelln.3 \
440	curs_deleteln.3 insertln.3 curs_deleteln.3 wdeleteln.3 \
441	curs_deleteln.3 winsdelln.3 curs_deleteln.3 winsertln.3
442MLINKS+=curs_extend.3 curses_version.3 curs_extend.3 use_extended_names.3
443MLINKS+=curs_getch.3 getch.3 curs_getch.3 has_key.3 curs_getch.3 mvgetch.3 \
444	curs_getch.3 mvwgetch.3 curs_getch.3 ungetch.3 curs_getch.3 wgetch.3
445MLINKS+=curs_getstr.3 getnstr.3 curs_getstr.3 getstr.3 \
446	curs_getstr.3 mvgetnstr.3 curs_getstr.3 mvgetstr.3 \
447	curs_getstr.3 mvwgetnstr.3 curs_getstr.3 mvwgetstr.3 \
448	curs_getstr.3 wgetnstr.3 curs_getstr.3 wgetstr.3
449MLINKS+=curs_getyx.3 getbegyx.3 curs_getyx.3 getmaxyx.3 \
450	curs_getyx.3 getparyx.3 curs_getyx.3 getyx.3
451MLINKS+=curs_inch.3 inch.3 curs_inch.3 mvinch.3 curs_inch.3 mvwinch.3 \
452	curs_inch.3 winch.3
453MLINKS+=curs_inchstr.3 inchnstr.3 curs_inchstr.3 inchstr.3 \
454	curs_inchstr.3 mvinchnstr.3 curs_inchstr.3 mvinchstr.3 \
455	curs_inchstr.3 mvwinchnstr.3 curs_inchstr.3 mvwinchstr.3 \
456	curs_inchstr.3 winchnstr.3 curs_inchstr.3 winchstr.3
457MLINKS+=curs_initscr.3 delscreen.3 curs_initscr.3 endwin.3 \
458	curs_initscr.3 initscr.3 curs_initscr.3 isendwin.3 \
459	curs_initscr.3 newterm.3 curs_initscr.3 set_term.3
460MLINKS+=curs_inopts.3 cbreak.3 curs_inopts.3 echo.3 curs_inopts.3 halfdelay.3 \
461	curs_inopts.3 intrflush.3 curs_inopts.3 keypad.3 curs_inopts.3 meta.3 \
462	curs_inopts.3 nocbreak.3 curs_inopts.3 nodelay.3 \
463	curs_inopts.3 noecho.3 curs_inopts.3 noqiflush.3 curs_inopts.3 noraw.3 \
464	curs_inopts.3 notimeout.3 curs_inopts.3 qiflush.3 curs_inopts.3 raw.3 \
465	curs_inopts.3 timeout.3 curs_inopts.3 typeahead.3 \
466	curs_inopts.3 wtimeout.3
467MLINKS+=curs_insch.3 insch.3 curs_insch.3 mvinsch.3 curs_insch.3 mvwinsch.3 \
468	curs_insch.3 winsch.3
469MLINKS+=curs_insstr.3 insnstr.3 curs_insstr.3 insstr.3 \
470	curs_insstr.3 mvinsnstr.3 curs_insstr.3 mvinsstr.3 \
471	curs_insstr.3 mvwinsnstr.3 curs_insstr.3 mvwinsstr.3 \
472	curs_insstr.3 winsnstr.3 curs_insstr.3 winsstr.3
473MLINKS+=curs_instr.3 innstr.3 curs_instr.3 instr.3 curs_instr.3 mvinnstr.3 \
474	curs_instr.3 mvinstr.3 curs_instr.3 mvwinnstr.3 \
475	curs_instr.3 mvwinstr.3 curs_instr.3 winnstr.3 curs_instr.3 winstr.3
476MLINKS+=curs_kernel.3 curs_set.3 curs_kernel.3 def_prog_mode.3 \
477	curs_kernel.3 def_shell_mode.3 curs_kernel.3 getsyx.3 \
478	curs_kernel.3 napms.3 curs_kernel.3 reset_prog_mode.3 \
479	curs_kernel.3 reset_shell_mode.3 curs_kernel.3 resetty.3 \
480	curs_kernel.3 ripoffline.3 curs_kernel.3 savetty.3 \
481	curs_kernel.3 setsyx.3
482MLINKS+=curs_mouse.3 getmouse.3 curs_mouse.3 mouse_trafo.3 \
483	curs_mouse.3 mouseinterval.3 \
484	curs_mouse.3 mousemask.3 curs_mouse.3 ungetmouse.3 \
485	curs_mouse.3 wenclose.3 curs_mouse.3 wmouse_trafo.3
486MLINKS+=curs_move.3 move.3 curs_move.3 wmove.3
487MLINKS+=curs_outopts.3 clearok.3 curs_outopts.3 idcok.3 curs_outopts.3 idlok.3 \
488	curs_outopts.3 immedok.3 curs_outopts.3 leaveok.3 curs_outopts.3 nl.3 \
489	curs_outopts.3 nonl.3 curs_outopts.3 scrollok.3 \
490	curs_outopts.3 setscrreg.3 curs_outopts.3 wsetscrreg.3
491MLINKS+=curs_overlay.3 copywin.3 curs_overlay.3 overlay.3 \
492	curs_overlay.3 overwrite.3
493MLINKS+=curs_pad.3 newpad.3 curs_pad.3 pechochar.3 curs_pad.3 pnoutrefresh.3 \
494	curs_pad.3 prefresh.3 curs_pad.3 subpad.3
495MLINKS+=curs_print.3 mcprint.3
496MLINKS+=curs_printw.3 mvprintw.3 curs_printw.3 mvwprintw.3 \
497	curs_printw.3 printw.3 curs_printw.3 vw_printw.3 \
498	curs_printw.3 vwprintw.3 curs_printw.3 wprintw.3
499MLINKS+=curs_refresh.3 doupdate.3 curs_refresh.3 redrawwin.3 \
500	curs_refresh.3 refresh.3 curs_refresh.3 wnoutrefresh.3 \
501	curs_refresh.3 wredrawln.3 curs_refresh.3 wrefresh.3
502MLINKS+=curs_scanw.3 mvscanw.3 curs_scanw.3 mvwscanw.3 curs_scanw.3 scanw.3 \
503	curs_scanw.3 vw_scanw.3 curs_scanw.3 vwscanw.3 curs_scanw.3 wscanw.3
504MLINKS+=curs_scr_dump.3 scr_dump.3 curs_scr_dump.3 scr_init.3 \
505	curs_scr_dump.3 scr_restore.3 curs_scr_dump.3 scr_set.3
506MLINKS+=curs_scroll.3 scrl.3 curs_scroll.3 scroll.3 curs_scroll.3 wscrl.3
507MLINKS+=curs_slk.3 slk_attr.3 curs_slk.3 slk_attr_off.3 \
508	curs_slk.3 slk_attr_on.3 curs_slk.3 slk_attr_set.3 \
509	curs_slk.3 slk_attroff.3 curs_slk.3 slk_attron.3 \
510	curs_slk.3 slk_attrset.3 curs_slk.3 slk_clear.3 \
511	curs_slk.3 slk_color.3 curs_slk.3 slk_init.3 curs_slk.3 slk_label.3 \
512	curs_slk.3 slk_noutrefresh.3 curs_slk.3 slk_refresh.3 \
513	curs_slk.3 slk_restore.3 curs_slk.3 slk_set.3 curs_slk.3 slk_touch.3
514MLINKS+=curs_termattrs.3 baudrate.3 curs_termattrs.3 erasechar.3 \
515	curs_termattrs.3 has_ic.3 curs_termattrs.3 has_il.3 \
516	curs_termattrs.3 killchar.3 curs_termattrs.3 longname.3 \
517	curs_termattrs.3 termattrs.3 curs_termattrs.3 termname.3
518MLINKS+=curs_termcap.3 termcap.3 curs_termcap.3 tgetent.3 \
519	curs_termcap.3 tgetflag.3 curs_termcap.3 tgetnum.3 \
520	curs_termcap.3 tgetstr.3 curs_termcap.3 tgoto.3 \
521	curs_termcap.3 tputs.3
522MLINKS+=curs_terminfo.3 del_curterm.3 curs_terminfo.3 mvcur.3 \
523	curs_terminfo.3 putp.3 curs_terminfo.3 restartterm.3 \
524	curs_terminfo.3 set_curterm.3 curs_terminfo.3 setterm.3 \
525	curs_terminfo.3 setupterm.3 curs_terminfo.3 tigetflag.3 \
526	curs_terminfo.3 tigetnum.3 curs_terminfo.3 tigetstr.3 \
527	curs_terminfo.3 tparm.3 curs_terminfo.3 tputs.3 \
528	curs_terminfo.3 vidattr.3 curs_terminfo.3 vidputs.3
529MLINKS+=curs_touch.3 is_linetouched.3 curs_touch.3 is_wintouched.3 \
530	curs_touch.3 touchline.3 curs_touch.3 touchwin.3 \
531	curs_touch.3 untouchwin.3 curs_touch.3 wtouchln.3
532MLINKS+=curs_util.3 delay_output.3 curs_util.3 filter.3 \
533	curs_util.3 flushinp.3 curs_util.3 getwin.3 \
534	curs_util.3 keyname.3 curs_util.3 putwin.3 \
535	curs_util.3 unctrl.3 curs_util.3 use_env.3
536MLINKS+=curs_window.3 delwin.3 curs_window.3 derwin.3 curs_window.3 dupwin.3 \
537	curs_window.3 mvderwin.3 curs_window.3 mvwin.3 curs_window.3 newwin.3 \
538	curs_window.3 subwin.3 curs_window.3 syncok.3 \
539	curs_window.3 wcursyncup.3 curs_window.3 wsyncdown.3 \
540	curs_window.3 wsyncup.3
541MLINKS+=default_colors.3 assume_default_colors.3 \
542	default_colors.3 use_default_colors.3
543
544.include <bsd.lib.mk>
545