xref: /freebsd/gnu/lib/libdialog/Makefile (revision 71fe318b852b8dfb3e799cb12ef184750f7f8eac)
1# Makefile for libdialog
2# $FreeBSD$
3
4LIB=    dialog
5INCS=	dialog.h
6MAN=	dialog.3
7
8SHLIB_MAJOR= 4
9SRCS=   kernel.c rc.c checklist.c inputbox.c menubox.c msgbox.c \
10	lineedit.c radiolist.c textbox.c yesno.c prgbox.c raw_popen.c \
11	fselect.c ui_objects.c dir.c notify.c help.c gauge.c tree.c
12
13EXAMPLES= Makefile check1.c check2.c check3.c dselect.c fselect.c \
14	ftree1.c ftree1.test ftree2.c ftree2.test gauge.c input1.c \
15	input2.c menu1.c menu2.c menu3.c msg.c prgbox.c radio1.c \
16	radio2.c radio3.c text.c tree.c yesno.c
17
18CFLAGS+= -I${.CURDIR} -Wall -Wstrict-prototypes -DLOCALE
19
20LDADD+= -lncurses
21DPADD+= ${LIBNCURSES}
22
23.if !defined(NOHTML)
24afterinstall:
25.for file in ${EXAMPLES}
26	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
27	      ${.CURDIR}/TESTS/${file} ${DESTDIR}/usr/share/examples/libdialog
28.endfor
29.endif
30
31MLINKS+=dialog.3 draw_shadow.3 dialog.3 draw_box.3 \
32	dialog.3 line_edit.3 dialog.3 strheight.3 \
33	dialog.3 strwidth.3 dialog.3 dialog_create_rc.3 \
34	dialog.3 dialog_yesno.3 dialog.3 dialog_noyes.3 \
35	dialog.3 dialog_prgbox.3 \
36	dialog.3 dialog_textbox.3 dialog.3 dialog_menu.3 \
37	dialog.3 dialog_checklist.3 dialog.3 dialog_radiolist.3 \
38	dialog.3 dialog_inputbox.3 dialog.3 dialog_clear_norefresh.3 \
39	dialog.3 dialog_clear.3 dialog.3 dialog_update.3 \
40	dialog.3 dialog_fselect.3 dialog.3 dialog_notify.3 \
41	dialog.3 dialog_mesgbox.3 dialog.3 dialog_gauge.3 \
42	dialog.3 init_dialog.3 dialog.3 end_dialog.3 \
43	dialog.3 use_helpfile.3 dialog.3 use_helpline.3 \
44	dialog.3 get_helpline.3 dialog.3 restore_helpline.3 \
45	dialog.3 dialog_msgbox.3 dialog.3 dialog_ftree.3 \
46	dialog.3 dialog_tree.3
47
48.include <bsd.lib.mk>
49