]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/c++-rules.make
patch::: 1.5.10.jcn3
[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 $<.tab.c $@
18
19 $(outdir)/%.hh: %.yy
20         $(BISON) -d $<
21         mv $<.tab.h $@
22         rm $<.tab.c             # if this happens in the wrong order it triggers recompile of the .cc file 
23
24 $(outdir)/%.cc: %.ll
25         $(FLEX) -Cfe -p -p -t $< > $@