Home | History | Annotate | Line # | Download | only in libterminfo
Makefile revision 1.1
      1  1.1  roy #	$NetBSD: Makefile,v 1.1 2010/02/03 15:16:32 roy Exp $
      2  1.1  roy 
      3  1.1  roy USE_SHLIBDIR=	yes
      4  1.1  roy 
      5  1.1  roy LIB=		terminfo
      6  1.1  roy WARNS=		4
      7  1.1  roy 
      8  1.1  roy SRCS=		term.c ti.c setupterm.c curterm.c tparm.c tputs.c
      9  1.1  roy SRCS+=		hash.c
     10  1.1  roy INCS=		term.h
     11  1.1  roy INCSDIR=	/usr/include
     12  1.1  roy 
     13  1.1  roy LIBTIDIR?=	${.CURDIR}
     14  1.1  roy CPPFLAGS+=	-I${LIBTIDIR}
     15  1.1  roy 
     16  1.1  roy # Generate our string and hash tables
     17  1.1  roy hash.c: genhash term.h
     18  1.1  roy 		@echo "Generating terminfo hash"
     19  1.1  roy 		cd ${LIBTIDIR}; ./genhash >${.OBJDIR}/$@
     20  1.1  roy 
     21  1.1  roy # Update our man page with terminfo long names, short names and termcaps
     22  1.1  roy terminfo.5: genman terminfo.5.in term.h termcap.c
     23  1.1  roy 		@echo "Generating terminfo man pages"
     24  1.1  roy 		cd ${LIBTIDIR}; ./genman >${.OBJDIR}/$@
     25  1.1  roy 
     26  1.1  roy MAN=		terminfo.3 terminfo.5
     27  1.1  roy CLEANFILES+=	terminfo.5 hash.c
     28  1.1  roy MLINKS=		terminfo.3 setupterm.3 \
     29  1.1  roy 		terminfo.3 set_curterm.3 terminfo.3 del_curterm.3 \
     30  1.1  roy 		terminfo.3 tigetnum.3 terminfo.3 tigetflag.3 \
     31  1.1  roy 		terminfo.3 tigetstr.3 terminfo.3 tparm.3 terminfo.3 tputs.3 \
     32  1.1  roy 		terminfo.3 putp.3 \
     33  1.1  roy 		terminfo.3 ti_setupterm.3 terminfo.3 ti_getflag.3 \
     34  1.1  roy 		terminfo.3 ti_getnum.3 terminfo.3 ti_getstr.3 \
     35  1.1  roy 		terminfo.3 t_parm.3 terminfo.3 t_vparm.3 \
     36  1.1  roy 		terminfo.3 ti_puts.3 terminfo.3 ti_putp.3
     37  1.1  roy 
     38  1.1  roy # Build in termcap emulation
     39  1.1  roy SRCS+=		termcap.c
     40  1.1  roy INCS+=		termcap.h
     41  1.1  roy CPPFLAGS+=	-I${.OBJDIR}
     42  1.1  roy MAN+=		termcap.3
     43  1.1  roy CLEANFILES+=	_termcap.c termcap_hash.c
     44  1.1  roy MLINKS+=	termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
     45  1.1  roy 		termcap.3 tgetstr.3 termcap.3 tgoto.3
     46  1.1  roy 
     47  1.1  roy # Generate our string and hash tables
     48  1.1  roy termcap_hash.c:	genthash termcap_map.c
     49  1.1  roy 		@echo "Generating termcap hash"
     50  1.1  roy 		cd ${LIBTIDIR}; ./genthash >${.OBJDIR}/$@
     51  1.1  roy 
     52  1.1  roy # Depend on our hash table
     53  1.1  roy termcap.c:	termcap_hash.c
     54  1.1  roy 
     55  1.1  roy .include <bsd.own.mk>
     56  1.1  roy .include <bsd.shlib.mk>
     57  1.1  roy 
     58  1.1  roy .if ${MKLINKLIB} != "no"
     59  1.1  roy SYMLINKS+=	libterminfo.a ${LIBDIR}/libtermcap.a
     60  1.1  roy SYMLINKS+=	libterminfo.a ${LIBDIR}/libtermlib.a
     61  1.1  roy .endif
     62  1.1  roy 
     63  1.1  roy .if ${MKPROFILE} != "no"
     64  1.1  roy SYMLINKS+=	libterminfo_p.a ${LIBDIR}/libtermcap_p.a
     65  1.1  roy SYMLINKS+=	libterminfo_p.a ${LIBDIR}/libtermlib_p.a
     66  1.1  roy .endif
     67  1.1  roy 
     68  1.1  roy .if ${MKPIC} != "no"
     69  1.1  roy 
     70  1.1  roy .if ${MKPICINSTALL} != "no"
     71  1.1  roy SYMLINKS+=	libterminfo_pic.a ${LIBDIR}/libtermcap_pic.a
     72  1.1  roy SYMLINKS+=	libterminfo_pic.a ${LIBDIR}/libtermlib_pic.a
     73  1.1  roy .endif
     74  1.1  roy 
     75  1.1  roy .if exists(${.CURDIR}/shlib_version)
     76  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
     77  1.1  roy 		${_LIBSODIR}/libtermcap.so.0.6
     78  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
     79  1.1  roy 		${_LIBSODIR}/libtermlib.so.0.6
     80  1.1  roy .if ${_LIBSODIR} != ${LIBDIR}
     81  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
     82  1.1  roy 		${LIBDIR}/libtermcap.so.0.6
     83  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
     84  1.1  roy 		${LIBDIR}/libtermlib.so.0.6
     85  1.1  roy .endif
     86  1.1  roy 
     87  1.1  roy .if (${OBJECT_FMT} == "ELF")
     88  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
     89  1.1  roy 		${_LIBSODIR}/libtermcap.so.0
     90  1.1  roy SYMLINKS+=	libterminfo.so ${_LIBSODIR}/libtermcap.so
     91  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
     92  1.1  roy 		${_LIBSODIR}/libtermlib.so.0
     93  1.1  roy SYMLINKS+=	libterminfo.so ${_LIBSODIR}/libtermlib.so
     94  1.1  roy .if ${_LIBSODIR} != ${LIBDIR}
     95  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
     96  1.1  roy 	${LIBDIR}/libtermcap.so.0
     97  1.1  roy SYMLINKS+=	libterminfo.so ${LIBDIR}/libtermcap.so
     98  1.1  roy SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
     99  1.1  roy 		${LIBDIR}/libtermlib.so.0
    100  1.1  roy SYMLINKS+=	libterminfo.so ${LIBDIR}/libtermlib.so
    101  1.1  roy .endif
    102  1.1  roy .endif
    103  1.1  roy .endif	# exists shlib_version
    104  1.1  roy 
    105  1.1  roy .endif	# ${MKPIC} != "no"
    106  1.1  roy 
    107  1.1  roy .include <bsd.lib.mk>
    108