1# Makefile for libpanel 2# $FreeBSD$ 3 4NCURSES=${.CURDIR}/../../contrib/ncurses 5 6.PATH: ${NCURSES}/panel ${NCURSES}/include 7.PATH: ${NCURSES}/man 8 9LIB= panel 10AWK?= awk 11 12SRCS= ncurses_def.h \ 13 p_above.c p_below.c p_bottom.c p_delete.c p_hidden.c \ 14 p_hide.c p_move.c p_new.c p_replace.c p_show.c p_top.c \ 15 p_update.c p_user.c p_win.c panel.c 16INCS= ${NCURSES}/panel/panel.h 17 18CLEANFILES+= ncurses_def.h 19CFLAGS+= -I. 20.if exists(${.OBJDIR}/../libncurses) 21CFLAGS+= -I${.OBJDIR}/../libncurses 22.endif 23CFLAGS+= -I${.CURDIR}/../libncurses 24CFLAGS+= -I${NCURSES}/panel -I${NCURSES}/include -I${NCURSES}/ncurses \ 25 -Wall -DNDEBUG -DHAVE_CONFIG_H 26 27ncurses_def.h: MKncurses_def.sh ncurses_defs 28 AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \ 29 ${NCURSES}/include/ncurses_defs > ncurses_def.h 30 31# generate MAN 32CLEANFILES+= panel.3 33MAN= panel.3 34panel.3: panel.3x 35 cat ${.ALLSRC} > ${.TARGET} 36 37MLINKS+=panel.3 bottom_panel.3 panel.3 del_panel.3 panel.3 hide_panel.3 \ 38 panel.3 move_panel.3 panel.3 new_panel.3 panel.3 panel_above.3 \ 39 panel.3 panel_below.3 panel.3 panel_hidden.3 \ 40 panel.3 panel_userptr.3 panel.3 panel_window.3 \ 41 panel.3 replace_panel.3 panel.3 set_panel_userptr.3 \ 42 panel.3 show_panel.3 panel.3 top_panel.3 panel.3 update_panels.3 43 44.include <bsd.lib.mk> 45 46.SUFFIXES: .3x .3 47