retire BIOS_SEG and umap_bios
[minix3.git] / lib / libterminfo / Makefile
bloba6537ade83efd013a3afe90aab113559cc69886e
1 # $NetBSD: Makefile,v 1.12 2010/07/06 05:59:53 mrg Exp $
3 .if defined(__MINIX)
4 .include "minix-config.inc"
5 .endif
6 USE_SHLIBDIR= yes
8 LIB= terminfo
9 WARNS= 4
11 CPPFLAGS+= -I${.CURDIR}
13 SRCS= term.c ti.c setupterm.c curterm.c tparm.c tputs.c
14 SRCS+= compile.c hash.c
15 INCS= term.h
16 INCSDIR= /usr/include
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 \
23 terminfo.3 putp.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
30 SRCS+= termcap.c
31 INCS+= termcap.h
32 MAN+= termcap.3
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
37 hash:
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
51 compiled_terms:
52 @echo "Generating compiled terminfo descriptions"
53 cd ${.CURDIR} && ${HOST_SH} ./genterms >compiled_terms.c
55 man: terminfo.5
57 gen: hash compiled_terms man
59 .include <bsd.own.mk>
60 .include <bsd.shlib.mk>
62 .if ${MKLINKLIB} != "no"
63 SYMLINKS+= libterminfo.a ${LIBDIR}/libtermcap.a
64 SYMLINKS+= libterminfo.a ${LIBDIR}/libtermlib.a
65 .endif
67 .if ${MKPROFILE} != "no"
68 SYMLINKS+= libterminfo_p.a ${LIBDIR}/libtermcap_p.a
69 SYMLINKS+= libterminfo_p.a ${LIBDIR}/libtermlib_p.a
70 .endif
72 .if ${MKPIC} != "no"
74 .if ${MKPICINSTALL} != "no"
75 SYMLINKS+= libterminfo_pic.a ${LIBDIR}/libtermcap_pic.a
76 SYMLINKS+= libterminfo_pic.a ${LIBDIR}/libtermlib_pic.a
77 .endif
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
89 .endif
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
104 .endif
105 .endif # exists shlib_version
107 .endif # ${MKPIC} != "no"
109 .include <bsd.lib.mk>