]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libtermcap/Makefile
Add $FreeBSD$ lines to man pages that are missing them to make
[FreeBSD/FreeBSD.git] / lib / libtermcap / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2
3 LIB=    termcap
4 SHLIB_MAJOR= 2
5 SHLIB_MINOR= 1
6 CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D -I${.CURDIR}
7 SRCS=   termcap.c tgoto.c tputs.c tparm.c tospeed.c
8
9 MAN3=   termcap.3
10 MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
11         termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3 \
12         termcap.3 tparm.3 termcap.3 __set_ospeed.3
13
14 LINKS=  ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
15 .if ${OBJFORMAT} == aout
16 .if !defined(NOPIC)
17 LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
18         ${SHLIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
19 .endif
20 .endif
21 .if !defined(NOPROFILE)
22 LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
23 .endif
24
25 beforeinstall:
26         ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/termcap.h \
27                 ${DESTDIR}/usr/include
28
29 # This is a hack.. Work around a major number bump that should have been
30 # done differently.  Back out this delta when it's time to go to 3.0 for real.
31 afterinstall:
32 .if !defined(NOPIC)
33 .if ${OBJFORMAT} == aout
34 .for lib in libtermcap libtermlib
35         rm -f ${DESTDIR}/usr/lib/compat/${lib}.so.3.0
36         rm -f ${DESTDIR}/usr/lib/compat/aout/${lib}.so.3.0
37         ln -s ${SHLIBDIR}/${lib}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
38                 ${DESTDIR}/usr/lib/compat/aout/${lib}.so.3.0
39         rm -f ${DESTDIR}${SHLIBDIR}/${lib}.so.3.0
40 .endfor
41 .endif
42 .if ${OBJFORMAT} == elf
43         rm -f ${DESTDIR}${SHLIBDIR}/libtermlib.so
44         ln -s libtermcap.so.${SHLIB_MAJOR} ${DESTDIR}${SHLIBDIR}/libtermlib.so 
45 .endif
46 .endif
47
48 .include <bsd.lib.mk>