openfoam/wmake/rules/General/yacc
Bernhard Gschaider 762c095f4e COMP: WM_SCHEDULER breaks compilation (fixes #2439)
- only wrap compiler calls (not things like flex/bison)
- avoid single quoted '&&' (causes syntax errors)

STYLE: report WM_COMPILE_CONTROL value in top-level Allwmake
2022-05-10 21:15:39 +02:00

14 lines
416 B
Plaintext

SUFFIXES += .y .Y
ytoo = $E $(call QUIET_MESSAGE,yacc,$(<F)) \
yacc -v -d $< && \
mv y.tab.c $(@D)/$(<F).c && \
mv y.tab.h $(@D)/parser.h && \
$(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $(@D)/$(<F).c -o $@
Ytoo = $E $(call QUIET_MESSAGE,yacc,$(<F)) \
yacc -v -d $< && \
mv y.tab.c $(@D)/$(<F).C && \
mv y.tab.h $(@D)/parser.H && \
$(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $(@D)/$(<F).C -o $@