Checking in stuff
[IRC.git] / Robust / cup / winnt / makefile
diff --git a/Robust/cup/winnt/makefile b/Robust/cup/winnt/makefile
new file mode 100644 (file)
index 0000000..653f207
--- /dev/null
@@ -0,0 +1,51 @@
+#\r
+# Windows NT makefile for java_cup\r
+#      by Todd Knoblock, 28 January 1998.\r
+#\r
+# To run, type "nmake all" from the directory containing the make file.\r
+# Tested under nmake version 1.62.7022\r
+\r
+JVC=jvc\r
+# -x means disable extensions\r
+# -g means include debug information\r
+# -w2 means warning level 2.\r
+#     Unfornately, anything above warning level 2 is noisy\r
+JVCFLAGS= -x -g -w2\r
+JVIEW=jview\r
+\r
+.SUFFIXES: .java .class\r
+\r
+.java.class:\r
+       $(JVC) $(JVCFLAGS) $<\r
+       \r
+all: runtime simple_calc java_cup test\r
+\r
+java_cup: java_cup\*.class\r
+\r
+runtime: java_cup\runtime\*.class\r
+\r
+simple_calc:   java_cup\simple_calc\sym.java \\r
+               java_cup\simple_calc\parser.java \\r
+               java_cup\simple_calc\*.class\r
+\r
+\r
+java_cup\simple_calc\sym.java: java_cup java_cup\simple_calc\parser.cup \r
+       $(JVIEW) java_cup.Main  < java_cup\simple_calc\parser.cup\r
+       @del -f -q java_cup\simple_calc\sym.java >nul 2>nul \r
+       @del -f -q java_cup\simple_calc\parser.java >nul 2>nul \r
+       move sym.java java_cup\simple_calc\ \r
+       move parser.java java_cup\simple_calc\ \r
+\r
+java_cup\simple_calc\parser.java: java_cup\simple_calc\sym.java\r
+\r
+clean:\r
+       @del -f -q java_cup\simple_calc\sym.java >nul 2>nul \r
+       @del -f -q java_cup\simple_calc\parser.java >nul 2>nul \r
+        @for %d in (java_cup java_cup\runtime java_cup\simple_calc) do \\r
+               @pushd %d \\r
+               & del -f -q *.class >nul 2>nul \\r
+               & popd\r
+\r
+test:  simple_calc\r
+       @echo Executing the demo program.  Answer should be 5050.\r
+       echo 101*100/2; | $(JVIEW) java_cup.simple_calc.Main\r