xref: /netbsd-src/external/bsd/flex/lib/Makefile (revision d5870d0fb296bcc5cdc4672865104714b6739d35)
1*d5870d0fSnjoly#	$NetBSD: Makefile,v 1.2 2009/10/28 11:20:07 njoly Exp $
278b8b34eSchristos
378b8b34eSchristosNOPIC=		# defined
478b8b34eSchristos
578b8b34eSchristos.include <bsd.own.mk>
678b8b34eSchristos
778b8b34eSchristosLIB=		l
878b8b34eSchristosSRCS=		libmain.c libyywrap.c
978b8b34eSchristos
1078b8b34eSchristos.if ${MKSTATICLIB} != "no"
1178b8b34eSchristosLINKS=		${LIBDIR}/libl.a ${LIBDIR}/libfl.a
1278b8b34eSchristos.endif
1378b8b34eSchristos
1478b8b34eSchristos.PATH:		${NETBSDSRCDIR}/usr.bin/lex
1578b8b34eSchristos
1678b8b34eSchristos.if ${MKPROFILE} != "no"
1778b8b34eSchristosLINKS+=		${LIBDIR}/libl_p.a ${LIBDIR}/libfl_p.a
1878b8b34eSchristos.endif
1978b8b34eSchristos
20*d5870d0fSnjoly.if ${MKDEBUGLIB} != "no"
2178b8b34eSchristosLINKS+=		${LIBDIR}/libl_g.a ${LIBDIR}/libfl_g.a
2278b8b34eSchristos.endif
2378b8b34eSchristos
2478b8b34eSchristos.include <bsd.lib.mk>
25