kernel: scheduling fix for ARM
[minix.git] / lib / libterminfo / Makefile
blob46024df9da003e5edd5cb3447320bfa1c9844493
1 # $NetBSD: Makefile,v 1.22 2012/03/21 05:37:44 matt Exp $
3 .include <bsd.own.mk>
5 .if defined(__MINIX)
6 CPPFLAGS+= -D_NETBSD_SOURCE
7 .endif
8 USE_SHLIBDIR= yes
10 LIB= terminfo
11 WARNS?= 5
13 CPPFLAGS+= -I${.CURDIR}
15 SRCS= term.c ti.c setupterm.c curterm.c tparm.c tputs.c
16 SRCS+= compile.c hash.c
17 INCS= term.h
18 INCSDIR= /usr/include
20 COPTS.tparm.c = -Wno-format-nonliteral
22 MAN= terminfo.3 terminfo.5
23 MLINKS= terminfo.3 setupterm.3 \
24 terminfo.3 set_curterm.3 terminfo.3 del_curterm.3 \
25 terminfo.3 termname.3 terminfo.3 longname.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 tiparm.3 terminfo.3 ti_tiparm.3 \
32 terminfo.3 ti_puts.3 terminfo.3 ti_putp.3
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
41 CPPFLAGS+= -I${.OBJDIR}
43 .include <Makefile.hash>
45 # Generate our man pages
46 terminfo.5: genman terminfo.5.in term.h termcap_map.c
47 @echo "Generating terminfo man pages"
48 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
50 CLEANFILES+= terminfo.5
52 man: terminfo.5
54 .include <bsd.shlib.mk>
56 .if ${MKLINKLIB} != "no"
57 SYMLINKS+= libterminfo.a ${LIBDIR}/libtermcap.a
58 SYMLINKS+= libterminfo.a ${LIBDIR}/libtermlib.a
59 .endif
61 .if ${MKPROFILE} != "no"
62 SYMLINKS+= libterminfo_p.a ${LIBDIR}/libtermcap_p.a
63 SYMLINKS+= libterminfo_p.a ${LIBDIR}/libtermlib_p.a
64 .endif
66 .if ${MKPIC} != "no"
68 .if ${MKPICINSTALL} != "no"
69 SYMLINKS+= libterminfo_pic.a ${LIBDIR}/libtermcap_pic.a
70 SYMLINKS+= libterminfo_pic.a ${LIBDIR}/libtermlib_pic.a
71 .endif
73 .if exists(${.CURDIR}/shlib_version)
74 SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
75 ${_LIBSODIR}/libtermcap.so.0.6
76 SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
77 ${_LIBSODIR}/libtermlib.so.0.6
78 .if ${_LIBSODIR} != ${LIBDIR}
79 SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
80 ${LIBDIR}/libtermcap.so.0.6
81 SYMLINKS+= libterminfo.so.${SHLIB_FULLVERSION} \
82 ${LIBDIR}/libtermlib.so.0.6
83 .endif
85 SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
86 ${_LIBSODIR}/libtermcap.so.0
87 SYMLINKS+= libterminfo.so ${_LIBSODIR}/libtermcap.so
88 SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
89 ${_LIBSODIR}/libtermlib.so.0
90 SYMLINKS+= libterminfo.so ${_LIBSODIR}/libtermlib.so
91 .if ${_LIBSODIR} != ${LIBDIR}
92 SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
93 ${LIBDIR}/libtermcap.so.0
94 SYMLINKS+= libterminfo.so ${LIBDIR}/libtermcap.so
95 SYMLINKS+= libterminfo.so.${SHLIB_MAJOR} \
96 ${LIBDIR}/libtermlib.so.0
97 SYMLINKS+= libterminfo.so ${LIBDIR}/libtermlib.so
98 .endif
99 .endif # exists shlib_version
101 .endif # ${MKPIC} != "no"
103 .include <bsd.lib.mk>