blob: e37308803b92edd3e7f2103727bf953ef83e0fa9 (
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
|
# $OpenBSD: Makefile,v 1.9 2005/11/24 20:49:19 deraadt Exp $
CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D
LIB= ocurses
WANTLINT=
SRCS= addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c clrtoeol.c \
cr_put.c ctrace.c cur_hash.c curses.c delch.c deleteln.c delwin.c \
erase.c fullname.c getch.c getstr.c id_subwins.c idlok.c initscr.c \
insch.c insertln.c longname.c move.c mvwin.c newwin.c overlay.c \
overwrite.c printw.c putchar.c refresh.c scanw.c scroll.c setterm.c \
standout.c toucholap.c touchwin.c tscroll.c tstp.c tty.c unctrl.c
SRCS+= termcap.c tgoto.c tputs.c
MAN= ocurses.3 otermcap.3
.if make(install)
SUBDIR+= PSD.doc
.endif
includes:
-cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/ocurses.h || \
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
curses.h ${DESTDIR}/usr/include/ocurses.h
.include <bsd.own.mk>
# Link libotermcap to libocurses for programs that need full compatibility
# with the old termcap behavior
afterinstall:
-cd ${DESTDIR}${LIBDIR}; \
for i in ${_LIBS}; do \
ln -f $$i `echo $$i | sed 's/ocurses/otermcap/'`; \
done
.if (${DEBUGLIBS:L} == "yes")
-cd ${DESTDIR}${LIBDIR}/debug; \
ln -f lib${LIB}.a lib`echo ${LIB} | sed 's/ocurses/otermcap/'`.a
.endif
.include <bsd.lib.mk>
|