summaryrefslogtreecommitdiff
path: root/examples/gfcc/compiler/makefile
diff options
context:
space:
mode:
authoraarne <unknown>2004-09-23 14:41:42 +0000
committeraarne <unknown>2004-09-23 14:41:42 +0000
commit2c60a2d82a0d7b90924e7dbbcacf36afb8549d17 (patch)
tree0a04734e741c294cb9f58cfdcafa2ff2b55894dd /examples/gfcc/compiler/makefile
parentd5b4230d6dbee8c03eedf8d181dfa2badf1a954b (diff)
Ints n
Diffstat (limited to 'examples/gfcc/compiler/makefile')
-rw-r--r--examples/gfcc/compiler/makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/gfcc/compiler/makefile b/examples/gfcc/compiler/makefile
new file mode 100644
index 000000000..754f77f51
--- /dev/null
+++ b/examples/gfcc/compiler/makefile
@@ -0,0 +1,12 @@
+GF=gf+
+SRC=../
+
+all: compiler
+
+compiler:
+ echo "pm | wf Imper.gfcm ;; pg -lang=ImperC -printer=lbnf | wf ImperC.tmp" | $(GF) $(SRC)ImperC.gf $(SRC)ImperJVM.gf
+ echo "entrypoints Program, Stm, Exp ;" >entry.tmp
+ cat entry.tmp ImperC.tmp >ImperC.cf
+ bnfc -m -prof ImperC.cf
+ make -f Makefile
+ rm *.tmp