4f6d329f1e
test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB. The old NO_INSTALLLIB is still supported as several makefiles set it. - While here, fix an install when instructed not to install libs (usr.bin/lex/lib/Makefile). PR: bin/114200 Submitted by: Henrik Brix Andersen
21 lines
362 B
Makefile
21 lines
362 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= ln
|
|
SRCS= libmain.c libyywrap.c
|
|
NO_PIC=
|
|
|
|
.if ${MK_INSTALLLIB} != "no"
|
|
LINKS= ${LIBDIR}/libln.a ${LIBDIR}/libl.a
|
|
LINKS+= ${LIBDIR}/libln.a ${LIBDIR}/libfl.a
|
|
.endif
|
|
|
|
.if ${MK_PROFILE} != "no"
|
|
LINKS+= ${LIBDIR}/libln_p.a ${LIBDIR}/libl_p.a
|
|
LINKS+= ${LIBDIR}/libln_p.a ${LIBDIR}/libfl_p.a
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|
|
|