ref: 31d5350f573cf2b2c176082ae26de473ee1f885c
parent: 5602844b7d3261133acdbf16462d91177338850f
author: Ori Bernstein <[email protected]>
date: Sat Jun 30 14:39:43 EDT 2012
Override the default yacc rule for make. This prevents yacc from being called multiple times.
--- a/mk/lexyacc.mk
+++ b/mk/lexyacc.mk
@@ -1,9 +1,7 @@
NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))
-%.o: %.y
+%.c: %.y
yacc -dt -o$*.c $<
- $(CC) -c $(NECFLAGS) $*.c
-%.o: %.l
+%.c: %.l
flex -o$*.c $<
- $(CC) -c $(NECFLAGS) $*.c