1 # $NetBSD: Makefile,v 1.12 2010/07/06 05:59:53 mrg Exp $
4 .
include "minix-config.inc"
11 CPPFLAGS
+= -I
${.CURDIR
}
13 SRCS
= term.c ti.c setupterm.c curterm.c tparm.c tputs.c
14 SRCS
+= compile.c hash.c
18 MAN
= terminfo
.3 terminfo
.5
19 MLINKS
= terminfo
.3 setupterm
.3 \
20 terminfo
.3 set_curterm
.3 terminfo
.3 del_curterm
.3 \
21 terminfo
.3 tigetnum
.3 terminfo
.3 tigetflag
.3 \
22 terminfo
.3 tigetstr
.3 terminfo
.3 tparm
.3 terminfo
.3 tputs
.3 \
24 terminfo
.3 ti_setupterm
.3 terminfo
.3 ti_getflag
.3 \
25 terminfo
.3 ti_getnum
.3 terminfo
.3 ti_getstr
.3 \
26 terminfo
.3 t_parm
.3 terminfo
.3 t_vparm
.3 \
27 terminfo
.3 ti_puts
.3 terminfo
.3 ti_putp
.3
29 # Build in termcap emulation
33 MLINKS
+= termcap
.3 tgetent
.3 termcap
.3 tgetflag
.3 termcap
.3 tgetnum
.3 \
34 termcap
.3 tgetstr
.3 termcap
.3 tgoto
.3
36 # Generate our string and hash tables
38 @echo
"Generating terminfo hash"
39 cd
${.CURDIR
} && ${HOST_SH} .
/genhash
>hash.c
40 @echo
"Generating termcap hash"
41 cd
${.CURDIR
} && ${HOST_SH} .
/genthash
>termcap_hash.c
43 # Generate our man pages
44 terminfo
.5: terminfo
.5.in term.h termcap_map.c
45 @echo
"Generating terminfo man pages"
46 cd
${.CURDIR
} && ${HOST_SH} .
/genman
>${.OBJDIR
}/$@
48 CLEANFILES
+= terminfo
.5
50 # Allow terminfo descriptions to be compiled into libterminfo
52 @echo
"Generating compiled terminfo descriptions"
53 cd
${.CURDIR
} && ${HOST_SH} .
/genterms
>compiled_terms.c
57 gen
: hash compiled_terms man
60 .
include <bsd.shlib.mk
>
62 .if
${MKLINKLIB} != "no"
63 SYMLINKS
+= libterminfo.a
${LIBDIR}/libtermcap.a
64 SYMLINKS
+= libterminfo.a
${LIBDIR}/libtermlib.a
67 .if
${MKPROFILE} != "no"
68 SYMLINKS
+= libterminfo_p.a
${LIBDIR}/libtermcap_p.a
69 SYMLINKS
+= libterminfo_p.a
${LIBDIR}/libtermlib_p.a
74 .if
${MKPICINSTALL} != "no"
75 SYMLINKS
+= libterminfo_pic.a
${LIBDIR}/libtermcap_pic.a
76 SYMLINKS
+= libterminfo_pic.a
${LIBDIR}/libtermlib_pic.a
79 .if exists
(${.CURDIR
}/shlib_version
)
80 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
81 ${_LIBSODIR}/libtermcap.so
.0.6
82 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
83 ${_LIBSODIR}/libtermlib.so
.0.6
84 .if
${_LIBSODIR} != ${LIBDIR}
85 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
86 ${LIBDIR}/libtermcap.so
.0.6
87 SYMLINKS
+= libterminfo.so.
${SHLIB_FULLVERSION} \
88 ${LIBDIR}/libtermlib.so
.0.6
91 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
92 ${_LIBSODIR}/libtermcap.so
.0
93 SYMLINKS
+= libterminfo.so
${_LIBSODIR}/libtermcap.so
94 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
95 ${_LIBSODIR}/libtermlib.so
.0
96 SYMLINKS
+= libterminfo.so
${_LIBSODIR}/libtermlib.so
97 .if
${_LIBSODIR} != ${LIBDIR}
98 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
99 ${LIBDIR}/libtermcap.so
.0
100 SYMLINKS
+= libterminfo.so
${LIBDIR}/libtermcap.so
101 SYMLINKS
+= libterminfo.so.
${SHLIB_MAJOR} \
102 ${LIBDIR}/libtermlib.so
.0
103 SYMLINKS
+= libterminfo.so
${LIBDIR}/libtermlib.so
105 .
endif # exists shlib_version
107 .
endif # ${MKPIC} != "no"
109 .
include <bsd.lib.mk
>