summaryrefslogtreecommitdiff
path: root/usr.bin/ncurses/Makefile
blob: 1ed8a2d9a9155f66c433a874be9800c941c6a275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PACKAGE=	ncurses

.include <bsd.own.mk>
.include "${SRCTOP}/lib/ncurses/config.mk"

.PATH: ${NCURSES_DIR}/progs ${NCURSES_DIR}/man

PROGS=	tic tput infocmp toe tabs clear tset
SRCS.tic=	tic.c transform.c dump_entry.c tparm_type.c
SRCS.tput=	tput.c tparm_type.c transform.c dump_entry.c clear_cmd.c reset_cmd.c \
		tty_settings.c
SRCS.infocmp=	infocmp.c dump_entry.c
SRCS.tabs=	tabs.c tty_settings.c
SRCS.clear=	clear.c clear_cmd.c tty_settings.c
SRCS.tset=	tset.c tty_settings.c transform.c reset_cmd.c
CFLAGS+=	-I${NCURSES_DIR}/progs \
		-I${NCURSES_DIR}/include \
		-I${SRCTOP}/lib/ncurses/tinfo \
		-I${OBJTOP}/lib/ncurses/tinfo \
		-I${.CURDIR}
LIBADD=	tinfow
CLEANFILES=	termsort.h

termsort.h: MKtermsort.sh
	sh ${NCURSES_DIR}/progs/MKtermsort.sh ${AWK} ${NCURSES_DIR}/include/Caps > ${.TARGET}
dump_entry.c: termsort.h

LINKS.tic=	${BINDIR}/tic ${BINDIR}/captoinfo \
	${BINDIR}/tic ${BINDIR}/infotocap
LINKS.tset=	${BINDIR}/tset ${BINDIR}/reset

MLINKS.tic=	tic.1 captoinfo.1 \
	tic.1 infotocap.1
MLINKS.tset=	tset.1 reset.1

.include <bsd.progs.mk>

.SUFFIXES: .1 .1m
.1m.1:
	cat ${.IMPSRC} > ${.TARGET}