xref: /openbsd/usr.bin/tic/Makefile (revision 264ca280)
1#	$OpenBSD: Makefile,v 1.8 2012/09/10 04:03:36 deraadt Exp $
2
3PROG=	tic
4SRCS=	dump_entry.c tic.c
5MAN=	tic.1 captoinfo.1 infotocap.1
6LINKS=	${BINDIR}/tic ${BINDIR}/infotocap ${BINDIR}/tic ${BINDIR}/captoinfo
7DPADD=	${LIBCURSES}
8LDADD=	-lcurses
9CURSES=	${.CURDIR}/../../lib/libcurses
10CFLAGS+= -I${CURSES} -I${.CURDIR} -I.
11CLEANFILES+= termsort.c captoinfo.1
12
13# Work around gcc optimization bug on sh
14.if (${MACHINE_ARCH} == sh)
15COPTS+=	-O0
16.endif
17
18beforedepend: termsort.c
19
20termsort.c: MKtermsort.sh
21	sh ${.CURDIR}/MKtermsort.sh awk ${CURSES}/Caps > ${.TARGET}
22
23captoinfo.1: captoinfo.1tbl
24	cp ${.ALLSRC} ${.TARGET}
25
26.include <bsd.prog.mk>
27