COMP: update make rules for lemon, add helper infrastructure for ragel

This commit is contained in:
Mark Olesen
2019-09-27 11:05:35 +02:00
committed by Andrew Heather
parent f7528a2ac5
commit 4a6cd8f194
5 changed files with 189 additions and 16 deletions

View File

@ -1,9 +1,9 @@
SUFFIXES += .ly .lyy
lytoo = $E $(call QUIET_MESSAGE,lemon,$(<F)) \
$(WM_SCHEDULER) $(WM_SCRIPTS)/wrap-lemon -q $< $(AND) \
$(cc) $(cFLAGS) -c $(@D)/$(<F).c -o $@
$(WM_SCHEDULER) $(WM_SCRIPTS)/wrap-lemon -d$(@D) $< $(AND) \
$(cc) $(cFLAGS) -c $(@D)/$(*F).c -o $@
lyytoo = $E $(call QUIET_MESSAGE,lemon,$(<F)) \
$(WM_SCHEDULER) $(WM_SCRIPTS)/wrap-lemon -q $< $(AND) \
$(CC) $(c++FLAGS) -c $(@D)/$(<F).cc -o $@
$(WM_SCHEDULER) $(WM_SCRIPTS)/wrap-lemon -d$(@D) -ecc $< $(AND) \
$(CC) $(c++FLAGS) -c $(@D)/$(*F).cc -o $@

View File

@ -8,7 +8,7 @@ include $(GENERAL_RULES)/flex++
## include $(GENERAL_RULES)/byacc
## include $(GENERAL_RULES)/btyacc++
include $(GENERAL_RULES)/bison
## include $(GENERAL_RULES)/lemon
include $(GENERAL_RULES)/lemon
## include $(GENERAL_RULES)/ragel
include $(GENERAL_RULES)/moc
include $(GENERAL_RULES)/X