]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/c++-rules.make
Doc-es: various updates.
[lilypond.git] / stepmake / stepmake / c++-rules.make
index 83b54258e0cbcf52fd25be9e72cd88c7de796710..8de00bce07a8c80c06d4362b47a101f60d7db6e8 100644 (file)
@@ -1,24 +1,22 @@
-# title           C++ rules
-# file    make/C++_rules.make
+.SUFFIXES: .cc .dep .hh .ll .o .so .yy
 
-.SUFFIXES: .cc .o .hh .yy .ll  .dep
-
-# 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)/%.lo: %.cc
+       $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
 
-$(outdir)/%.cc: %.yy
-       $(BISON) $<
-       mv $<.tab.c $@
+$(outdir)/%.lo: $(outdir)/%.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)/%.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$@ $<