Annotation of src/lib/libterminfo/Makefile, Revision 1.6
1.6 ! roy 1: # $NetBSD: Makefile,v 1.5 2010/02/11 00:27:09 roy Exp $
1.1 roy 2:
3: USE_SHLIBDIR= yes
4:
5: LIB= terminfo
6: WARNS= 4
7:
1.5 roy 8: CPPFLAGS+= -I${.CURDIR} -I${.OBJDIR}
1.3 roy 9:
1.1 roy 10: SRCS= term.c ti.c setupterm.c curterm.c tparm.c tputs.c
11: SRCS+= hash.c
12: INCS= term.h
13: INCSDIR= /usr/include
14:
1.6 ! roy 15: .PHONY: rescue.c
1.5 roy 16:
1.6 ! roy 17: rescue.c:
! 18: tic -Sx ${NETBSDSRCDIR}/share/terminfo/terminfo \
! 19: ansi dumb vt100 vt220 wsvt25 >$@
1.5 roy 20:
21: term.c: rescue.c
22:
1.1 roy 23: MAN= terminfo.3 terminfo.5
24: MLINKS= terminfo.3 setupterm.3 \
25: terminfo.3 set_curterm.3 terminfo.3 del_curterm.3 \
26: terminfo.3 tigetnum.3 terminfo.3 tigetflag.3 \
27: terminfo.3 tigetstr.3 terminfo.3 tparm.3 terminfo.3 tputs.3 \
28: terminfo.3 putp.3 \
29: terminfo.3 ti_setupterm.3 terminfo.3 ti_getflag.3 \
30: terminfo.3 ti_getnum.3 terminfo.3 ti_getstr.3 \
31: terminfo.3 t_parm.3 terminfo.3 t_vparm.3 \
32: terminfo.3 ti_puts.3 terminfo.3 ti_putp.3
33:
34: # Build in termcap emulation
35: SRCS+= termcap.c
36: INCS+= termcap.h
37: MAN+= termcap.3
38: MLINKS+= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
39: termcap.3 tgetstr.3 termcap.3 tgoto.3
40:
41: # Generate our string and hash tables
1.3 roy 42: hash:
43: @echo "Generating terminfo hash"
44: cd ${.CURDIR} && ${HOST_SH} ./genhash >hash.c
1.1 roy 45: @echo "Generating termcap hash"
1.3 roy 46: cd ${.CURDIR} && ${HOST_SH} ./genthash >termcap_hash.c
47:
48: # Generate our man pages
1.4 roy 49: terminfo.5: terminfo.5.in term.h termcap_map.c
1.3 roy 50: @echo "Generating terminfo man pages"
1.4 roy 51: cd ${.CURDIR} && ${HOST_SH} ./genman >${.OBJDIR}/$@
52:
53: man: terminfo.5
1.1 roy 54:
1.3 roy 55: gen: hash man
1.1 roy 56:
1.6 ! roy 57: .include <bsd.own.mk>
1.1 roy 58: .include <bsd.shlib.mk>
59:
60: .if ${MKLINKLIB} != "no"
61: SYMLINKS+= libterminfo.a ${LIBDIR}/libtermcap.a
62: SYMLINKS+= libterminfo.a ${LIBDIR}/libtermlib.a
63: .endif
64:
65: .if ${MKPROFILE} != "no"
66: SYMLINKS+= libterminfo_p.a ${LIBDIR}/libtermcap_p.a
67: SYMLINKS+= libterminfo_p.a ${LIBDIR}/libtermlib_p.a
68: .endif
69:
70: .if ${MKPIC} != "no"
71:
72: .if ${MKPICINSTALL} != "no"
73: SYMLINKS+= libterminfo_pic.a ${LIBDIR}/libtermcap_pic.a
74: SYMLINKS+= libterminfo_pic.a ${LIBDIR}/libtermlib_pic.a
75: .endif
76:
77: .if exists(${.CURDIR}/shlib_version)
78: SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
79: ${_LIBSODIR}/libtermcap.so.0.6
80: SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
81: ${_LIBSODIR}/libtermlib.so.0.6
82: .if ${_LIBSODIR} != ${LIBDIR}
83: SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
84: ${LIBDIR}/libtermcap.so.0.6
85: SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
86: ${LIBDIR}/libtermlib.so.0.6
87: .endif
88:
89: .if (${OBJECT_FMT} == "ELF")
90: SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
91: ${_LIBSODIR}/libtermcap.so.0
92: SYMLINKS+= libterminfo.so ${_LIBSODIR}/libtermcap.so
93: SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
94: ${_LIBSODIR}/libtermlib.so.0
95: SYMLINKS+= libterminfo.so ${_LIBSODIR}/libtermlib.so
96: .if ${_LIBSODIR} != ${LIBDIR}
97: SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
98: ${LIBDIR}/libtermcap.so.0
99: SYMLINKS+= libterminfo.so ${LIBDIR}/libtermcap.so
100: SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
101: ${LIBDIR}/libtermlib.so.0
102: SYMLINKS+= libterminfo.so ${LIBDIR}/libtermlib.so
103: .endif
104: .endif
105: .endif # exists shlib_version
106:
107: .endif # ${MKPIC} != "no"
108:
109: .include <bsd.lib.mk>
CVSweb <webmaster@jp.NetBSD.org>