freebsd-dev/usr.bin/lex/lib/Makefile
Ruslan Ermilov 4f6d329f1e - Convert NO_INSTALLLIB option to a new syntax: makefiles should
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
2007-10-20 19:01:50 +00:00

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>