Merge from vendor branch NCURSES:
[dragonfly.git] / lib / libpanel / Makefile
1 # Makefile for libpanel
2 # $FreeBSD: src/lib/libpanel/Makefile,v 1.2.2.5 2002/07/24 12:38:44 ru Exp $
3 # $DragonFly: src/lib/libpanel/Attic/Makefile,v 1.2 2003/06/17 04:26:51 dillon Exp $
4
5 NCURSES=${.CURDIR}/../../contrib/ncurses
6
7 .PATH:  ${NCURSES}/panel ${NCURSES}/include
8 .PATH:  ${NCURSES}/man
9
10 LIB=    panel
11 AWK?=   awk
12
13 SRCS=   ncurses_def.h \
14         p_above.c p_below.c p_bottom.c p_delete.c p_hidden.c \
15         p_hide.c p_move.c p_new.c p_replace.c p_show.c p_top.c \
16         p_update.c p_user.c p_win.c panel.c
17 INCS=   ${NCURSES}/panel/panel.h
18
19 CLEANFILES+=    ncurses_def.h
20 CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
21         -Wall -DNDEBUG -DHAVE_CONFIG_H
22
23 ncurses_def.h:  MKncurses_def.sh ncurses_defs
24         AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
25             ${NCURSES}/include/ncurses_defs > ncurses_def.h
26
27 # generate MAN
28 CLEANFILES+=    panel.3
29 MAN=            panel.3
30 panel.3: panel.3x
31         ln -s ${.ALLSRC} ${.TARGET}
32
33 MLINKS+=panel.3 bottom_panel.3 panel.3 del_panel.3 panel.3 hide_panel.3 \
34         panel.3 move_panel.3 panel.3 new_panel.3 panel.3 panel_above.3 \
35         panel.3 panel_below.3 panel.3 panel_hidden.3 \
36         panel.3 panel_userptr.3 panel.3 panel_window.3 \
37         panel.3 replace_panel.3 panel.3 set_panel_userptr.3 \
38         panel.3 show_panel.3 panel.3 top_panel.3 panel.3 update_panels.3
39
40 .include <bsd.lib.mk>
41
42 .SUFFIXES: .3x .3