]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/c++-rules.make
* Documentation/user/refman.itely: Compile fix for \mark #'(music ...).
[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 $(ALL_CXXFLAGS) -o $@ $<
5
6 $(outdir)/%.o: $(outdir)/%.cc
7         $(DO_O_DEP) $(CXX) -c $(ALL_CXXFLAGS) -o $@ $<
8
9 $(outdir)/%.lo: %.cc
10         $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
11
12 $(outdir)/%.lo: $(outdir)/%.cc
13         $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
14
15 $(outdir)/%.cc: %.yy
16         $(BISON) $<
17         @-mv -f $(*F).yy.tab.c $(*F).tab.cc  # bison < 1.30
18         mv $(*F).tab.cc $@
19
20 $(outdir)/%.hh: %.yy
21         $(BISON) -d $<
22         @-mv -f $(*F).yy.tab.h $(*F).tab.hh  # bison < 1.30
23         mv $(*F).tab.hh $@
24         rm -f $(*F).tab.c $(*F).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 $< > $@