]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/c++-rules.make
patch::: 1.5.9.jcn3
[lilypond.git] / stepmake / stepmake / c++-rules.make
1 .SUFFIXES: .cc .o .hh .yy .ll  .dep
2
3 # compile rules:
4 #
5 $(outdir)/%.o: %.cc
6         $(DO_CXX_COMPILE)
7
8 $(outdir)/%.o: $(outdir)/%.cc
9         $(DO_CXX_COMPILE)
10
11 $(outdir)/%.cc: %.yy
12         $(BISON) $<
13         mv $<.tab.c $@
14
15 $(outdir)/%.hh: %.yy
16         $(BISON) -d $<
17         mv $<.tab.h $@
18         rm $<.tab.c             # if this happens in the wrong order it triggers recompile of the .cc file 
19
20 $(outdir)/%.cc: %.ll
21         $(FLEX) -Cfe -p -p -t $< > $@