]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.4
authorfred <fred>
Sat, 25 Jul 1998 12:13:31 +0000 (12:13 +0000)
committerfred <fred>
Sat, 25 Jul 1998 12:13:31 +0000 (12:13 +0000)
stepmake/stepmake/c-rules.make [new file with mode: 0644]

diff --git a/stepmake/stepmake/c-rules.make b/stepmake/stepmake/c-rules.make
new file mode 100644 (file)
index 0000000..a2bf496
--- /dev/null
@@ -0,0 +1,26 @@
+# stepmake/C_rules.make
+
+.SUFFIXES: .c .o .h .y .l .dep
+
+$(outdir)/%.o: %.c
+       $(DO_C_COMPILE)
+
+$(outdir)/%.o: $(outdir)/%.c
+       $(DO_C_COMPILE)
+
+$(outdir)/%.c: %.y
+       $(BISON) $<
+#      mv $<.tab.c $@
+       mv parser.tab.c $@
+
+$(outdir)/%.h: %.y
+       $(BISON) -d $<
+#      mv $<.tab.h $@
+       mv parser.tab.h $@
+       mv parser.tab.c $(basename $@).c
+
+$(outdir)/%.c: %.l
+       $(FLEX) -Cfe -p -p -t $< > $@
+# could be faster:
+#      $(FLEX) -8 -Cf -t $< > $@
+