xref: /freebsd/lib/ncurses/form/Makefile (revision 9f23cbd6cae82fd77edfad7173432fa8dccd0a95)
1# $FreeBSD$
2
3.include <src.opts.mk>
4.include "${.CURDIR:H}/config.mk"
5
6SRCDIR=	${NCURSES_DIR}/form
7
8PACKAGE=	clibs
9LIB=	formw
10SHLIB_MAJOR=	6
11
12.PATH: ${SRCDIR}
13SRCS=	\
14	ncurses_def.h \
15	fld_arg.c \
16	fld_attr.c \
17	fld_current.c \
18	fld_def.c \
19	fld_dup.c \
20	fld_ftchoice.c \
21	fld_ftlink.c \
22	fld_info.c \
23	fld_just.c \
24	fld_link.c \
25	fld_max.c \
26	fld_move.c \
27	fld_newftyp.c \
28	fld_opts.c \
29	fld_pad.c \
30	fld_page.c \
31	fld_stat.c \
32	fld_type.c \
33	fld_user.c \
34	frm_cursor.c \
35	frm_data.c \
36	frm_def.c \
37	frm_driver.c \
38	frm_hook.c \
39	frm_opts.c \
40	frm_page.c \
41	frm_post.c \
42	frm_req_name.c \
43	frm_scale.c \
44	frm_sub.c \
45	frm_user.c \
46	frm_win.c \
47	fty_alnum.c \
48	fty_alpha.c \
49	fty_enum.c \
50	fty_int.c \
51	fty_ipv4.c \
52	fty_num.c \
53	fty_regex.c
54
55CLEANFILES=	ncurses_def.h
56
57CFLAGS+=	-I${SRCDIR}
58CFLAGS+=	-I${NCURSES_DIR}/menu
59
60CWARNFLAGS.fty_enum.c= ${NO_WUNUSED_BUT_SET_VARIABLE}
61
62LIBADD+=	ncursesw
63
64INCS=	form.h
65
66.PATH: ${NCURSES_DIR}/man
67MAN=	\
68	form.3 \
69	form_cursor.3 \
70	form_data.3 \
71	form_driver.3 \
72	form_field.3 \
73	form_field_attributes.3 \
74	form_field_buffer.3 \
75	form_field_info.3 \
76	form_field_just.3 \
77	form_field_new.3 \
78	form_field_opts.3 \
79	form_field_userptr.3 \
80	form_field_validation.3 \
81	form_fieldtype.3 \
82	form_hook.3 \
83	form_new.3 \
84	form_new_page.3 \
85	form_opts.3 \
86	form_page.3 \
87	form_post.3 \
88	form_requestname.3 \
89	form_userptr.3 \
90	form_variables.3 \
91	form_win.3
92
93CLEANFILES+=	${MAN:M*.3}
94
95MLINKS=	form_cursor.3 pos_form_cursor.3 \
96	form_data.3 data_ahead.3 \
97	form_data.3 data_behind.3 \
98	form_field.3 field_count.3 \
99	form_field.3 form_fields.3 \
100	form_field.3 move_field.3 \
101	form_field.3 set_form_fields.3 \
102	form_field_attributes.3 field_back.3 \
103	form_field_attributes.3 field_fore.3 \
104	form_field_attributes.3 field_pad.3 \
105	form_field_attributes.3 set_field_back.3 \
106	form_field_attributes.3 set_field_fore.3 \
107	form_field_attributes.3 set_field_pad.3 \
108	form_field_buffer.3 field_buffer.3 \
109	form_field_buffer.3 field_status.3 \
110	form_field_buffer.3 set_field_buffer.3 \
111	form_field_buffer.3 set_field_status.3 \
112	form_field_buffer.3 set_max_field.3 \
113	form_field_info.3 dynamic_fieldinfo.3 \
114	form_field_info.3 field_info.3 \
115	form_field_just.3 field_just.3 \
116	form_field_just.3 set_field_just.3 \
117	form_field_new.3 dup_field.3 \
118	form_field_new.3 free_field.3 \
119	form_field_new.3 link_field.3 \
120	form_field_new.3 new_field.3 \
121	form_field_opts.3 field_opts.3 \
122	form_field_opts.3 field_opts_off.3 \
123	form_field_opts.3 field_opts_on.3 \
124	form_field_opts.3 set_field_opts.3 \
125	form_field_userptr.3 field_userptr.3 \
126	form_field_userptr.3 set_field_userptr.3 \
127	form_field_validation.3 field_arg.3 \
128	form_field_validation.3 field_type.3 \
129	form_field_validation.3 set_field_type.3 \
130	form_fieldtype.3 free_fieldtype.3 \
131	form_fieldtype.3 link_fieldtype.3 \
132	form_fieldtype.3 new_fieldtype.3 \
133	form_fieldtype.3 set_fieldtype_arg.3 \
134	form_fieldtype.3 set_fieldtype_choice.3 \
135	form_hook.3 field_init.3 \
136	form_hook.3 field_term.3 \
137	form_hook.3 form_init.3 \
138	form_hook.3 form_term.3 \
139	form_hook.3 set_field_init.3 \
140	form_hook.3 set_field_term.3 \
141	form_hook.3 set_form_init.3 \
142	form_hook.3 set_form_term.3 \
143	form_new.3 free_form.3 \
144	form_new.3 new_form.3 \
145	form_new_page.3 new_page.3 \
146	form_new_page.3 set_new_page.3 \
147	form_opts.3 form_opts_off.3 \
148	form_opts.3 form_opts_on.3 \
149	form_opts.3 set_form_opts.3 \
150	form_page.3 current_field.3 \
151	form_page.3 field_index.3 \
152	form_page.3 set_current_field.3 \
153	form_page.3 set_form_page.3 \
154	form_post.3 post_form.3 \
155	form_post.3 unpost_form.3 \
156	form_requestname.3 form_request_by_name.3 \
157	form_requestname.3 form_request_name.3 \
158	form_userptr.3 set_form_userptr.3 \
159	form_win.3 form_sub.3 \
160	form_win.3 scale_form.3 \
161	form_win.3 set_form_sub.3 \
162	form_win.3 set_form_win.3
163
164# backward compat
165.if ${MK_INSTALLLIB} != "no"
166SYMLINKS+=	libformw.a ${LIBDIR}/libform.a
167.endif
168.if !defined(NO_PIC)
169SYMLINKS+=	libformw.so ${LIBDIR}/libform.so
170.endif
171.if ${MK_PROFILE} != "no"
172SYMLINKS+=	libformw_p.a ${LIBDIR}/libform_p.a
173.endif
174
175.include <bsd.lib.mk>
176
177# Keep the .SUFFIXES line after the include of bsd.lib.mk
178.SUFFIXES: .3 .3x
179.3x.3:
180	cat ${.IMPSRC} > ${.TARGET}
181