Makefile revision 115898
1# Makefile for libform
2# $FreeBSD: head/lib/ncurses/form/Makefile 115898 2003-06-06 13:46:55Z kuriyama $
3
4NCURSES=${.CURDIR}/../../contrib/ncurses
5
6.PATH:	${NCURSES}/form
7.PATH:	${NCURSES}/include
8.PATH:  ${NCURSES}/man
9
10LIB=    form
11AWK?=	awk
12
13SRCS=	ncurses_def.h \
14	fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \
15	fld_ftlink.c fld_info.c fld_just.c fld_link.c fld_max.c fld_move.c \
16	fld_newftyp.c fld_opts.c fld_pad.c fld_page.c fld_stat.c fld_type.c \
17	fld_user.c frm_cursor.c frm_data.c frm_def.c frm_driver.c frm_hook.c \
18	frm_opts.c frm_page.c frm_post.c frm_req_name.c frm_scale.c frm_sub.c \
19	frm_user.c frm_win.c fty_alnum.c fty_alpha.c fty_enum.c fty_int.c \
20	fty_ipv4.c fty_num.c fty_regex.c
21INCS=	${NCURSES}/form/form.h
22
23CLEANFILES+=	ncurses_def.h
24CFLAGS+= -I.
25.if exists(${.OBJDIR}/../libncurses)
26CFLAGS+= -I${.OBJDIR}/../libncurses
27.endif
28CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \
29	-I${NCURSES}/include -Wall -DNDEBUG -DHAVE_CONFIG_H
30
31ncurses_def.h:	MKncurses_def.sh ncurses_defs
32	AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
33	    ${NCURSES}/include/ncurses_defs > ncurses_def.h
34
35MANx=	form.3x form_cursor.3x form_data.3x form_driver.3x \
36	form_field.3x form_field_attributes.3x form_field_buffer.3x \
37	form_field_info.3x form_field_just.3x form_field_new.3x \
38	form_field_opts.3x form_field_userptr.3x \
39	form_field_validation.3x form_fieldtype.3x form_hook.3x \
40	form_new.3x form_new_page.3x form_opts.3x form_page.3x \
41	form_post.3x form_requestname.3x form_userptr.3x form_win.3x
42
43# Generate the MAN list from MANx
44.for page in ${MANx}
45CLEANFILES+=${page:T:S/x$//g}
46MAN+=${page:T:S/x$//g}
47${page:T:S/x$//g}: ${page}
48	cat ${.ALLSRC} > ${.TARGET}
49.endfor
50
51MLINKS+=form_cursor.3 pos_form_cursor.3
52MLINKS+=form_data.3 data_ahead.3 form_data.3 data_behind.3
53MLINKS+=form_field.3 field_count.3 form_field.3 form_fields.3 \
54	form_field.3 move_field.3 form_field.3 set_form_fields.3
55MLINKS+=form_field_attributes.3 field_back.3 \
56	form_field_attributes.3 field_fore.3 \
57	form_field_attributes.3 field_pad.3 \
58	form_field_attributes.3 set_field_back.3 \
59	form_field_attributes.3 set_field_fore.3 \
60	form_field_attributes.3 set_field_pad.3
61MLINKS+=form_field_buffer.3 field_buffer.3 \
62	form_field_buffer.3 field_status.3 \
63	form_field_buffer.3 set_field_buffer.3 \
64	form_field_buffer.3 set_field_status.3 \
65	form_field_buffer.3 set_max_field.3
66MLINKS+=form_field_info.3 dynamic_fieldinfo.3 form_field_info.3 field_info.3
67MLINKS+=form_field_just.3 field_just.3 form_field_just.3 set_field_just.3
68MLINKS+=form_field_new.3 dup_field.3 form_field_new.3 free_field.3 \
69	form_field_new.3 link_field.3 form_field_new.3 new_field.3
70MLINKS+=form_field_opts.3 field_opts.3 form_field_opts.3 field_opts_off.3 \
71	form_field_opts.3 field_opts_on.3 form_field_opts.3 set_field_opts.3 \
72	form_field_opts.3 set_form_opts.3
73MLINKS+=form_field_userptr.3 field_userptr.3 \
74	form_field_userptr.3 set_field_userptr.3
75MLINKS+=form_field_validation.3 field_arg.3 \
76	form_field_validation.3 field_type.3 \
77	form_field_validation.3 set_field_type.3
78MLINKS+=form_fieldtype.3 link_fieldtype.3 \
79	form_fieldtype.3 set_fieldtype_arg.3 \
80	form_fieldtype.3 set_fieldtype_choice.3
81MLINKS+=form_hook.3 field_init.3 form_hook.3 field_term.3 \
82	form_hook.3 form_init.3 form_hook.3 form_term.3 \
83	form_hook.3 set_field_init.3 form_hook.3 set_field_term.3 \
84	form_hook.3 set_form_init.3 form_hook.3 set_form_term.3
85MLINKS+=form_new.3 free_form.3 form_new.3 new_form.3
86MLINKS+=form_new_page.3 new_page.3 form_new_page.3 set_new_page.3
87MLINKS+=form_opts.3 form_opts_off.3 form_opts.3 form_opts_on.3
88MLINKS+=form_page.3 current_field.3 form_page.3 field_index.3 \
89	form_page.3 set_current_field.3 form_page.3 set_form_page.3
90MLINKS+=form_post.3 post_form.3 form_post.3 unpost_form.3
91MLINKS+=form_requestname.3 form_request_by_name.3 \
92	form_requestname.3 form_request_name.3
93MLINKS+=form_userptr.3 set_form_userptr.3
94MLINKS+=form_win.3 form_sub.3 form_win.3 scale_form.3 \
95	form_win.3 set_form_sub.3 form_win.3 set_form_win.3
96
97.include <bsd.lib.mk>
98