1a3680097SPeter Wemm# $FreeBSD$ 2a3680097SPeter Wemm 3*821aa63aSBaptiste Daroussin.include <src.opts.mk> 45bde33dbSEnji Cooper.include "${.CURDIR:H}/config.mk" 5a3680097SPeter Wemm 6f737c0d5SRong-En FanSRCDIR= ${NCURSES_DIR}/form 7a3680097SPeter Wemm 8*821aa63aSBaptiste DaroussinLIB= formw 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*821aa63aSBaptiste DaroussinLIBADD+= ncursesw 59a3680097SPeter Wemm 60557158deSRong-En FanINCS= form.h 61a3680097SPeter Wemm 62f737c0d5SRong-En Fan.PATH: ${NCURSES_DIR}/man 63557158deSRong-En FanMAN= \ 64557158deSRong-En Fan form.3 \ 65557158deSRong-En Fan form_cursor.3 \ 66557158deSRong-En Fan form_data.3 \ 67557158deSRong-En Fan form_driver.3 \ 68557158deSRong-En Fan form_field.3 \ 69557158deSRong-En Fan form_field_attributes.3 \ 70557158deSRong-En Fan form_field_buffer.3 \ 71557158deSRong-En Fan form_field_info.3 \ 72557158deSRong-En Fan form_field_just.3 \ 73557158deSRong-En Fan form_field_new.3 \ 74557158deSRong-En Fan form_field_opts.3 \ 75557158deSRong-En Fan form_field_userptr.3 \ 76557158deSRong-En Fan form_field_validation.3 \ 77557158deSRong-En Fan form_fieldtype.3 \ 78557158deSRong-En Fan form_hook.3 \ 79557158deSRong-En Fan form_new.3 \ 80557158deSRong-En Fan form_new_page.3 \ 81557158deSRong-En Fan form_opts.3 \ 82557158deSRong-En Fan form_page.3 \ 83557158deSRong-En Fan form_post.3 \ 84557158deSRong-En Fan form_requestname.3 \ 85557158deSRong-En Fan form_userptr.3 \ 8606bfebdeSXin LI form_variables.3 \ 87557158deSRong-En Fan form_win.3 8814eadf47SThomas Gellekum 89557158deSRong-En FanCLEANFILES+= ${MAN:M*.3} 9014eadf47SThomas Gellekum 91f737c0d5SRong-En FanMLINKS= form_cursor.3 pos_form_cursor.3 \ 92f737c0d5SRong-En Fan form_data.3 data_ahead.3 \ 93f737c0d5SRong-En Fan form_data.3 data_behind.3 \ 94f737c0d5SRong-En Fan form_field.3 field_count.3 \ 95f737c0d5SRong-En Fan form_field.3 form_fields.3 \ 96f737c0d5SRong-En Fan form_field.3 move_field.3 \ 97f737c0d5SRong-En Fan form_field.3 set_form_fields.3 \ 98f737c0d5SRong-En Fan form_field_attributes.3 field_back.3 \ 9914eadf47SThomas Gellekum form_field_attributes.3 field_fore.3 \ 10014eadf47SThomas Gellekum form_field_attributes.3 field_pad.3 \ 10114eadf47SThomas Gellekum form_field_attributes.3 set_field_back.3 \ 10214eadf47SThomas Gellekum form_field_attributes.3 set_field_fore.3 \ 103f737c0d5SRong-En Fan form_field_attributes.3 set_field_pad.3 \ 104f737c0d5SRong-En Fan form_field_buffer.3 field_buffer.3 \ 10514eadf47SThomas Gellekum form_field_buffer.3 field_status.3 \ 10614eadf47SThomas Gellekum form_field_buffer.3 set_field_buffer.3 \ 10714eadf47SThomas Gellekum form_field_buffer.3 set_field_status.3 \ 108f737c0d5SRong-En Fan form_field_buffer.3 set_max_field.3 \ 109f737c0d5SRong-En Fan form_field_info.3 dynamic_fieldinfo.3 \ 110f737c0d5SRong-En Fan form_field_info.3 field_info.3 \ 111f737c0d5SRong-En Fan form_field_just.3 field_just.3 \ 112f737c0d5SRong-En Fan form_field_just.3 set_field_just.3 \ 113f737c0d5SRong-En Fan form_field_new.3 dup_field.3 \ 114f737c0d5SRong-En Fan form_field_new.3 free_field.3 \ 115f737c0d5SRong-En Fan form_field_new.3 link_field.3 \ 116f737c0d5SRong-En Fan form_field_new.3 new_field.3 \ 117f737c0d5SRong-En Fan form_field_opts.3 field_opts.3 \ 118f737c0d5SRong-En Fan form_field_opts.3 field_opts_off.3 \ 119f737c0d5SRong-En Fan form_field_opts.3 field_opts_on.3 \ 120f737c0d5SRong-En Fan form_field_opts.3 set_field_opts.3 \ 121f737c0d5SRong-En Fan form_field_userptr.3 field_userptr.3 \ 122f737c0d5SRong-En Fan form_field_userptr.3 set_field_userptr.3 \ 123f737c0d5SRong-En Fan form_field_validation.3 field_arg.3 \ 12414eadf47SThomas Gellekum form_field_validation.3 field_type.3 \ 125f737c0d5SRong-En Fan form_field_validation.3 set_field_type.3 \ 126f737c0d5SRong-En Fan form_fieldtype.3 free_fieldtype.3 \ 127f737c0d5SRong-En Fan form_fieldtype.3 link_fieldtype.3 \ 128f737c0d5SRong-En Fan form_fieldtype.3 new_fieldtype.3 \ 12914eadf47SThomas Gellekum form_fieldtype.3 set_fieldtype_arg.3 \ 130f737c0d5SRong-En Fan form_fieldtype.3 set_fieldtype_choice.3 \ 131f737c0d5SRong-En Fan form_hook.3 field_init.3 \ 132f737c0d5SRong-En Fan form_hook.3 field_term.3 \ 133f737c0d5SRong-En Fan form_hook.3 form_init.3 \ 134f737c0d5SRong-En Fan form_hook.3 form_term.3 \ 135f737c0d5SRong-En Fan form_hook.3 set_field_init.3 \ 136f737c0d5SRong-En Fan form_hook.3 set_field_term.3 \ 137f737c0d5SRong-En Fan form_hook.3 set_form_init.3 \ 138f737c0d5SRong-En Fan form_hook.3 set_form_term.3 \ 139f737c0d5SRong-En Fan form_new.3 free_form.3 \ 140f737c0d5SRong-En Fan form_new.3 new_form.3 \ 141f737c0d5SRong-En Fan form_new_page.3 new_page.3 \ 142f737c0d5SRong-En Fan form_new_page.3 set_new_page.3 \ 143f737c0d5SRong-En Fan form_opts.3 form_opts_off.3 \ 144f737c0d5SRong-En Fan form_opts.3 form_opts_on.3 \ 145f737c0d5SRong-En Fan form_opts.3 set_form_opts.3 \ 146f737c0d5SRong-En Fan form_page.3 current_field.3 \ 147f737c0d5SRong-En Fan form_page.3 field_index.3 \ 148f737c0d5SRong-En Fan form_page.3 set_current_field.3 \ 149f737c0d5SRong-En Fan form_page.3 set_form_page.3 \ 150f737c0d5SRong-En Fan form_post.3 post_form.3 \ 151f737c0d5SRong-En Fan form_post.3 unpost_form.3 \ 152f737c0d5SRong-En Fan form_requestname.3 form_request_by_name.3 \ 153f737c0d5SRong-En Fan form_requestname.3 form_request_name.3 \ 154f737c0d5SRong-En Fan form_userptr.3 set_form_userptr.3 \ 155f737c0d5SRong-En Fan form_win.3 form_sub.3 \ 156f737c0d5SRong-En Fan form_win.3 scale_form.3 \ 157f737c0d5SRong-En Fan form_win.3 set_form_sub.3 \ 158f737c0d5SRong-En Fan form_win.3 set_form_win.3 159*821aa63aSBaptiste Daroussin 160*821aa63aSBaptiste Daroussin# backward compat 161*821aa63aSBaptiste Daroussin.if ${MK_INSTALLLIB} != "no" 162*821aa63aSBaptiste DaroussinSYMLINKS+= libformw.a ${LIBDIR}/libform.a 163*821aa63aSBaptiste Daroussin.endif 164*821aa63aSBaptiste Daroussin.if !defined(NO_PIC) 165*821aa63aSBaptiste DaroussinSYMLINKS+= libformw.so ${LIBDIR}/libform.so 166*821aa63aSBaptiste Daroussin.endif 167*821aa63aSBaptiste Daroussin.if ${MK_PROFILE} != "no" 168*821aa63aSBaptiste DaroussinSYMLINKS+= libformw_p.a ${LIBDIR}/libform_p.a 169935f512cSBrooks Davis.endif 17014eadf47SThomas Gellekum 171a3680097SPeter Wemm.include <bsd.lib.mk> 172557158deSRong-En Fan 173557158deSRong-En Fan# Keep the .SUFFIXES line after the include of bsd.lib.mk 174557158deSRong-En Fan.SUFFIXES: .3 .3x 175557158deSRong-En Fan.3x.3: 176557158deSRong-En Fan cat ${.IMPSRC} > ${.TARGET} 177