]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/c++-rules.make
patch::: 1.5.26.jcn1
[lilypond.git] / stepmake / stepmake / c++-rules.make
1 .SUFFIXES: .cc .dep .hh .ll .o .so .yy
2
3 $(outdir)/%.o: %.cc
4         $(DO_O_DEP) $(CXX) -c $(CXXFLAGS) -o $@ $<
5
6 $(outdir)/%.o: $(outdir)/%.cc
7         $(DO_O_DEP) $(CXX) -c $(CXXFLAGS) -o $@ $<
8
9 $(outdir)/%.lo: %.cc
10         $(DO_LO_DEP) $(CXX) -c $(CXXFLAGS) $(PIC_FLAGS) -o $@ $<
11
12 $(outdir)/%.lo: $(outdir)/%.cc
13         $(DO_LO_DEP) $(CXX) -c $(CXXFLAGS) $(PIC_FLAGS) -o $@ $<
14
15 $(outdir)/%.cc: %.yy
16         $(BISON) $<
17         @-mv -f parser.tab.c parser.tab.cc  # bison < 1.30
18         mv parser.tab.cc $@
19
20 $(outdir)/%.hh: %.yy
21         $(BISON) -d $<
22         @-mv -f parser.tab.h parser.tab.hh  # bison < 1.30
23         mv parser.tab.hh $@
24         rm -f parser.tab.c parser.tab.cc        # if this happens in the wrong order it triggers recompile of the .cc file 
25
26 $(outdir)/%.cc: %.ll
27         $(FLEX) -Cfe -p -p -t $< > $@