-# $OpenBSD: bsd.sys.mk,v 1.11 2017/07/01 14:41:54 espie Exp $
+# $OpenBSD: bsd.sys.mk,v 1.12 2017/07/05 13:31:40 espie Exp $
# $NetBSD: bsd.sys.mk,v 1.2 1995/12/13 01:25:07 cgd Exp $
#
# Overrides used for OpenBSD source tree builds.
.endif
.if defined(PARALLEL)
-# Lex
-.l:
- ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
- ${LINK.c} -o ${.TARGET} ${.TARGET:R}.yy.c ${LDLIBS} -ll
- rm -f ${.TARGET:R}.yy.c
-.l.c:
- ${LEX.l} -o${.TARGET} ${.IMPSRC}
-.l.o:
- ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
- ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.yy.c
- rm -f ${.TARGET:R}.yy.c
- if test -f ${.TARGET:R}.d; then sed -i -e 's,${.TARGET:R}.yy.c,${.IMPSRC},' ${.TARGET:R}.d; fi
-
# Yacc
.y:
${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
-# $OpenBSD: sys.mk,v 1.78 2017/07/01 14:41:54 espie Exp $
+# $OpenBSD: sys.mk,v 1.79 2017/07/05 13:31:40 espie Exp $
# $NetBSD: sys.mk,v 1.27 1996/04/10 05:47:19 mycroft Exp $
# @(#)sys.mk 5.11 (Berkeley) 3/13/91
# Lex
.l:
- ${LEX.l} ${.IMPSRC}
- ${LINK.c} -o ${.TARGET} lex.yy.c ${LDLIBS} -ll
- rm -f lex.yy.c
+ ${LEX.l} -o lex.${.PREFIX}.c ${.IMPSRC}
+ ${LINK.c} -o ${.TARGET} lex.${.PREFIX}.c ${LDLIBS} -ll
+ rm -f lex.${.PREFIX}.c
.l.c:
- ${LEX.l} ${.IMPSRC}
- mv lex.yy.c ${.TARGET}
+ ${LEX.l} -o ${.TARGET} ${.IMPSRC}
.l.o:
- ${LEX.l} ${.IMPSRC}
- ${COMPILE.c} -o ${.TARGET} lex.yy.c
- rm -f lex.yy.c
- if test -f ${.TARGET:R}.d; then sed -i -e 's,lex.yy.c,${.IMPSRC},' ${.TARGET:R}.d; fi
+ ${LEX.l} -o lex.${.PREFIX}.c ${.IMPSRC}
+ ${COMPILE.c} -c lex.${.PREFIX}.c
+ rm -f lex.${.PREFIX}.c
+ if test -f ${.TARGET:R}.d; then sed -i -e 's,lex.${.PREFIX}.lex.c,${.IMPSRC},' ${.TARGET:R}.d; fi
# Yacc
.y: