Makefile (f737c0d553ada44280371dfb7e052ae49215570e) | Makefile (557158de6428fe513e55abf0f577e8e5861086c6) |
---|---|
1# Makefile for libmenu | |
2# $FreeBSD$ 3 | 1# $FreeBSD$ 2 |
4.include "${.CURDIR}/../config.mk" | 3.include "${.CURDIR}/../config.mk" |
5 | 4 |
6SRCDIR= ${NCURSES_DIR}/menu | 5SRCDIR= ${NCURSES_DIR}/menu |
7 | 6 |
8LIB= menu 9DPADD= ${LIBNCURSES} 10LDADD= -lncurses | 7LIB= menu |
11 | 8 |
12.PATH: ${SRCDIR} 13SRCS= \ 14 ncurses_def.h \ 15 m_attribs.c \ 16 m_cursor.c \ 17 m_driver.c \ 18 m_format.c \ 19 m_global.c \ 20 m_hook.c \ 21 m_item_cur.c \ 22 m_item_nam.c \ 23 m_item_new.c \ 24 m_item_opt.c \ 25 m_item_top.c \ 26 m_item_use.c \ 27 m_item_val.c \ 28 m_item_vis.c \ 29 m_items.c \ 30 m_new.c \ 31 m_opts.c \ 32 m_pad.c \ 33 m_pattern.c \ 34 m_post.c \ 35 m_req_name.c \ 36 m_scale.c \ 37 m_spacing.c \ 38 m_sub.c \ 39 m_userptr.c \ 40 m_win.c | 9.PATH: ${SRCDIR} 10SRCS= \ 11 ncurses_def.h \ 12 m_attribs.c \ 13 m_cursor.c \ 14 m_driver.c \ 15 m_format.c \ 16 m_global.c \ 17 m_hook.c \ 18 m_item_cur.c \ 19 m_item_nam.c \ 20 m_item_new.c \ 21 m_item_opt.c \ 22 m_item_top.c \ 23 m_item_use.c \ 24 m_item_val.c \ 25 m_item_vis.c \ 26 m_items.c \ 27 m_new.c \ 28 m_opts.c \ 29 m_pad.c \ 30 m_pattern.c \ 31 m_post.c \ 32 m_req_name.c \ 33 m_scale.c \ 34 m_spacing.c \ 35 m_sub.c \ 36 m_userptr.c \ 37 m_win.c |
41 | 38 |
39CLEANFILES= ncurses_def.h 40 |
|
42CFLAGS+= -I${SRCDIR} 43 | 41CFLAGS+= -I${SRCDIR} 42 |
44INCS= ${SRCDIR}/menu.h ${SRCDIR}/eti.h | 43DPADD= ${LIBNCURSES} 44LDADD= -lncurses |
45 | 45 |
46CLEANFILES+= ncurses_def.h | 46INCS= menu.h eti.h |
47 | 47 |
48.PATH: ${NCURSES_DIR}/man 49MANx= \ 50 menu.3x \ 51 menu_attributes.3x \ 52 menu_cursor.3x \ 53 menu_driver.3x \ 54 menu_format.3x \ 55 menu_hook.3x \ 56 menu_items.3x \ 57 menu_mark.3x \ 58 menu_new.3x \ 59 menu_opts.3x \ 60 menu_pattern.3x \ 61 menu_post.3x \ 62 menu_requestname.3x \ 63 menu_spacing.3x \ 64 menu_userptr.3x \ 65 menu_win.3x \ 66 mitem_current.3x \ 67 mitem_name.3x \ 68 mitem_new.3x \ 69 mitem_opts.3x \ 70 mitem_userptr.3x \ 71 mitem_value.3x \ 72 mitem_visible.3x | 48.PATH: ${NCURSES_DIR}/man 49MAN= \ 50 menu.3 \ 51 menu_attributes.3 \ 52 menu_cursor.3 \ 53 menu_driver.3 \ 54 menu_format.3 \ 55 menu_hook.3 \ 56 menu_items.3 \ 57 menu_mark.3 \ 58 menu_new.3 \ 59 menu_opts.3 \ 60 menu_pattern.3 \ 61 menu_post.3 \ 62 menu_requestname.3 \ 63 menu_spacing.3 \ 64 menu_userptr.3 \ 65 menu_win.3 \ 66 mitem_current.3 \ 67 mitem_name.3 \ 68 mitem_new.3 \ 69 mitem_opts.3 \ 70 mitem_userptr.3 \ 71 mitem_value.3 \ 72 mitem_visible.3 |
73 | 73 |
74# Generate the MAN list from MANx 75.for page in ${MANx} 76CLEANFILES+= ${page:T:S/x$//g} 77MAN+= ${page:T:S/x$//g} 78${page:T:S/x$//g}: ${page} 79 cat ${.ALLSRC} > ${.TARGET} 80.endfor | 74CLEANFILES+= ${MAN:M*.3} |
81 | 75 |
82MLINKS= menu_attributes.3 menu_back.3 \ 83 menu_attributes.3 menu_fore.3 \ 84 menu_attributes.3 menu_grey.3 \ 85 menu_attributes.3 menu_pad.3 \ 86 menu_attributes.3 set_menu_back.3 \ 87 menu_attributes.3 set_menu_fore.3 \ 88 menu_attributes.3 set_menu_grey.3 \ 89 menu_attributes.3 set_menu_pad.3 \ 90 menu_cursor.3 pos_menu_cursor.3 \ 91 menu_format.3 set_menu_format.3 \ 92 menu_hook.3 item_init.3 \ 93 menu_hook.3 item_term.3 \ 94 menu_hook.3 menu_init.3 \ 95 menu_hook.3 menu_term.3 \ 96 menu_hook.3 set_item_init.3 \ 97 menu_hook.3 set_item_term.3 \ 98 menu_hook.3 set_menu_init.3 \ 99 menu_hook.3 set_menu_term.3 \ 100 menu_items.3 item_count.3 \ 101 menu_items.3 set_menu_items.3 \ 102 menu_mark.3 set_menu_mark.3 \ 103 menu_new.3 free_menu.3 \ 104 menu_new.3 new_menu.3 \ 105 menu_opts.3 menu_opts_off.3 \ 106 menu_opts.3 menu_opts_on.3 \ 107 menu_opts.3 set_menu_opts.3 \ 108 menu_pattern.3 set_menu_pattern.3 \ 109 menu_post.3 post_menu.3 \ 110 menu_post.3 unpost_menu.3 \ 111 menu_requestname.3 menu_request_by_name.3 \ 112 menu_requestname.3 menu_request_name.3 \ 113 menu_spacing.3 set_menu_spacing.3 \ 114 menu_userptr.3 set_menu_userptr.3 \ 115 menu_win.3 menu_sub.3 \ 116 menu_win.3 scale_menu.3 \ 117 menu_win.3 set_menu_sub.3 \ 118 menu_win.3 set_menu_win.3 \ 119 mitem_current.3 current_item.3 \ 120 mitem_current.3 item_index.3 \ 121 mitem_current.3 set_current_item.3 \ 122 mitem_current.3 set_top_row.3 \ 123 mitem_current.3 top_row.3 \ 124 mitem_name.3 item_description.3 \ 125 mitem_name.3 item_name.3 \ 126 mitem_new.3 free_item.3 \ 127 mitem_new.3 new_item.3 \ 128 mitem_opts.3 item_opts.3 \ 129 mitem_opts.3 item_opts_off.3 \ 130 mitem_opts.3 item_opts_on.3 \ 131 mitem_opts.3 set_item_opts.3 \ 132 mitem_userptr.3 item_userptr.3 \ 133 mitem_userptr.3 set_item_userptr.3 \ 134 mitem_value.3 item_value.3 \ 135 mitem_value.3 set_item_value.3 \ 136 mitem_visible.3 item_visible.3 | 76MLINKS= menu_attributes.3 menu_back.3 \ 77 menu_attributes.3 menu_fore.3 \ 78 menu_attributes.3 menu_grey.3 \ 79 menu_attributes.3 menu_pad.3 \ 80 menu_attributes.3 set_menu_back.3 \ 81 menu_attributes.3 set_menu_fore.3 \ 82 menu_attributes.3 set_menu_grey.3 \ 83 menu_attributes.3 set_menu_pad.3 \ 84 menu_cursor.3 pos_menu_cursor.3 \ 85 menu_format.3 set_menu_format.3 \ 86 menu_hook.3 item_init.3 \ 87 menu_hook.3 item_term.3 \ 88 menu_hook.3 menu_init.3 \ 89 menu_hook.3 menu_term.3 \ 90 menu_hook.3 set_item_init.3 \ 91 menu_hook.3 set_item_term.3 \ 92 menu_hook.3 set_menu_init.3 \ 93 menu_hook.3 set_menu_term.3 \ 94 menu_items.3 item_count.3 \ 95 menu_items.3 set_menu_items.3 \ 96 menu_mark.3 set_menu_mark.3 \ 97 menu_new.3 free_menu.3 \ 98 menu_new.3 new_menu.3 \ 99 menu_opts.3 menu_opts_off.3 \ 100 menu_opts.3 menu_opts_on.3 \ 101 menu_opts.3 set_menu_opts.3 \ 102 menu_pattern.3 set_menu_pattern.3 \ 103 menu_post.3 post_menu.3 \ 104 menu_post.3 unpost_menu.3 \ 105 menu_requestname.3 menu_request_by_name.3 \ 106 menu_requestname.3 menu_request_name.3 \ 107 menu_spacing.3 set_menu_spacing.3 \ 108 menu_userptr.3 set_menu_userptr.3 \ 109 menu_win.3 menu_sub.3 \ 110 menu_win.3 scale_menu.3 \ 111 menu_win.3 set_menu_sub.3 \ 112 menu_win.3 set_menu_win.3 \ 113 mitem_current.3 current_item.3 \ 114 mitem_current.3 item_index.3 \ 115 mitem_current.3 set_current_item.3 \ 116 mitem_current.3 set_top_row.3 \ 117 mitem_current.3 top_row.3 \ 118 mitem_name.3 item_description.3 \ 119 mitem_name.3 item_name.3 \ 120 mitem_new.3 free_item.3 \ 121 mitem_new.3 new_item.3 \ 122 mitem_opts.3 item_opts.3 \ 123 mitem_opts.3 item_opts_off.3 \ 124 mitem_opts.3 item_opts_on.3 \ 125 mitem_opts.3 set_item_opts.3 \ 126 mitem_userptr.3 item_userptr.3 \ 127 mitem_userptr.3 set_item_userptr.3 \ 128 mitem_value.3 item_value.3 \ 129 mitem_value.3 set_item_value.3 \ 130 mitem_visible.3 item_visible.3 |
137 138.include <bsd.lib.mk> | 131 132.include <bsd.lib.mk> |
133 134# Keep the .SUFFIXES line after the include of bsd.lib.mk 135.SUFFIXES: .3 .3x 136.3x.3: 137 cat ${.IMPSRC} > ${.TARGET} |
|