
- 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
12 lines
416 B
Plaintext
12 lines
416 B
Plaintext
SUFFIXES += .L .ll
|
|
|
|
# Use C++-aware Flex
|
|
Ltoo = $E $(call QUIET_MESSAGE,flex++,$(<F)) \
|
|
flex -+ -f -o $(@D)/$(<F).C $< && \
|
|
$(WM_SCHEDULER) $(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)) \
|
|
flex -f -o $(@D)/$(<F).cc $< && \
|
|
$(WM_SCHEDULER) $(CC) $(c++FLAGS) $(c++LESSWARN) -c $(@D)/$(<F).cc -o $@
|