Deleted Added
full compact
Makefile (97057) Makefile (115898)
1# Makefile for libmenu
1# Makefile for libmenu
2# $FreeBSD: head/lib/ncurses/menu/Makefile 97057 2002-05-21 07:08:30Z peter $
2# $FreeBSD: head/lib/ncurses/menu/Makefile 115898 2003-06-06 13:46:55Z kuriyama $
3
4NCURSES=${.CURDIR}/../../contrib/ncurses
5
6.PATH: ${NCURSES}/menu ${NCURSES}/include
7.PATH: ${NCURSES}/man
8
9LIB= menu
10AWK?= awk
11
12SRCS= ncurses_def.h \
13 m_attribs.c m_cursor.c m_driver.c m_format.c m_global.c m_hook.c \
14 m_item_cur.c m_item_nam.c m_item_new.c m_item_opt.c m_item_top.c \
15 m_item_use.c m_item_val.c m_item_vis.c m_items.c m_new.c m_opts.c \
16 m_pad.c m_pattern.c m_post.c m_req_name.c m_scale.c m_spacing.c \
17 m_sub.c m_userptr.c m_win.c
18INCS= ${NCURSES}/menu/menu.h ${NCURSES}/menu/eti.h
19
20CLEANFILES+= ncurses_def.h
21CFLAGS+= -I.
22.if exists(${.OBJDIR}/../libncurses)
23CFLAGS+= -I${.OBJDIR}/../libncurses
24.endif
25CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \
26 -Wall -DNDEBUG -DHAVE_CONFIG_H
27
28ncurses_def.h: MKncurses_def.sh ncurses_defs
29 AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
30 ${NCURSES}/include/ncurses_defs > ncurses_def.h
31
32MANx= menu.3x menu_attributes.3x menu_cursor.3x \
33 menu_driver.3x menu_format.3x menu_hook.3x menu_items.3x \
34 menu_mark.3x menu_new.3x menu_opts.3x menu_pattern.3x \
35 menu_post.3x menu_requestname.3x menu_spacing.3x \
36 menu_userptr.3x menu_win.3x mitem_current.3x mitem_name.3x \
37 mitem_new.3x mitem_opts.3x mitem_userptr.3x mitem_value.3x \
38 mitem_visible.3x
39
40# Generate the MAN list from MANx
41.for page in ${MANx}
42CLEANFILES+=${page:T:S/x$//g}
43MAN+=${page:T:S/x$//g}
44${page:T:S/x$//g}: ${page}
3
4NCURSES=${.CURDIR}/../../contrib/ncurses
5
6.PATH: ${NCURSES}/menu ${NCURSES}/include
7.PATH: ${NCURSES}/man
8
9LIB= menu
10AWK?= awk
11
12SRCS= ncurses_def.h \
13 m_attribs.c m_cursor.c m_driver.c m_format.c m_global.c m_hook.c \
14 m_item_cur.c m_item_nam.c m_item_new.c m_item_opt.c m_item_top.c \
15 m_item_use.c m_item_val.c m_item_vis.c m_items.c m_new.c m_opts.c \
16 m_pad.c m_pattern.c m_post.c m_req_name.c m_scale.c m_spacing.c \
17 m_sub.c m_userptr.c m_win.c
18INCS= ${NCURSES}/menu/menu.h ${NCURSES}/menu/eti.h
19
20CLEANFILES+= ncurses_def.h
21CFLAGS+= -I.
22.if exists(${.OBJDIR}/../libncurses)
23CFLAGS+= -I${.OBJDIR}/../libncurses
24.endif
25CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \
26 -Wall -DNDEBUG -DHAVE_CONFIG_H
27
28ncurses_def.h: MKncurses_def.sh ncurses_defs
29 AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
30 ${NCURSES}/include/ncurses_defs > ncurses_def.h
31
32MANx= menu.3x menu_attributes.3x menu_cursor.3x \
33 menu_driver.3x menu_format.3x menu_hook.3x menu_items.3x \
34 menu_mark.3x menu_new.3x menu_opts.3x menu_pattern.3x \
35 menu_post.3x menu_requestname.3x menu_spacing.3x \
36 menu_userptr.3x menu_win.3x mitem_current.3x mitem_name.3x \
37 mitem_new.3x mitem_opts.3x mitem_userptr.3x mitem_value.3x \
38 mitem_visible.3x
39
40# Generate the MAN list from MANx
41.for page in ${MANx}
42CLEANFILES+=${page:T:S/x$//g}
43MAN+=${page:T:S/x$//g}
44${page:T:S/x$//g}: ${page}
45 ln -s ${.ALLSRC} ${.TARGET}
45 cat ${.ALLSRC} > ${.TARGET}
46.endfor
47
48MLINKS+=menu_attributes.3 menu_back.3 menu_attributes.3 menu_fore.3 \
49 menu_attributes.3 menu_grey.3 menu_attributes.3 menu_pad.3 \
50 menu_attributes.3 set_menu_back.3 menu_attributes.3 set_menu_fore.3 \
51 menu_attributes.3 set_menu_grey.3 menu_attributes.3 set_menu_pad.3
52MLINKS+=menu_cursor.3 pos_menu_cursor.3
53MLINKS+=menu_format.3 set_menu_format.3
54MLINKS+=menu_hook.3 item_init.3 menu_hook.3 item_term.3 \
55 menu_hook.3 menu_init.3 menu_hook.3 menu_term.3 \
56 menu_hook.3 set_item_init.3 menu_hook.3 set_item_term.3 \
57 menu_hook.3 set_menu_init.3 menu_hook.3 set_menu_term.3
58MLINKS+=menu_items.3 item_count.3 menu_items.3 set_menu_items.3
59MLINKS+=menu_mark.3 set_menu_mark.3
60MLINKS+=menu_new.3 free_menu.3 menu_new.3 new_menu.3
61MLINKS+=menu_opts.3 menu_opts_off.3 menu_opts.3 menu_opts_on.3
62MLINKS+=menu_pattern.3 set_menu_pattern.3
63MLINKS+=menu_post.3 post_menu.3 menu_post.3 unpost_menu.3
64MLINKS+=menu_requestname.3 menu_request_by_name.3 \
65 menu_requestname.3 menu_request_name.3
66MLINKS+=menu_spacing.3 set_menu_spacing.3
67MLINKS+=menu_userptr.3 set_menu_userptr.3
68MLINKS+=menu_win.3 menu_sub.3 menu_win.3 scale_menu.3 \
69 menu_win.3 set_menu_sub.3 menu_win.3 set_menu_win.3
70MLINKS+=mitem_current.3 current_item.3 mitem_current.3 item_index.3 \
71 mitem_current.3 set_top_row.3 mitem_current.3 top_row.3 \
72 mitem_current.3 set_current_item.3
73MLINKS+=mitem_name.3 item_description.3 mitem_name.3 item_name.3
74MLINKS+=mitem_new.3 free_item.3 mitem_new.3 new_item.3
75MLINKS+=mitem_opts.3 item_opts.3 mitem_opts.3 item_opts_off.3 \
76 mitem_opts.3 item_opts_on.3 mitem_opts.3 set_item_opts.3 \
77 mitem_opts.3 set_menu_opts.3
78MLINKS+=mitem_userptr.3 item_userptr.3 mitem_userptr.3 set_item_userptr.3
79MLINKS+=mitem_value.3 item_value.3 mitem_value.3 set_item_value.3
80MLINKS+=mitem_visible.3 item_visible.3
81
82.include <bsd.lib.mk>
46.endfor
47
48MLINKS+=menu_attributes.3 menu_back.3 menu_attributes.3 menu_fore.3 \
49 menu_attributes.3 menu_grey.3 menu_attributes.3 menu_pad.3 \
50 menu_attributes.3 set_menu_back.3 menu_attributes.3 set_menu_fore.3 \
51 menu_attributes.3 set_menu_grey.3 menu_attributes.3 set_menu_pad.3
52MLINKS+=menu_cursor.3 pos_menu_cursor.3
53MLINKS+=menu_format.3 set_menu_format.3
54MLINKS+=menu_hook.3 item_init.3 menu_hook.3 item_term.3 \
55 menu_hook.3 menu_init.3 menu_hook.3 menu_term.3 \
56 menu_hook.3 set_item_init.3 menu_hook.3 set_item_term.3 \
57 menu_hook.3 set_menu_init.3 menu_hook.3 set_menu_term.3
58MLINKS+=menu_items.3 item_count.3 menu_items.3 set_menu_items.3
59MLINKS+=menu_mark.3 set_menu_mark.3
60MLINKS+=menu_new.3 free_menu.3 menu_new.3 new_menu.3
61MLINKS+=menu_opts.3 menu_opts_off.3 menu_opts.3 menu_opts_on.3
62MLINKS+=menu_pattern.3 set_menu_pattern.3
63MLINKS+=menu_post.3 post_menu.3 menu_post.3 unpost_menu.3
64MLINKS+=menu_requestname.3 menu_request_by_name.3 \
65 menu_requestname.3 menu_request_name.3
66MLINKS+=menu_spacing.3 set_menu_spacing.3
67MLINKS+=menu_userptr.3 set_menu_userptr.3
68MLINKS+=menu_win.3 menu_sub.3 menu_win.3 scale_menu.3 \
69 menu_win.3 set_menu_sub.3 menu_win.3 set_menu_win.3
70MLINKS+=mitem_current.3 current_item.3 mitem_current.3 item_index.3 \
71 mitem_current.3 set_top_row.3 mitem_current.3 top_row.3 \
72 mitem_current.3 set_current_item.3
73MLINKS+=mitem_name.3 item_description.3 mitem_name.3 item_name.3
74MLINKS+=mitem_new.3 free_item.3 mitem_new.3 new_item.3
75MLINKS+=mitem_opts.3 item_opts.3 mitem_opts.3 item_opts_off.3 \
76 mitem_opts.3 item_opts_on.3 mitem_opts.3 set_item_opts.3 \
77 mitem_opts.3 set_menu_opts.3
78MLINKS+=mitem_userptr.3 item_userptr.3 mitem_userptr.3 set_item_userptr.3
79MLINKS+=mitem_value.3 item_value.3 mitem_value.3 set_item_value.3
80MLINKS+=mitem_visible.3 item_visible.3
81
82.include <bsd.lib.mk>