cvs commit: src/gnu/usr.bin/gdb/gdb

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Thu Nov 18 08:20:29 PST 2004


On Thu, Nov 18, 2004 at 01:02:52PM +0100, Joerg Sonnenberger wrote:
> On Thu, Nov 18, 2004 at 12:42:00PM +0900, YONETANI Tomokazu wrote:
> > The question is, whether we can change .y.c rule in sys.mk to make it -jN
> > (as pointed out by Brad).
> 
> We can't if YFLAGS include -d. Because our yacc has a slightly surprising
> meaning of the -o option. It does set the name of the c-file and ALSO alters
> the prefix for the headre file.

Ah.. yuck. What about this, then?

-# XXX not -j safe
+# XXX hopefully -j safe..
. y.c:
-	${YACC} ${YFLAGS} ${.IMPSRC}
-	mv y.tab.c ${.TARGET}
+	${YACC} ${YFLAGS} -b $$$$ ${.IMPSRC}
+	mv $$$$.tab.c ${.TARGET}
+.if !empty(${YFLAGS:M-d})
+	mv $$$$.tab.h y.tab.h
+.endif





More information about the Commits mailing list