xref: /freebsd/lib/ncurses/menu/Makefile (revision 3bdf775801b218aa5a89564839405b122f4b233e)
156072d6bSPeter Wemm# $FreeBSD$
256072d6bSPeter Wemm
3f737c0d5SRong-En Fan.include "${.CURDIR}/../config.mk"
456072d6bSPeter Wemm
5f737c0d5SRong-En FanSRCDIR=	${NCURSES_DIR}/menu
656072d6bSPeter Wemm
731b4134fSRong-En FanLIB=	menu${LIB_SUFFIX}
856072d6bSPeter Wemm
9f737c0d5SRong-En Fan.PATH: ${SRCDIR}
10f737c0d5SRong-En FanSRCS=	\
11f737c0d5SRong-En Fan	ncurses_def.h \
12f737c0d5SRong-En Fan	m_attribs.c \
13f737c0d5SRong-En Fan	m_cursor.c \
14f737c0d5SRong-En Fan	m_driver.c \
15f737c0d5SRong-En Fan	m_format.c \
16f737c0d5SRong-En Fan	m_global.c \
17f737c0d5SRong-En Fan	m_hook.c \
18f737c0d5SRong-En Fan	m_item_cur.c \
19f737c0d5SRong-En Fan	m_item_nam.c \
20f737c0d5SRong-En Fan	m_item_new.c \
21f737c0d5SRong-En Fan	m_item_opt.c \
22f737c0d5SRong-En Fan	m_item_top.c \
23f737c0d5SRong-En Fan	m_item_use.c \
24f737c0d5SRong-En Fan	m_item_val.c \
25f737c0d5SRong-En Fan	m_item_vis.c \
26f737c0d5SRong-En Fan	m_items.c \
27f737c0d5SRong-En Fan	m_new.c \
28f737c0d5SRong-En Fan	m_opts.c \
29f737c0d5SRong-En Fan	m_pad.c \
30f737c0d5SRong-En Fan	m_pattern.c \
31f737c0d5SRong-En Fan	m_post.c \
32f737c0d5SRong-En Fan	m_req_name.c \
33f737c0d5SRong-En Fan	m_scale.c \
34f737c0d5SRong-En Fan	m_spacing.c \
35f737c0d5SRong-En Fan	m_sub.c \
36f737c0d5SRong-En Fan	m_userptr.c \
37f737c0d5SRong-En Fan	m_win.c
38f737c0d5SRong-En Fan
39557158deSRong-En FanCLEANFILES=	ncurses_def.h
40557158deSRong-En Fan
41f737c0d5SRong-En FanCFLAGS+=	-I${SRCDIR}
42f737c0d5SRong-En Fan
4353089271STijl CoosemansDPADD=	${LIBNCURSES${LIB_SUFFIX:tu}}
4431b4134fSRong-En FanLDADD=	-lncurses${LIB_SUFFIX}
4556072d6bSPeter Wemm
464409495bSRong-En Fan.if defined(ENABLE_WIDEC)
47557158deSRong-En FanINCS=	menu.h eti.h
4856072d6bSPeter Wemm
49f737c0d5SRong-En Fan.PATH: ${NCURSES_DIR}/man
50557158deSRong-En FanMAN=	\
51557158deSRong-En Fan	menu.3 \
52557158deSRong-En Fan	menu_attributes.3 \
53557158deSRong-En Fan	menu_cursor.3 \
54557158deSRong-En Fan	menu_driver.3 \
55557158deSRong-En Fan	menu_format.3 \
56557158deSRong-En Fan	menu_hook.3 \
57557158deSRong-En Fan	menu_items.3 \
58557158deSRong-En Fan	menu_mark.3 \
59557158deSRong-En Fan	menu_new.3 \
60557158deSRong-En Fan	menu_opts.3 \
61557158deSRong-En Fan	menu_pattern.3 \
62557158deSRong-En Fan	menu_post.3 \
63557158deSRong-En Fan	menu_requestname.3 \
64557158deSRong-En Fan	menu_spacing.3 \
65557158deSRong-En Fan	menu_userptr.3 \
66557158deSRong-En Fan	menu_win.3 \
67557158deSRong-En Fan	mitem_current.3 \
68557158deSRong-En Fan	mitem_name.3 \
69557158deSRong-En Fan	mitem_new.3 \
70557158deSRong-En Fan	mitem_opts.3 \
71557158deSRong-En Fan	mitem_userptr.3 \
72557158deSRong-En Fan	mitem_value.3 \
73557158deSRong-En Fan	mitem_visible.3
7414eadf47SThomas Gellekum
75557158deSRong-En FanCLEANFILES+=	${MAN:M*.3}
7614eadf47SThomas Gellekum
77f737c0d5SRong-En FanMLINKS=	menu_attributes.3 menu_back.3 \
78f737c0d5SRong-En Fan	menu_attributes.3 menu_fore.3 \
79f737c0d5SRong-En Fan	menu_attributes.3 menu_grey.3 \
80f737c0d5SRong-En Fan	menu_attributes.3 menu_pad.3 \
81f737c0d5SRong-En Fan	menu_attributes.3 set_menu_back.3 \
82f737c0d5SRong-En Fan	menu_attributes.3 set_menu_fore.3 \
83f737c0d5SRong-En Fan	menu_attributes.3 set_menu_grey.3 \
84f737c0d5SRong-En Fan	menu_attributes.3 set_menu_pad.3 \
85f737c0d5SRong-En Fan	menu_cursor.3 pos_menu_cursor.3 \
86f737c0d5SRong-En Fan	menu_format.3 set_menu_format.3 \
87f737c0d5SRong-En Fan	menu_hook.3 item_init.3 \
88f737c0d5SRong-En Fan	menu_hook.3 item_term.3 \
89f737c0d5SRong-En Fan	menu_hook.3 menu_init.3 \
90f737c0d5SRong-En Fan	menu_hook.3 menu_term.3 \
91f737c0d5SRong-En Fan	menu_hook.3 set_item_init.3 \
92f737c0d5SRong-En Fan	menu_hook.3 set_item_term.3 \
93f737c0d5SRong-En Fan	menu_hook.3 set_menu_init.3 \
94f737c0d5SRong-En Fan	menu_hook.3 set_menu_term.3 \
95f737c0d5SRong-En Fan	menu_items.3 item_count.3 \
96f737c0d5SRong-En Fan	menu_items.3 set_menu_items.3 \
97f737c0d5SRong-En Fan	menu_mark.3 set_menu_mark.3 \
98f737c0d5SRong-En Fan	menu_new.3 free_menu.3 \
99f737c0d5SRong-En Fan	menu_new.3 new_menu.3 \
100f737c0d5SRong-En Fan	menu_opts.3 menu_opts_off.3 \
101f737c0d5SRong-En Fan	menu_opts.3 menu_opts_on.3 \
102f737c0d5SRong-En Fan	menu_opts.3 set_menu_opts.3 \
103f737c0d5SRong-En Fan	menu_pattern.3 set_menu_pattern.3 \
104f737c0d5SRong-En Fan	menu_post.3 post_menu.3 \
105f737c0d5SRong-En Fan	menu_post.3 unpost_menu.3 \
106f737c0d5SRong-En Fan	menu_requestname.3 menu_request_by_name.3 \
107f737c0d5SRong-En Fan	menu_requestname.3 menu_request_name.3 \
108f737c0d5SRong-En Fan	menu_spacing.3 set_menu_spacing.3 \
109f737c0d5SRong-En Fan	menu_userptr.3 set_menu_userptr.3 \
110f737c0d5SRong-En Fan	menu_win.3 menu_sub.3 \
111f737c0d5SRong-En Fan	menu_win.3 scale_menu.3 \
112f737c0d5SRong-En Fan	menu_win.3 set_menu_sub.3 \
113f737c0d5SRong-En Fan	menu_win.3 set_menu_win.3 \
114f737c0d5SRong-En Fan	mitem_current.3 current_item.3 \
115f737c0d5SRong-En Fan	mitem_current.3 item_index.3 \
116f737c0d5SRong-En Fan	mitem_current.3 set_current_item.3 \
117f737c0d5SRong-En Fan	mitem_current.3 set_top_row.3 \
118f737c0d5SRong-En Fan	mitem_current.3 top_row.3 \
119f737c0d5SRong-En Fan	mitem_name.3 item_description.3 \
120f737c0d5SRong-En Fan	mitem_name.3 item_name.3 \
121f737c0d5SRong-En Fan	mitem_new.3 free_item.3 \
122f737c0d5SRong-En Fan	mitem_new.3 new_item.3 \
123f737c0d5SRong-En Fan	mitem_opts.3 item_opts.3 \
124f737c0d5SRong-En Fan	mitem_opts.3 item_opts_off.3 \
125f737c0d5SRong-En Fan	mitem_opts.3 item_opts_on.3 \
126f737c0d5SRong-En Fan	mitem_opts.3 set_item_opts.3 \
127f737c0d5SRong-En Fan	mitem_userptr.3 item_userptr.3 \
128f737c0d5SRong-En Fan	mitem_userptr.3 set_item_userptr.3 \
129f737c0d5SRong-En Fan	mitem_value.3 item_value.3 \
130f737c0d5SRong-En Fan	mitem_value.3 set_item_value.3 \
131f737c0d5SRong-En Fan	mitem_visible.3 item_visible.3
132935f512cSBrooks Davis.else
133*3bdf7758SWarner LoshMAN=
134935f512cSBrooks Davis.endif
13514eadf47SThomas Gellekum
13656072d6bSPeter Wemm.include <bsd.lib.mk>
137557158deSRong-En Fan
138557158deSRong-En Fan# Keep the .SUFFIXES line after the include of bsd.lib.mk
139557158deSRong-En Fan.SUFFIXES: .3 .3x
140557158deSRong-En Fan.3x.3:
141557158deSRong-En Fan	cat ${.IMPSRC} > ${.TARGET}
142