1# Makefile for libpanel 2# $FreeBSD$ 3 4.include "${.CURDIR}/../config.mk" 5 6SRCDIR= ${NCURSES_DIR}/panel 7 8LIB= panel 9DPADD= ${LIBNCURSES} 10LDADD= -lncurses 11 12.PATH: ${SRCDIR} 13SRCS= \ 14 ncurses_def.h \ 15 p_above.c \ 16 p_below.c \ 17 p_bottom.c \ 18 p_delete.c \ 19 p_hidden.c \ 20 p_hide.c \ 21 p_move.c \ 22 p_new.c \ 23 p_replace.c \ 24 p_show.c \ 25 p_top.c \ 26 p_update.c \ 27 p_user.c \ 28 p_win.c \ 29 panel.c 30 31CFLAGS+= -I${SRCDIR} 32 33INCS= ${SRCDIR}/panel.h 34 35CLEANFILES+= ncurses_def.h 36 37# generate MAN 38.PATH: ${NCURSES_DIR}/man 39MANx= \ 40 panel.3x 41 42# Generate the MAN list from MANx 43.for page in ${MANx} 44CLEANFILES+= ${page:T:S/x$//g} 45MAN+= ${page:T:S/x$//g} 46${page:T:S/x$//g}: ${page} 47 cat ${.ALLSRC} > ${.TARGET} 48.endfor 49 50MLINKS= panel.3 bottom_panel.3 \ 51 panel.3 del_panel.3 \ 52 panel.3 hide_panel.3 \ 53 panel.3 move_panel.3 \ 54 panel.3 new_panel.3 \ 55 panel.3 panel_above.3 \ 56 panel.3 panel_below.3 \ 57 panel.3 panel_hidden.3 \ 58 panel.3 panel_userptr.3 \ 59 panel.3 panel_window.3 \ 60 panel.3 replace_panel.3 \ 61 panel.3 set_panel_userptr.3 \ 62 panel.3 show_panel.3 \ 63 panel.3 top_panel.3 \ 64 panel.3 update_panels.3 65 66.include <bsd.lib.mk> 67