NetBSD/lib/libterm/Makefile
jonathan a369db44b3 Add more LINKS+= lines to make (hard) links from libtermcap to libterm as
required by ELF toolchain.

Don't use symlinks links as bsd.lib.mk does for ELF, because
bsd.link.mk creates symlinks before it creates the hard link.
1998-02-23 00:31:07 +00:00

33 lines
1.0 KiB
Makefile

# $NetBSD: Makefile,v 1.12 1998/02/23 00:31:07 jonathan Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93
LIB= termcap
CPPFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D
SRCS= termcap.c tgoto.c tputs.c
MAN= termcap.3
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
LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
INCS= termcap.h
INCSDIR=/usr/include
.include <bsd.lib.mk>
.if !defined(NOPROFILE)
LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
.endif
.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