Initial import from FreeBSD RELENG_4:
[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
4 NCURSES=${.CURDIR}/../../contrib/ncurses
5
6 .PATH:  ${NCURSES}/panel ${NCURSES}/include
7 .PATH:  ${NCURSES}/man
8
9 LIB=    panel
10 AWK?=   awk
11
12 SRCS=   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
16 INCS=   ${NCURSES}/panel/panel.h
17
18 CLEANFILES+=    ncurses_def.h
19 CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
20         -Wall -DNDEBUG -DHAVE_CONFIG_H
21
22 ncurses_def.h:  MKncurses_def.sh ncurses_defs
23         AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
24             ${NCURSES}/include/ncurses_defs > ncurses_def.h
25
26 # generate MAN
27 CLEANFILES+=    panel.3
28 MAN=            panel.3
29 panel.3: panel.3x
30         ln -s ${.ALLSRC} ${.TARGET}
31
32 MLINKS+=panel.3 bottom_panel.3 panel.3 del_panel.3 panel.3 hide_panel.3 \
33         panel.3 move_panel.3 panel.3 new_panel.3 panel.3 panel_above.3 \
34         panel.3 panel_below.3 panel.3 panel_hidden.3 \
35         panel.3 panel_userptr.3 panel.3 panel_window.3 \
36         panel.3 replace_panel.3 panel.3 set_panel_userptr.3 \
37         panel.3 show_panel.3 panel.3 top_panel.3 panel.3 update_panels.3
38
39 .include <bsd.lib.mk>
40
41 .SUFFIXES: .3x .3