1 # Makefile for libpanel
4 NCURSES=${.CURDIR}/../../contrib/ncurses
6 .PATH: ${NCURSES}/panel ${NCURSES}/include
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
16 INCS= ${NCURSES}/panel/panel.h
18 CLEANFILES+= ncurses_def.h
20 .if exists(${.OBJDIR}/../libncurses)
21 CFLAGS+= -I${.OBJDIR}/../libncurses
23 CFLAGS+= -I${.CURDIR}/../libncurses
24 CFLAGS+= -I${NCURSES}/panel -I${NCURSES}/include -I${NCURSES}/ncurses \
25 -Wall -DNDEBUG -DHAVE_CONFIG_H
27 ncurses_def.h: MKncurses_def.sh ncurses_defs
28 AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
29 ${NCURSES}/include/ncurses_defs > ncurses_def.h
35 cat ${.ALLSRC} > ${.TARGET}
37 MLINKS+=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