2 CSCFLAGS=/nologo /debug+ /debug:full /optimize
6 COMMON_SOURCES = cs-parser.cs cs-tokenizer.cs tree.cs location.cs
11 driver.cs $(COMMON_SOURCES) \
35 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
38 if test x$(OS) = xWindows_NT; then make mcs.exe; else make -f makefile.gnu; fi
41 make -f makefile.gnu install
43 mcs.exe: cs-parser.cs $(COMPILER_SOURCES)
44 $(CSC) $(CSCFLAGS) /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
47 echo --target exe -o mcs2.exe $(COMPILER_SOURCES) > response
50 $(TIME) $(RUNTIME) ./mcs.exe --target exe -o mcs2.exe $(COMPILER_SOURCES)
53 $(TIME) $(RUNTIME) ./mcs.exe $(XFLAGS) --target exe -o mcs2.exe $(COMPILER_SOURCES)
56 $(TIME) $(RUNTIME) ./mcs2.exe --target exe -o mcs3.exe $(COMPILER_SOURCES)
58 mcs-mono.exe: cs-parser.cs $(COMPILER_SOURCES)
59 mono --precompile @mcs.exe mcs.exe $(MCSFLAGS) --fatal --timestamp -o mcs-mono.exe $(COMPILER_SOURCES)
61 mint $(MINTFLAGS) ./mcs.exe $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
63 mcs-mono2.exe: cs-parser.cs $(COMPILER_SOURCES)
64 mono mcs.exe --timestamp $(MCSFLAGS) -o mcs-mono2.exe -g $(COMPILER_SOURCES)
66 mcs-mono3.exe: cs-parser.cs $(COMPILER_SOURCES)
67 mono --debug mcs-mono2.exe -o mcs-mono3.exe -g $(COMPILER_SOURCES)
69 mcs-mono4.exe: cs-parser.cs $(COMPILER_SOURCES)
70 mono --debug mcs-mono3.exe -o mcs-mono4.exe -g $(COMPILER_SOURCES)
73 mcs $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
76 ls -l mcs2.exe mcs3.exe
79 $(CSC) $(CSCFLAGS) /doc:docs.xml /nowarn:1591 /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
86 $(CSC) /optimize+ /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
88 old: test-tokenizer.exe
89 test-tokenizer.exe: $(TEST_TOKENIZER_SOURCES)
90 $(CSC) /target:exe /out:test-tokenizer.exe $(TEST_TOKENIZER_SOURCES)
93 perl -pe 's/\015//' < cs-parser.jay > x.y
94 bison --debug --verbose x.y
96 cs-parser.cs: cs-parser.jay
97 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > cs-parser.cs
100 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay | grep -v '#line' > cs-parser.cs
102 #statementCollection.cs: X-Collection.cs
103 # sed -e "s/@CONTAINEE@/Statement/g" -e "s/@arrayname@/statements/g" < X-Collection.cs > statementCollection.cs
105 #parameterCollection.cs: X-Collection.cs
106 # sed -e "s/@CONTAINEE@/Parameter/g" -e "s/@arrayname@/parameters/g" < X-Collection.cs > parameterCollection.cs
109 rm -f mcs.exe cs-parser.cs y.output mcs.pdb *~ .*~ mcs.log response