xref: /freebsd/lib/ncurses/panel/Makefile (revision 3750ccefb8629a08890bfbae894dd6bc6a7483b4)
1.include <src.opts.mk>
2.include "${.CURDIR:H}/config.mk"
3
4SRCDIR=	${NCURSES_DIR}/panel
5
6PACKAGE=	clibs
7LIB=	panelw
8SHLIB_MAJOR=	6
9
10.PATH: ${SRCDIR}
11SRCS=	\
12	ncurses_def.h \
13	p_above.c \
14	p_below.c \
15	p_bottom.c \
16	p_delete.c \
17	p_hidden.c \
18	p_hide.c \
19	p_move.c \
20	p_new.c \
21	p_replace.c \
22	p_show.c \
23	p_top.c \
24	p_update.c \
25	p_user.c \
26	p_win.c \
27	panel.c
28
29CLEANFILES=	ncurses_def.h
30
31CFLAGS+=	-I${SRCDIR}
32
33LIBADD+=	ncursesw
34
35# generate MAN
36.PATH: ${NCURSES_DIR}/man
37MAN=	\
38	panel.3
39
40CLEANFILES+=	${MAN:M*.3}
41
42MLINKS=	panel.3 bottom_panel.3 \
43	panel.3 del_panel.3 \
44	panel.3 hide_panel.3 \
45	panel.3 move_panel.3 \
46	panel.3 new_panel.3 \
47	panel.3 panel_above.3 \
48	panel.3 panel_below.3 \
49	panel.3 panel_hidden.3 \
50	panel.3 panel_userptr.3 \
51	panel.3 panel_window.3 \
52	panel.3 replace_panel.3 \
53	panel.3 set_panel_userptr.3 \
54	panel.3 show_panel.3 \
55	panel.3 top_panel.3 \
56	panel.3 update_panels.3
57
58# backward compat
59.if ${MK_INSTALLLIB} != "no"
60SYMLINKS+=	libpanelw.a ${LIBDIR}/libpanel.a
61.endif
62.if !defined(NO_PIC)
63SYMLINKS+=	libpanelw.so ${LIBDIR}/libpanel.so
64.endif
65
66INCS=	panel.h
67.include <bsd.lib.mk>
68
69# Keep the .SUFFIXES line after the include of bsd.lib.mk
70.SUFFIXES: .3 .3x
71.3x.3:
72	cat ${.IMPSRC} > ${.TARGET}
73