sync
[bitrig.git] / lib / libform / Makefile
blob86fa8866f29856fd229d809e3fb5a41aa7268165
1 LIB= form
2 SRCS= fld_arg.c fld_attr.c fld_current.c fld_def.c fld_dup.c fld_ftchoice.c \
3 fld_ftlink.c fld_info.c fld_just.c fld_link.c fld_max.c fld_move.c \
4 fld_newftyp.c fld_opts.c fld_pad.c fld_page.c fld_stat.c fld_type.c \
5 fld_user.c frm_cursor.c frm_data.c frm_def.c \
6 frm_driver.c frm_hook.c frm_opts.c frm_page.c frm_post.c \
7 frm_req_name.c frm_scale.c frm_sub.c frm_user.c frm_win.c fty_alnum.c \
8 fty_alpha.c fty_enum.c fty_int.c fty_ipv4.c fty_num.c fty_regex.c \
9 f_trace.c
10 HDRS= form.h
11 CFLAGS+=-I${.CURDIR}/../libmenu -I${.CURDIR}/../libcurses
12 MAN= form.3 form_cursor.3 form_data.3 form_driver.3 form_field.3 \
13 form_field_attributes.3 form_field_buffer.3 form_field_info.3 \
14 form_field_just.3 form_field_new.3 form_field_opts.3 \
15 form_field_userptr.3 form_field_validation.3 form_fieldtype.3 \
16 form_hook.3 form_new.3 form_new_page.3 form_opts.3 form_page.3 \
17 form_post.3 form_requestname.3 form_userptr.3 form_win.3
18 MLINKS+=form_cursor.3 pos_form_cursor.3 form_data.3 data_ahead.3 \
19 form_data.3 data_behind.3 form_field.3 set_form_fields.3 \
20 form_field.3 form_fields.3 form_field.3 field_count.3 \
21 form_field.3 move_field.3 form_field_attributes.3 set_field_fore.3 \
22 form_field_attributes.3 field_fore.3 form_field_attributes.3 \
23 set_field_back.3 form_field_attributes.3 field_back.3 \
24 form_field_attributes.3 set_field_pad.3 form_field_attributes.3 \
25 field_pad.3 form_field_buffer.3 set_field_buffer.3 \
26 form_field_buffer.3 field_buffer.3 form_field_buffer.3 field_status.3 \
27 form_field_buffer.3 set_field_status.3 \
28 form_field_buffer.3 set_max_field.3 form_field_info.3 field_info.3 \
29 form_field_info.3 dynamic_field_info.3 form_field_just.3 \
30 set_field_just.3 form_field_just.3 field_just.3 form_field_new.3 \
31 new_field.3 form_field_new.3 dup_field.3 form_field_new.3 link_field.3 \
32 form_field_new.3 free_field.3 form_field_opts.3 set_field_opts.3 \
33 form_field_opts.3 field_opts_on.3 form_field_opts.3 field_opts_off.3 \
34 form_field_opts.3 field_opts.3 form_field_userptr.3 set_field_userptr.3\
35 form_field_userptr.3 field_userptr.3 form_field_validation.3 \
36 set_field_type.3 form_field_validation.3 field_type.3 \
37 form_field_validation.3 field_arg.3 form_fieldtype.3 new_fieldtype.3 \
38 form_fieldtype.3 free_fieldtype.3 form_fieldtype.3 set_fieldtype_arg.3 \
39 form_fieldtype.3 set_fieldtype_choice.3 form_fieldtype.3 \
40 link_fieldtype.3 form_hook.3 set_field_init.3 form_hook.3 field_init.3 \
41 form_hook.3 set_field_term.3 form_hook.3 field_term.3 form_hook.3 \
42 set_form_init.3 form_hook.3 form_init.3 form_hook.3 set_form_term.3 \
43 form_hook.3 form_term.3 form_new.3 new_form.3 form_new.3 free_form.3 \
44 form_new_page.3 set_new_page.3 form_new_page.3 new_page.3 \
45 form_opts.3 set_form_opts.3 form_opts.3 form_opts_on.3 form_opts.3 \
46 form_opts_off.3 form_page.3 set_current_field.3 form_page.3 \
47 current_field.3 form_page.3 set_form_page.3 form_page.3 field_index.3 \
48 form_post.3 post_form.3 form_post.3 unpost_form.3 form_requestname.3 \
49 form_request_name.3 form_requestname.3 form_request_by_name.3 \
50 form_userptr.3 set_form_userptr.3 form_win.3 set_form_win.3 form_win.3 \
51 set_form_sub.3 form_win.3 form_sub.3 form_win.3 scale_form.3
52 CLEANFILES+= form.3
54 includes:
55 @cd ${.CURDIR}; for i in ${HDRS}; do \
56 cmp -s $$i ${DESTDIR}/usr/include/$$i || \
57 ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) $$i \
58 ${DESTDIR}/usr/include; done
60 form.3: form.3tbl
61 cp ${.ALLSRC} ${.TARGET}
63 .include <bsd.own.mk>
65 afterinstall:
66 -cd ${DESTDIR}${LIBDIR}; \
67 for i in ${_LIBS}; do \
68 ln -f $$i `echo $$i | sed 's/form/formw/'`; \
69 done
70 .if (${DEBUGLIBS:L} == "yes")
71 -cd ${DESTDIR}${LIBDIR}/debug; \
72 ln -f lib${LIB}.a lib`echo ${LIB} | sed 's/form/formw/'`.a
73 .endif
75 .include <bsd.lib.mk>