1 # $NetBSD: Makefile,v 1.28 2002/09/27 21:37:54 thorpej Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/4/93
7 CPPFLAGS
+=-I
${.CURDIR
} -DCM_N
-DCM_GT
-DCM_B
-DCM_D
8 SRCS
= termcap.c tgoto.c tputs.c tputws.c
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
20 .
include <bsd.shlib.mk
>
22 .if
${MKLINKLIB} != "no"
23 SYMLINKS
+= libtermcap.a
${LIBDIR}/libtermlib.a
26 .if
${MKPROFILE} != "no"
27 SYMLINKS
+= libtermcap_p.a
${LIBDIR}/libtermlib_p.a
32 .if
${MKPICINSTALL} != "no"
33 SYMLINKS
+= libtermcap_pic.a
${LIBDIR}/libtermlib_pic.a
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}
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
54 .
endif # exists shlib_version
56 .
endif # ${MKPIC} != "no"