Files
openfoam/wmake/rules/General/lemon
Mark Olesen eaa65913f4 CONFIG: combine flex/flex++ rules (minor cleanup)
- generate .cc (instead of .C) intermediate files, consistent with how
  we manage other generated code and makes them less case sensitive
2025-03-19 12:10:12 +01:00

20 lines
807 B
Plaintext

#------------------------------------------------------------------------------
SUFFIXES += .ly .lyy .lyy-m4
# Lemon via wrapper, compile with C
lytoo = $E $(call QUIET_MESSAGE,lemon,$(<F)) \
$(WM_SCRIPTS)/wrap-lemon -d$(@D) $< && \
$(WM_SCHEDULER) $(cc) $(cFLAGS) -c $(@D)/$(*F).c -o $@
# Lemon via wrapper, compile with C++
lyytoo = $E $(call QUIET_MESSAGE,lemon,$(<F)) \
$(WM_SCRIPTS)/wrap-lemon -d$(@D) -ecc $< && \
$(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $(@D)/$(*F).cc -o $@
# Retains intermediate m4-filtered files (-no-tmp to suppress)
lyy-m4too = $E $(call QUIET_MESSAGE,lemon-m4,$(<F)) \
$(WM_SCRIPTS)/wrap-lemon -d$(@D) -ecc $< && \
$(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $(@D)/$(*F).cc -o $@
#------------------------------------------------------------------------------