NetBSD/lib/libterm/Makefile

38 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.14 1998/04/18 15:26:20 tv Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93
1993-03-21 12:45:37 +03:00
LIB= termcap
1997-10-23 07:27:34 +04:00
CPPFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D
1993-03-21 12:45:37 +03:00
SRCS= termcap.c tgoto.c tputs.c
1994-12-22 12:57:51 +03:00
MAN= termcap.3
1993-03-21 12:45:37 +03:00
MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3
INCS= termcap.h
INCSDIR=/usr/include
.include <bsd.own.mk>
.if !defined(NOSTATICLIB)
LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
.endif
.if !defined(NOPROFILE)
LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
.endif
1993-03-21 12:45:37 +03:00
.if !defined(NOPIC) && defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
LINKS+= ${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
${LIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
# Really XXX ELF toolchain.
# ELF rules normally use symlinks but bsd.lib.mk makes symlinks before hard.
.if (${MACHINE} == "alpha") || (${MACHINE_ARCH} == "mips")
LINKS+= ${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR} \
${LIBDIR}/lib$termlib.so.${SHLIB_MAJOR}
LINKS+= ${LIBDIR}/lib${LIB}.so ${LIBDIR}/libtermlib.so
.endif
.endif
.include <bsd.lib.mk>