- add additional rule (ending '.ll') for the combination of flex for C-code but compiling the result as C++. This can be needed for re-entrant parsers. - update bison rule to handle renaming of skeleton files. Use a wrap-bison script to manage this.
12 lines
424 B
Plaintext
12 lines
424 B
Plaintext
SUFFIXES += .L .ll
|
|
|
|
# Use C++-aware Flex
|
|
Ltoo = $E $(call QUIET_MESSAGE,flex++,$(<F)) \
|
|
$(WM_SCHEDULER) flex -+ -f -o $(@D)/$(<F).C $< $(AND) \
|
|
$(CC) $(c++FLAGS) $(c++LESSWARN) -c $(@D)/$(<F).C -o $@
|
|
|
|
# Use regular (C) Flex, but compile result as C++
|
|
lltoo = $E $(call QUIET_MESSAGE,flex,$(<F)) \
|
|
$(WM_SCHEDULER) flex -f -o $(@D)/$(<F).cc $< $(AND) \
|
|
$(CC) $(c++FLAGS) $(c++LESSWARN) -c $(@D)/$(<F).cc -o $@
|