09a0767aa9
-dynamic-linker=/libexec/ld.elf_so) if the BINDIR of the program being built is /bin or /sbin. The reason we do this is because now all programs *except* those in /bin and /sbin (i.e. the "special cases") match the default the compiler uses, which is what is used for things in e.g. xsrc, pkgsrc, and other random 3rd party programs. This is done by decoupling where a shlib is installed from how it is located. Two new variables, SHLIBINSTALLDIR and SHLINKINSTALLDIR, contain the former information, and key off MKDYNAMICROOT only. SHLIBDIR and SHLINKDIR contain the latter, and key off MKDYNAMICROOT and BINDIR. The SHLIBINSTALLDIR, SHLIBDIR, _LIBSODIR, SHLINKINSTALLDIR, and SHLINKDIR parameters are moved to a new <bsd.shlib.mk>; see bsd.README for usage details.
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.28 2002/09/27 21:37:54 thorpej Exp $
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
|
|
USE_SHLIBDIR= yes
|
|
|
|
LIB= termcap
|
|
CPPFLAGS+=-I${.CURDIR} -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 \
|
|
termcap.3 t_getent.3 termcap.3 t_getflag.3 termcap.3 t_getnum.3 \
|
|
termcap.3 t_getstr.3 termcap.3 t_goto.3 termcap.3 t_puts.3 \
|
|
termcap.3 t_freent.3
|
|
INCS= termcap.h
|
|
INCSDIR=/usr/include
|
|
|
|
.include <bsd.own.mk>
|
|
.include <bsd.shlib.mk>
|
|
|
|
.if ${MKLINKLIB} != "no"
|
|
SYMLINKS+= libtermcap.a ${LIBDIR}/libtermlib.a
|
|
.endif
|
|
|
|
.if ${MKPROFILE} != "no"
|
|
SYMLINKS+= libtermcap_p.a ${LIBDIR}/libtermlib_p.a
|
|
.endif
|
|
|
|
.if ${MKPIC} != "no"
|
|
|
|
.if ${MKPICINSTALL} != "no"
|
|
SYMLINKS+= libtermcap_pic.a ${LIBDIR}/libtermlib_pic.a
|
|
.endif
|
|
|
|
.if exists(${.CURDIR}/shlib_version)
|
|
SYMLINKS+= libtermcap.so.${SHLIB_FULLVERSION} \
|
|
${_LIBSODIR}/libtermlib.so.${SHLIB_FULLVERSION}
|
|
.if ${_LIBSODIR} != ${LIBDIR}
|
|
SYMLINKS+= libtermcap.so.${SHLIB_FULLVERSION} \
|
|
${LIBDIR}/libtermlib.so.${SHLIB_FULLVERSION}
|
|
.endif
|
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
|
SYMLINKS+= libtermcap.so.${SHLIB_MAJOR} \
|
|
${_LIBSODIR}/libtermlib.so.${SHLIB_MAJOR}
|
|
SYMLINKS+= libtermcap.so ${_LIBSODIR}/libtermlib.so
|
|
.if ${_LIBSODIR} != ${LIBDIR}
|
|
SYMLINKS+= libtermcap.so.${SHLIB_MAJOR} \
|
|
${LIBDIR}/libtermlib.so.${SHLIB_MAJOR}
|
|
SYMLINKS+= libtermcap.so ${LIBDIR}/libtermlib.so
|
|
.endif
|
|
.endif
|
|
.endif # exists shlib_version
|
|
|
|
.endif # ${MKPIC} != "no"
|
|
|
|
.include <bsd.lib.mk>
|