]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/c-rules.make
Web: rename web/examples to web/ly-examples
[lilypond.git] / stepmake / stepmake / c-rules.make
index fa16d4f6ee2f67c504b6968dff3df7fe1b156ff0..620275baa177e67313535571393c21d85e90e205 100644 (file)
@@ -1,16 +1,16 @@
 .SUFFIXES: .c .dep .h .l .lo .o .so .y
 
 $(outdir)/%.o: %.c
-       $(DO_O_DEP) $(CC) -c $(CFLAGS) -o $@ $<
+       $(DO_O_DEP) $(CC) -c $(ALL_CFLAGS) -o $@ $<
 
 $(outdir)/%.o: $(outdir)/%.c
-       $(DO_O_DEP) $(CC) -c $(CFLAGS) -o $@ $<
+       $(DO_O_DEP) $(CC) -c $(ALL_CFLAGS) -o $@ $<
 
 $(outdir)/%.lo: %.c
-       $(DO_LO_DEP) $(CC) -c $(CFLAGS) $(PIC_FLAGS) -o $@ $<
+       $(DO_LO_DEP) $(CC) -c $(ALL_CFLAGS) $(PIC_FLAGS) -o $@ $<
 
 $(outdir)/%.lo: %.c
-       $(DO_LO_DEP) $(CC) -c $(CFLAGS) $(PIC_FLAGS) -o $@ $<
+       $(DO_LO_DEP) $(CC) -c $(ALL_CFLAGS) $(PIC_FLAGS) -o $@ $<
 
 $(outdir)/%.c: %.y
        $(BISON) $<
@@ -19,10 +19,12 @@ $(outdir)/%.c: %.y
 $(outdir)/%.h: %.y
        $(BISON) -d $<
        mv $(*F).tab.h $@
-       rm -f $(*F).tab.c # if this happens in the wrong order it triggers recompile of the .cc file 
+       rm -f $(*F).tab.c # if this happens in the wrong order it triggers recompile of the .cc file
 
 $(outdir)/%.c: %.l
-       $(FLEX) -Cfe -p -p -t $< > $@
+       $(FLEX) -Cfe -p -p -o$@ $<
 # could be faster:
-#      $(FLEX) -8 -Cf -t $< > $@
+#      $(FLEX) -8 -Cf -o$@ $<
 
+$(outdir)/%.rc.o: $(outdir)/%.rc
+       $(WINDRES) $(WINDRES_FLAGS) -o$@ $<