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