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