X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Fc%2B%2B-rules.make;h=8de00bce07a8c80c06d4362b47a101f60d7db6e8;hb=06e603a47cce832f2ed45edc0dd4b2c168877703;hp=1c7a0cc0db3e7ac959aea503dd6982237ea79080;hpb=d4ccda2bdfd21f3694d8a37d4088f8fe9acd6de8;p=lilypond.git diff --git a/stepmake/stepmake/c++-rules.make b/stepmake/stepmake/c++-rules.make index 1c7a0cc0db..8de00bce07 100644 --- a/stepmake/stepmake/c++-rules.make +++ b/stepmake/stepmake/c++-rules.make @@ -1,21 +1,22 @@ -.SUFFIXES: .cc .o .hh .yy .ll .dep +.SUFFIXES: .cc .dep .hh .ll .o .so .yy -# compile rules: -# $(outdir)/%.o: %.cc - $(DO_CXX_COMPILE) + $(DO_O_DEP) $(CXX) -c $(ALL_CXXFLAGS) -o $@ $< $(outdir)/%.o: $(outdir)/%.cc - $(DO_CXX_COMPILE) + $(DO_O_DEP) $(CXX) -c $(ALL_CXXFLAGS) -o $@ $< -$(outdir)/%.cc: %.yy - $(BISON) $< - mv $<.tab.c $@ +$(outdir)/%.lo: %.cc + $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $< -$(outdir)/%.hh: %.yy - $(BISON) -d $< - mv $<.tab.h $@ - rm $<.tab.c # if this happens in the wrong order it triggers recompile of the .cc file +$(outdir)/%.lo: $(outdir)/%.cc + $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $< + +$(outdir)/%.cc $(outdir)/%.hh: %.yy + $(BISON) -d -o $(outdir)/$*.cc $< $(outdir)/%.cc: %.ll - $(FLEX) -Cfe -p -p -t $< > $@ + $(FLEX) -Cfe -p -p -o$@ $< + +$(outdir)/%-rc.o: $(outdir)/%.rc + $(WINDRES) $(WINDRES_FLAGS) -o$@ $<