xref: /freebsd/lib/ncurses/form/Makefile (revision 3750ccefb8629a08890bfbae894dd6bc6a7483b4)
1821aa63aSBaptiste Daroussin.include <src.opts.mk>
25bde33dbSEnji Cooper.include "${.CURDIR:H}/config.mk"
3a3680097SPeter Wemm
4f737c0d5SRong-En FanSRCDIR=	${NCURSES_DIR}/form
5a3680097SPeter Wemm
6c9621d45SEmmanuel VadotPACKAGE=	clibs
7821aa63aSBaptiste DaroussinLIB=	formw
80b7f1af8SJohn BaldwinSHLIB_MAJOR=	6
9e4a93f1eSRuslan Ermilov
10f737c0d5SRong-En Fan.PATH: ${SRCDIR}
11f737c0d5SRong-En FanSRCS=	\
12f737c0d5SRong-En Fan	ncurses_def.h \
13f737c0d5SRong-En Fan	fld_arg.c \
14f737c0d5SRong-En Fan	fld_attr.c \
15f737c0d5SRong-En Fan	fld_current.c \
16f737c0d5SRong-En Fan	fld_def.c \
17f737c0d5SRong-En Fan	fld_dup.c \
18f737c0d5SRong-En Fan	fld_ftchoice.c \
19f737c0d5SRong-En Fan	fld_ftlink.c \
20f737c0d5SRong-En Fan	fld_info.c \
21f737c0d5SRong-En Fan	fld_just.c \
22f737c0d5SRong-En Fan	fld_link.c \
23f737c0d5SRong-En Fan	fld_max.c \
24f737c0d5SRong-En Fan	fld_move.c \
25f737c0d5SRong-En Fan	fld_newftyp.c \
26f737c0d5SRong-En Fan	fld_opts.c \
27f737c0d5SRong-En Fan	fld_pad.c \
28f737c0d5SRong-En Fan	fld_page.c \
29f737c0d5SRong-En Fan	fld_stat.c \
30f737c0d5SRong-En Fan	fld_type.c \
31f737c0d5SRong-En Fan	fld_user.c \
32f737c0d5SRong-En Fan	frm_cursor.c \
33f737c0d5SRong-En Fan	frm_data.c \
34f737c0d5SRong-En Fan	frm_def.c \
35f737c0d5SRong-En Fan	frm_driver.c \
36f737c0d5SRong-En Fan	frm_hook.c \
37f737c0d5SRong-En Fan	frm_opts.c \
38f737c0d5SRong-En Fan	frm_page.c \
39f737c0d5SRong-En Fan	frm_post.c \
40f737c0d5SRong-En Fan	frm_req_name.c \
41f737c0d5SRong-En Fan	frm_scale.c \
42f737c0d5SRong-En Fan	frm_sub.c \
43f737c0d5SRong-En Fan	frm_user.c \
44f737c0d5SRong-En Fan	frm_win.c \
45f737c0d5SRong-En Fan	fty_alnum.c \
46f737c0d5SRong-En Fan	fty_alpha.c \
47f737c0d5SRong-En Fan	fty_enum.c \
48f737c0d5SRong-En Fan	fty_int.c \
49f737c0d5SRong-En Fan	fty_ipv4.c \
50f737c0d5SRong-En Fan	fty_num.c \
51f737c0d5SRong-En Fan	fty_regex.c
52a3680097SPeter Wemm
53557158deSRong-En FanCLEANFILES=	ncurses_def.h
54557158deSRong-En Fan
55f737c0d5SRong-En FanCFLAGS+=	-I${SRCDIR}
56f737c0d5SRong-En FanCFLAGS+=	-I${NCURSES_DIR}/menu
57f737c0d5SRong-En Fan
58*235c8f66SJohn BaldwinCWARNFLAGS.fty_enum.c= ${NO_WUNUSED_BUT_SET_VARIABLE}
59*235c8f66SJohn Baldwin
60821aa63aSBaptiste DaroussinLIBADD+=	ncursesw
61a3680097SPeter Wemm
62557158deSRong-En FanINCS=	form.h
63a3680097SPeter Wemm
64f737c0d5SRong-En Fan.PATH: ${NCURSES_DIR}/man
65557158deSRong-En FanMAN=	\
66557158deSRong-En Fan	form.3 \
67557158deSRong-En Fan	form_cursor.3 \
68557158deSRong-En Fan	form_data.3 \
69557158deSRong-En Fan	form_driver.3 \
70557158deSRong-En Fan	form_field.3 \
71557158deSRong-En Fan	form_field_attributes.3 \
72557158deSRong-En Fan	form_field_buffer.3 \
73557158deSRong-En Fan	form_field_info.3 \
74557158deSRong-En Fan	form_field_just.3 \
75557158deSRong-En Fan	form_field_new.3 \
76557158deSRong-En Fan	form_field_opts.3 \
77557158deSRong-En Fan	form_field_userptr.3 \
78557158deSRong-En Fan	form_field_validation.3 \
79557158deSRong-En Fan	form_fieldtype.3 \
80557158deSRong-En Fan	form_hook.3 \
81557158deSRong-En Fan	form_new.3 \
82557158deSRong-En Fan	form_new_page.3 \
83557158deSRong-En Fan	form_opts.3 \
84557158deSRong-En Fan	form_page.3 \
85557158deSRong-En Fan	form_post.3 \
86557158deSRong-En Fan	form_requestname.3 \
87557158deSRong-En Fan	form_userptr.3 \
8806bfebdeSXin LI	form_variables.3 \
89557158deSRong-En Fan	form_win.3
9014eadf47SThomas Gellekum
91557158deSRong-En FanCLEANFILES+=	${MAN:M*.3}
9214eadf47SThomas Gellekum
93f737c0d5SRong-En FanMLINKS=	form_cursor.3 pos_form_cursor.3 \
94f737c0d5SRong-En Fan	form_data.3 data_ahead.3 \
95f737c0d5SRong-En Fan	form_data.3 data_behind.3 \
96f737c0d5SRong-En Fan	form_field.3 field_count.3 \
97f737c0d5SRong-En Fan	form_field.3 form_fields.3 \
98f737c0d5SRong-En Fan	form_field.3 move_field.3 \
99f737c0d5SRong-En Fan	form_field.3 set_form_fields.3 \
100f737c0d5SRong-En Fan	form_field_attributes.3 field_back.3 \
10114eadf47SThomas Gellekum	form_field_attributes.3 field_fore.3 \
10214eadf47SThomas Gellekum	form_field_attributes.3 field_pad.3 \
10314eadf47SThomas Gellekum	form_field_attributes.3 set_field_back.3 \
10414eadf47SThomas Gellekum	form_field_attributes.3 set_field_fore.3 \
105f737c0d5SRong-En Fan	form_field_attributes.3 set_field_pad.3 \
106f737c0d5SRong-En Fan	form_field_buffer.3 field_buffer.3 \
10714eadf47SThomas Gellekum	form_field_buffer.3 field_status.3 \
10814eadf47SThomas Gellekum	form_field_buffer.3 set_field_buffer.3 \
10914eadf47SThomas Gellekum	form_field_buffer.3 set_field_status.3 \
110f737c0d5SRong-En Fan	form_field_buffer.3 set_max_field.3 \
111f737c0d5SRong-En Fan	form_field_info.3 dynamic_fieldinfo.3 \
112f737c0d5SRong-En Fan	form_field_info.3 field_info.3 \
113f737c0d5SRong-En Fan	form_field_just.3 field_just.3 \
114f737c0d5SRong-En Fan	form_field_just.3 set_field_just.3 \
115f737c0d5SRong-En Fan	form_field_new.3 dup_field.3 \
116f737c0d5SRong-En Fan	form_field_new.3 free_field.3 \
117f737c0d5SRong-En Fan	form_field_new.3 link_field.3 \
118f737c0d5SRong-En Fan	form_field_new.3 new_field.3 \
119f737c0d5SRong-En Fan	form_field_opts.3 field_opts.3 \
120f737c0d5SRong-En Fan	form_field_opts.3 field_opts_off.3 \
121f737c0d5SRong-En Fan	form_field_opts.3 field_opts_on.3 \
122f737c0d5SRong-En Fan	form_field_opts.3 set_field_opts.3 \
123f737c0d5SRong-En Fan	form_field_userptr.3 field_userptr.3 \
124f737c0d5SRong-En Fan	form_field_userptr.3 set_field_userptr.3 \
125f737c0d5SRong-En Fan	form_field_validation.3 field_arg.3 \
12614eadf47SThomas Gellekum	form_field_validation.3 field_type.3 \
127f737c0d5SRong-En Fan	form_field_validation.3 set_field_type.3 \
128f737c0d5SRong-En Fan	form_fieldtype.3 free_fieldtype.3 \
129f737c0d5SRong-En Fan	form_fieldtype.3 link_fieldtype.3 \
130f737c0d5SRong-En Fan	form_fieldtype.3 new_fieldtype.3 \
13114eadf47SThomas Gellekum	form_fieldtype.3 set_fieldtype_arg.3 \
132f737c0d5SRong-En Fan	form_fieldtype.3 set_fieldtype_choice.3 \
133f737c0d5SRong-En Fan	form_hook.3 field_init.3 \
134f737c0d5SRong-En Fan	form_hook.3 field_term.3 \
135f737c0d5SRong-En Fan	form_hook.3 form_init.3 \
136f737c0d5SRong-En Fan	form_hook.3 form_term.3 \
137f737c0d5SRong-En Fan	form_hook.3 set_field_init.3 \
138f737c0d5SRong-En Fan	form_hook.3 set_field_term.3 \
139f737c0d5SRong-En Fan	form_hook.3 set_form_init.3 \
140f737c0d5SRong-En Fan	form_hook.3 set_form_term.3 \
141f737c0d5SRong-En Fan	form_new.3 free_form.3 \
142f737c0d5SRong-En Fan	form_new.3 new_form.3 \
143f737c0d5SRong-En Fan	form_new_page.3 new_page.3 \
144f737c0d5SRong-En Fan	form_new_page.3 set_new_page.3 \
145f737c0d5SRong-En Fan	form_opts.3 form_opts_off.3 \
146f737c0d5SRong-En Fan	form_opts.3 form_opts_on.3 \
147f737c0d5SRong-En Fan	form_opts.3 set_form_opts.3 \
148f737c0d5SRong-En Fan	form_page.3 current_field.3 \
149f737c0d5SRong-En Fan	form_page.3 field_index.3 \
150f737c0d5SRong-En Fan	form_page.3 set_current_field.3 \
151f737c0d5SRong-En Fan	form_page.3 set_form_page.3 \
152f737c0d5SRong-En Fan	form_post.3 post_form.3 \
153f737c0d5SRong-En Fan	form_post.3 unpost_form.3 \
154f737c0d5SRong-En Fan	form_requestname.3 form_request_by_name.3 \
155f737c0d5SRong-En Fan	form_requestname.3 form_request_name.3 \
156f737c0d5SRong-En Fan	form_userptr.3 set_form_userptr.3 \
157f737c0d5SRong-En Fan	form_win.3 form_sub.3 \
158f737c0d5SRong-En Fan	form_win.3 scale_form.3 \
159f737c0d5SRong-En Fan	form_win.3 set_form_sub.3 \
160f737c0d5SRong-En Fan	form_win.3 set_form_win.3
161821aa63aSBaptiste Daroussin
162821aa63aSBaptiste Daroussin# backward compat
163821aa63aSBaptiste Daroussin.if ${MK_INSTALLLIB} != "no"
164821aa63aSBaptiste DaroussinSYMLINKS+=	libformw.a ${LIBDIR}/libform.a
165821aa63aSBaptiste Daroussin.endif
166821aa63aSBaptiste Daroussin.if !defined(NO_PIC)
167821aa63aSBaptiste DaroussinSYMLINKS+=	libformw.so ${LIBDIR}/libform.so
168821aa63aSBaptiste Daroussin.endif
16914eadf47SThomas Gellekum
170a3680097SPeter Wemm.include <bsd.lib.mk>
171557158deSRong-En Fan
172557158deSRong-En Fan# Keep the .SUFFIXES line after the include of bsd.lib.mk
173557158deSRong-En Fan.SUFFIXES: .3 .3x
174557158deSRong-En Fan.3x.3:
175557158deSRong-En Fan	cat ${.IMPSRC} > ${.TARGET}
176