1a3680097SPeter Wemm# Makefile for libform 2a3680097SPeter Wemm# $FreeBSD$ 3a3680097SPeter Wemm 4a3680097SPeter WemmNCURSES=${.CURDIR}/../../contrib/ncurses 5a3680097SPeter Wemm 6a3680097SPeter Wemm.PATH: ${NCURSES}/form 7fa741a91SPeter Wemm.PATH: ${NCURSES}/include 814eadf47SThomas Gellekum.PATH: ${NCURSES}/man 9a3680097SPeter Wemm 10a3680097SPeter WemmLIB= form 11fa741a91SPeter WemmAWK?= awk 12a3680097SPeter Wemm 13fa741a91SPeter WemmSRCS= ncurses_def.h \ 14fa741a91SPeter Wemm fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \ 1580026b8aSThomas Gellekum fld_ftlink.c fld_info.c fld_just.c fld_link.c fld_max.c fld_move.c \ 1680026b8aSThomas Gellekum fld_newftyp.c fld_opts.c fld_pad.c fld_page.c fld_stat.c fld_type.c \ 1780026b8aSThomas Gellekum fld_user.c frm_cursor.c frm_data.c frm_def.c frm_driver.c frm_hook.c \ 1880026b8aSThomas Gellekum frm_opts.c frm_page.c frm_post.c frm_req_name.c frm_scale.c frm_sub.c \ 1980026b8aSThomas Gellekum frm_user.c frm_win.c fty_alnum.c fty_alpha.c fty_enum.c fty_int.c \ 2080026b8aSThomas Gellekum fty_ipv4.c fty_num.c fty_regex.c 21d05257b0SRodney W. GrimesINCS= ${NCURSES}/form/form.h 22a3680097SPeter Wemm 23fa741a91SPeter WemmCLEANFILES+= ncurses_def.h 2442d4025cSPeter WemmCFLAGS+= -I. 2542d4025cSPeter Wemm.if exists(${.OBJDIR}/../libncurses) 2642d4025cSPeter WemmCFLAGS+= -I${.OBJDIR}/../libncurses 2742d4025cSPeter Wemm.endif 2842d4025cSPeter WemmCFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \ 29a3680097SPeter Wemm -I${NCURSES}/include -Wall -DNDEBUG -DHAVE_CONFIG_H 30a3680097SPeter Wemm 31fa741a91SPeter Wemmncurses_def.h: MKncurses_def.sh ncurses_defs 32fa741a91SPeter Wemm AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \ 33fa741a91SPeter Wemm ${NCURSES}/include/ncurses_defs > ncurses_def.h 34fa741a91SPeter Wemm 354a558355SRuslan ErmilovMANx= form.3x form_cursor.3x form_data.3x form_driver.3x \ 3614eadf47SThomas Gellekum form_field.3x form_field_attributes.3x form_field_buffer.3x \ 3714eadf47SThomas Gellekum form_field_info.3x form_field_just.3x form_field_new.3x \ 3814eadf47SThomas Gellekum form_field_opts.3x form_field_userptr.3x \ 3914eadf47SThomas Gellekum form_field_validation.3x form_fieldtype.3x form_hook.3x \ 4014eadf47SThomas Gellekum form_new.3x form_new_page.3x form_opts.3x form_page.3x \ 4114eadf47SThomas Gellekum form_post.3x form_requestname.3x form_userptr.3x form_win.3x 4214eadf47SThomas Gellekum 434a558355SRuslan Ermilov# Generate the MAN list from MANx 444a558355SRuslan Ermilov.for page in ${MANx} 454a558355SRuslan ErmilovCLEANFILES+=${page:T:S/x$//g} 464a558355SRuslan ErmilovMAN+=${page:T:S/x$//g} 474a558355SRuslan Ermilov${page:T:S/x$//g}: ${page} 4814eadf47SThomas Gellekum ln -s ${.ALLSRC} ${.TARGET} 4914eadf47SThomas Gellekum.endfor 5014eadf47SThomas Gellekum 5114eadf47SThomas GellekumMLINKS+=form_cursor.3 pos_form_cursor.3 5214eadf47SThomas GellekumMLINKS+=form_data.3 data_ahead.3 form_data.3 data_behind.3 5314eadf47SThomas GellekumMLINKS+=form_field.3 field_count.3 form_field.3 form_fields.3 \ 5414eadf47SThomas Gellekum form_field.3 move_field.3 form_field.3 set_form_fields.3 5514eadf47SThomas GellekumMLINKS+=form_field_attributes.3 field_back.3 \ 5614eadf47SThomas Gellekum form_field_attributes.3 field_fore.3 \ 5714eadf47SThomas Gellekum form_field_attributes.3 field_pad.3 \ 5814eadf47SThomas Gellekum form_field_attributes.3 set_field_back.3 \ 5914eadf47SThomas Gellekum form_field_attributes.3 set_field_fore.3 \ 6014eadf47SThomas Gellekum form_field_attributes.3 set_field_pad.3 6114eadf47SThomas GellekumMLINKS+=form_field_buffer.3 field_buffer.3 \ 6214eadf47SThomas Gellekum form_field_buffer.3 field_status.3 \ 6314eadf47SThomas Gellekum form_field_buffer.3 set_field_buffer.3 \ 6414eadf47SThomas Gellekum form_field_buffer.3 set_field_status.3 \ 6514eadf47SThomas Gellekum form_field_buffer.3 set_max_field.3 6614eadf47SThomas GellekumMLINKS+=form_field_info.3 dynamic_fieldinfo.3 form_field_info.3 field_info.3 6714eadf47SThomas GellekumMLINKS+=form_field_just.3 field_just.3 form_field_just.3 set_field_just.3 6814eadf47SThomas GellekumMLINKS+=form_field_new.3 dup_field.3 form_field_new.3 free_field.3 \ 6914eadf47SThomas Gellekum form_field_new.3 link_field.3 form_field_new.3 new_field.3 7014eadf47SThomas GellekumMLINKS+=form_field_opts.3 field_opts.3 form_field_opts.3 field_opts_off.3 \ 7114eadf47SThomas Gellekum form_field_opts.3 field_opts_on.3 form_field_opts.3 set_field_opts.3 \ 7214eadf47SThomas Gellekum form_field_opts.3 set_form_opts.3 7314eadf47SThomas GellekumMLINKS+=form_field_userptr.3 field_userptr.3 \ 7414eadf47SThomas Gellekum form_field_userptr.3 set_field_userptr.3 7514eadf47SThomas GellekumMLINKS+=form_field_validation.3 field_arg.3 \ 7614eadf47SThomas Gellekum form_field_validation.3 field_type.3 \ 7714eadf47SThomas Gellekum form_field_validation.3 set_field_type.3 7814eadf47SThomas GellekumMLINKS+=form_fieldtype.3 link_fieldtype.3 \ 7914eadf47SThomas Gellekum form_fieldtype.3 set_fieldtype_arg.3 \ 8014eadf47SThomas Gellekum form_fieldtype.3 set_fieldtype_choice.3 8114eadf47SThomas GellekumMLINKS+=form_hook.3 field_init.3 form_hook.3 field_term.3 \ 8214eadf47SThomas Gellekum form_hook.3 form_init.3 form_hook.3 form_term.3 \ 8314eadf47SThomas Gellekum form_hook.3 set_field_init.3 form_hook.3 set_field_term.3 \ 8414eadf47SThomas Gellekum form_hook.3 set_form_init.3 form_hook.3 set_form_term.3 8514eadf47SThomas GellekumMLINKS+=form_new.3 free_form.3 form_new.3 new_form.3 8614eadf47SThomas GellekumMLINKS+=form_new_page.3 new_page.3 form_new_page.3 set_new_page.3 8714eadf47SThomas GellekumMLINKS+=form_opts.3 form_opts_off.3 form_opts.3 form_opts_on.3 8814eadf47SThomas GellekumMLINKS+=form_page.3 current_field.3 form_page.3 field_index.3 \ 8914eadf47SThomas Gellekum form_page.3 set_current_field.3 form_page.3 set_form_page.3 9014eadf47SThomas GellekumMLINKS+=form_post.3 post_form.3 form_post.3 unpost_form.3 9114eadf47SThomas GellekumMLINKS+=form_requestname.3 form_request_by_name.3 \ 9214eadf47SThomas Gellekum form_requestname.3 form_request_name.3 9314eadf47SThomas GellekumMLINKS+=form_userptr.3 set_form_userptr.3 9414eadf47SThomas GellekumMLINKS+=form_win.3 form_sub.3 form_win.3 scale_form.3 \ 9514eadf47SThomas Gellekum form_win.3 set_form_sub.3 form_win.3 set_form_win.3 9614eadf47SThomas Gellekum 97a3680097SPeter Wemm.include <bsd.lib.mk> 98