1994-05-27 05:00:24 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
|
|
|
|
|
|
LIB= termcap
|
1997-12-02 11:56:36 +00:00
|
|
|
SHLIB_MAJOR= 2
|
|
|
|
SHLIB_MINOR= 1
|
1995-08-05 21:22:07 +00:00
|
|
|
CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D -I${.CURDIR}
|
1995-08-04 06:39:55 +00:00
|
|
|
SRCS= termcap.c tgoto.c tputs.c tparm.c tospeed.c
|
1994-05-27 05:00:24 +00:00
|
|
|
|
1994-08-08 19:26:23 +00:00
|
|
|
MAN3= termcap.3
|
1994-05-27 05:00:24 +00:00
|
|
|
MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
|
1994-12-04 02:41:41 +00:00
|
|
|
termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3 \
|
1997-04-13 12:16:59 +00:00
|
|
|
termcap.3 tparm.3 termcap.3 __set_ospeed.3
|
1998-06-12 15:57:59 +00:00
|
|
|
|
1994-11-18 00:59:33 +00:00
|
|
|
LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
|
1994-11-08 17:31:52 +00:00
|
|
|
.if !defined(NOPIC)
|
1998-08-30 02:52:04 +00:00
|
|
|
.if ${OBJFORMAT} == aout
|
1994-11-19 14:01:58 +00:00
|
|
|
LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
|
|
|
${SHLIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
1998-06-12 15:57:59 +00:00
|
|
|
.else
|
|
|
|
# no need for major at all, it's an ld-time redirection only
|
|
|
|
LINKS+= ${SHLIBDIR}/libtermcap.so \
|
|
|
|
${SHLIBDIR}/libtermlib.so
|
|
|
|
.endif
|
1994-11-08 17:31:52 +00:00
|
|
|
.endif
|
1994-05-27 11:02:31 +00:00
|
|
|
.if !defined(NOPROFILE)
|
1994-11-18 00:59:33 +00:00
|
|
|
LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
|
1994-05-27 11:02:31 +00:00
|
|
|
.endif
|
1994-05-27 05:00:24 +00:00
|
|
|
|
1997-12-19 22:11:29 +00:00
|
|
|
beforeinstall:
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/termcap.h \
|
|
|
|
${DESTDIR}/usr/include
|
|
|
|
|
1998-08-30 02:52:04 +00:00
|
|
|
.if ${OBJFORMAT} == aout
|
1997-12-02 11:56:36 +00:00
|
|
|
# This is a hack.. Work around a major number bump that should have been
|
|
|
|
# done differently. Back out this delta when it's time to go to 3.0 for real.
|
|
|
|
.if !defined(NOPIC)
|
1997-12-19 22:11:29 +00:00
|
|
|
afterinstall:
|
|
|
|
.for lib in libtermcap.so libtermlib.so
|
|
|
|
rm -f ${DESTDIR}/usr/lib/compat/${lib}.3.0
|
|
|
|
ln -s ${SHLIBDIR}/${lib}.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
|
|
|
${DESTDIR}/usr/lib/compat/${lib}.3.0
|
|
|
|
rm -f ${DESTDIR}${SHLIBDIR}/${lib}.3.0
|
|
|
|
.endfor
|
1997-12-02 11:56:36 +00:00
|
|
|
.endif
|
1998-06-12 15:57:59 +00:00
|
|
|
.endif
|
1997-12-02 11:56:36 +00:00
|
|
|
|
1994-05-27 05:00:24 +00:00
|
|
|
.include <bsd.lib.mk>
|