1 # $NetBSD: Makefile,v 1.22 2012/03/21 05:37:44 matt Exp $
10 CPPFLAGS
+= -I
${.CURDIR
}
12 SRCS
= term.c ti.c setupterm.c curterm.c tparm.c tputs.c
13 SRCS
+= compile.c hash.c
17 COPTS.tparm.c
= -Wno-format-nonliteral
19 MAN
= terminfo
.3 terminfo
.5
20 MLINKS
= terminfo
.3 setupterm
.3 \
21 terminfo
.3 set_curterm
.3 terminfo
.3 del_curterm
.3 \
22 terminfo
.3 termname
.3 terminfo
.3 longname
.3 \
23 terminfo
.3 tigetnum
.3 terminfo
.3 tigetflag
.3 \
24 terminfo
.3 tigetstr
.3 terminfo
.3 tparm
.3 terminfo
.3 tputs
.3 \
26 terminfo
.3 ti_setupterm
.3 terminfo
.3 ti_getflag
.3 \
27 terminfo
.3 ti_getnum
.3 terminfo
.3 ti_getstr
.3 \
28 terminfo
.3 tiparm
.3 terminfo
.3 ti_tiparm
.3 \
29 terminfo
.3 ti_puts
.3 terminfo
.3 ti_putp
.3
31 # Build in termcap emulation
35 MLINKS
+= termcap
.3 tgetent
.3 termcap
.3 tgetflag
.3 termcap
.3 tgetnum
.3 \
36 termcap
.3 tgetstr
.3 termcap
.3 tgoto
.3
38 CPPFLAGS
+= -I
${.OBJDIR
}
40 .
include <Makefile.hash
>
42 # Generate our man pages
43 terminfo
.5: genman terminfo
.5.in term.h termcap_map.c
44 @echo
"Generating terminfo man pages"
45 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC
} > ${.TARGET
}
47 CLEANFILES
+= terminfo
.5
51 .
include <bsd.shlib.mk
>
53 .if
${MKLINKLIB} != "no"
54 SYMLINKS
+= libterminfo.a
${LIBDIR}/libtermcap.a
55 SYMLINKS
+= libterminfo.a
${LIBDIR}/libtermlib.a
58 .if
${MKPROFILE} != "no"
59 SYMLINKS
+= libterminfo_p.a
${LIBDIR}/libtermcap_p.a
60 SYMLINKS
+= libterminfo_p.a
${LIBDIR}/libtermlib_p.a
65 .if
${MKPICINSTALL} != "no"
66 SYMLINKS
+= libterminfo_pic.a
${LIBDIR}/libtermcap_pic.a
67 SYMLINKS
+= libterminfo_pic.a
${LIBDIR}/libtermlib_pic.a
70 .if exists
(${.CURDIR
}/shlib_version
)
71 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
72 ${_LIBSODIR}/libtermcap.so
.0.6
73 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
74 ${_LIBSODIR}/libtermlib.so
.0.6
75 .if
${_LIBSODIR} != ${LIBDIR}
76 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
77 ${LIBDIR}/libtermcap.so
.0.6
78 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
79 ${LIBDIR}/libtermlib.so
.0.6
82 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
83 ${_LIBSODIR}/libtermcap.so
.0
84 SYMLINKS
+= libterminfo.so
${_LIBSODIR}/libtermcap.so
85 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
86 ${_LIBSODIR}/libtermlib.so
.0
87 SYMLINKS
+= libterminfo.so
${_LIBSODIR}/libtermlib.so
88 .if
${_LIBSODIR} != ${LIBDIR}
89 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
90 ${LIBDIR}/libtermcap.so
.0
91 SYMLINKS
+= libterminfo.so
${LIBDIR}/libtermcap.so
92 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
93 ${LIBDIR}/libtermlib.so
.0
94 SYMLINKS
+= libterminfo.so
${LIBDIR}/libtermlib.so
96 .
endif # exists shlib_version
98 .
endif # ${MKPIC} != "no"
100 .
include <bsd.lib.mk
>