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