aboutsummaryrefslogtreecommitdiff
path: root/tools/bison++/Example/Makefile
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-11-19 13:18:48 +0000
committermarha <marha@users.sourceforge.net>2010-11-19 13:18:48 +0000
commit12f606ce06ef926f366a03079c5e3107c23f18af (patch)
tree28d7be4328bca9c31c1ab0f7cb5924c196be23a0 /tools/bison++/Example/Makefile
parent773752eab55047c33bad0d88006bb69f5c601502 (diff)
downloadvcxsrv-12f606ce06ef926f366a03079c5e3107c23f18af.tar.gz
vcxsrv-12f606ce06ef926f366a03079c5e3107c23f18af.tar.bz2
vcxsrv-12f606ce06ef926f366a03079c5e3107c23f18af.zip
Added tool bison++-1.21.11
Diffstat (limited to 'tools/bison++/Example/Makefile')
-rw-r--r--tools/bison++/Example/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/bison++/Example/Makefile b/tools/bison++/Example/Makefile
new file mode 100644
index 000000000..006b58f49
--- /dev/null
+++ b/tools/bison++/Example/Makefile
@@ -0,0 +1,34 @@
+
+.SUFFIXES : .cc .y .l $(SUFFIXES)
+
+.cc.o :
+ g++ -g -I . -I$(CENTERCCLIBDIR)/incl -c $*.cc
+
+.y.cc :
+ bison++ -d -o $*.cc -h $*.h $*.y
+.l.cc :
+ flex++ -o$*.cc $*.l
+.y.h :
+ bison++ -d -o $*.cc -h $*.h $*.y
+.l.h :
+ flex++ -o$*.cc $*.l
+
+# COMPILER SAMPLE
+
+MyCompiler.o : MyCompiler.cc MyParser.h MyScanner.h
+
+MyParser.o : MyParser.cc MyParser.h
+
+MyScanner.o : MyScanner.cc MyScanner.h MyParser.h
+
+MyParser.cc : MyParser.y
+
+MyScanner.cc : MyScanner.l
+
+MyParser.h : MyParser.y
+
+MyScanner.h : MyScanner.l
+
+compiler : MyCompiler.o MyParser.o MyScanner.o
+ g++ -o $@ MyCompiler.o MyParser.o MyScanner.o
+