Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / lib / libterm / Makefile
blobbb32e1cb989a7afd2935af3be9fbd83ba6d4c871
1 # $NetBSD: Makefile,v 1.28 2002/09/27 21:37:54 thorpej Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/4/93
4 USE_SHLIBDIR= yes
6 LIB= termcap
7 CPPFLAGS+=-I${.CURDIR} -DCM_N -DCM_GT -DCM_B -DCM_D
8 SRCS= termcap.c tgoto.c tputs.c tputws.c
10 MAN= termcap.3
11 MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
12 termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3 \
13 termcap.3 t_getent.3 termcap.3 t_getflag.3 termcap.3 t_getnum.3 \
14 termcap.3 t_getstr.3 termcap.3 t_goto.3 termcap.3 t_puts.3 \
15 termcap.3 t_freent.3 termcap.3 t_putws.3
16 INCS= termcap.h
17 INCSDIR=/usr/include
19 .include <bsd.own.mk>
20 .include <bsd.shlib.mk>
22 .if ${MKLINKLIB} != "no"
23 SYMLINKS+= libtermcap.a ${LIBDIR}/libtermlib.a
24 .endif
26 .if ${MKPROFILE} != "no"
27 SYMLINKS+= libtermcap_p.a ${LIBDIR}/libtermlib_p.a
28 .endif
30 .if ${MKPIC} != "no"
32 .if ${MKPICINSTALL} != "no"
33 SYMLINKS+= libtermcap_pic.a ${LIBDIR}/libtermlib_pic.a
34 .endif
36 .if exists(${.CURDIR}/shlib_version)
37 SYMLINKS+= libtermcap.so.${SHLIB_FULLVERSION} \
38 ${_LIBSODIR}/libtermlib.so.${SHLIB_FULLVERSION}
39 .if ${_LIBSODIR} != ${LIBDIR}
40 SYMLINKS+= libtermcap.so.${SHLIB_FULLVERSION} \
41 ${LIBDIR}/libtermlib.so.${SHLIB_FULLVERSION}
42 .endif
44 .if (${OBJECT_FMT} == "ELF")
45 SYMLINKS+= libtermcap.so.${SHLIB_MAJOR} \
46 ${_LIBSODIR}/libtermlib.so.${SHLIB_MAJOR}
47 SYMLINKS+= libtermcap.so ${_LIBSODIR}/libtermlib.so
48 .if ${_LIBSODIR} != ${LIBDIR}
49 SYMLINKS+= libtermcap.so.${SHLIB_MAJOR} \
50 ${LIBDIR}/libtermlib.so.${SHLIB_MAJOR}
51 SYMLINKS+= libtermcap.so ${LIBDIR}/libtermlib.so
52 .endif
53 .endif
54 .endif # exists shlib_version
56 .endif # ${MKPIC} != "no"
58 .include <bsd.lib.mk>