2 CSCFLAGS=/nologo /debug+ /debug:full /optimize
6 COMMON_SOURCES = cs-parser.cs cs-tokenizer.cs tree.cs location.cs
12 driver.cs $(COMMON_SOURCES) \
36 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
39 if test x$(OS) = xWindows_NT; then make mcs.exe; else make -f makefile.gnu; fi
42 make -f makefile.gnu install
44 mcs.exe: cs-parser.cs $(COMPILER_SOURCES)
45 $(CSC) $(CSCFLAGS) /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
48 echo --target exe -o mcs2.exe $(COMPILER_SOURCES) > response
51 $(TIME) $(RUNTIME) ./mcs.exe --target exe -o mcs2.exe $(COMPILER_SOURCES)
54 $(TIME) $(RUNTIME) ./mcs.exe $(XFLAGS) --target exe -o mcs2.exe $(COMPILER_SOURCES)
57 $(TIME) $(RUNTIME) ./mcs2.exe --target exe -o mcs3.exe $(COMPILER_SOURCES)
59 mcs-mono.exe: cs-parser.cs $(COMPILER_SOURCES)
60 mono --precompile @mcs.exe mcs.exe $(MCSFLAGS) --fatal --timestamp -o mcs-mono.exe $(COMPILER_SOURCES)
62 mint $(MINTFLAGS) ./mcs.exe $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
64 mcs-mono2.exe: cs-parser.cs $(COMPILER_SOURCES)
65 mono mcs.exe --timestamp $(MCSFLAGS) -o mcs-mono2.exe -g $(COMPILER_SOURCES)
67 mcs-mono3.exe: cs-parser.cs $(COMPILER_SOURCES)
68 mono --debug mcs-mono2.exe -o mcs-mono3.exe -g $(COMPILER_SOURCES)
70 mcs-mono4.exe: cs-parser.cs $(COMPILER_SOURCES)
71 mono --debug mcs-mono3.exe -o mcs-mono4.exe -g $(COMPILER_SOURCES)
74 mcs $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
77 ls -l mcs2.exe mcs3.exe
80 $(CSC) $(CSCFLAGS) /doc:docs.xml /nowarn:1591 /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
87 $(CSC) /optimize+ /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
89 old: test-tokenizer.exe
90 test-tokenizer.exe: $(TEST_TOKENIZER_SOURCES)
91 $(CSC) /target:exe /out:test-tokenizer.exe $(TEST_TOKENIZER_SOURCES)
94 perl -pe 's/\015//' < cs-parser.jay > x.y
95 bison --debug --verbose x.y
97 cs-parser.cs: cs-parser.jay
98 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > cs-parser.cs
101 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay | grep -v '#line' > cs-parser.cs
103 #statementCollection.cs: X-Collection.cs
104 # sed -e "s/@CONTAINEE@/Statement/g" -e "s/@arrayname@/statements/g" < X-Collection.cs > statementCollection.cs
106 #parameterCollection.cs: X-Collection.cs
107 # sed -e "s/@CONTAINEE@/Parameter/g" -e "s/@arrayname@/parameters/g" < X-Collection.cs > parameterCollection.cs
110 rm -f mcs.exe mcs2.exe mcs3.exe cs-parser.cs y.output mcs.pdb *~ .*~ mcs.log response