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) \
38 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
41 if test x$(OS) = xWindows_NT; then make mcs.exe; else make -f makefile.gnu; fi
44 make -f makefile.gnu install
46 mcs.exe: cs-parser.cs $(COMPILER_SOURCES)
47 $(CSC) $(CSCFLAGS) /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
50 wc -l $(COMPILER_SOURCES)
53 echo --target exe -o mcs2.exe $(COMPILER_SOURCES) > response
56 $(TIME) $(RUNTIME) ./mcs.exe --target exe -o mcs2.exe $(COMPILER_SOURCES)
59 $(TIME) $(RUNTIME) ./mcs.exe $(XFLAGS) --target exe -o mcs2.exe $(COMPILER_SOURCES)
62 $(TIME) $(RUNTIME) ./mcs2.exe --target exe -o mcs3.exe $(COMPILER_SOURCES)
64 mcs-mono.exe: cs-parser.cs $(COMPILER_SOURCES)
65 mono --precompile @mcs.exe mcs.exe $(MCSFLAGS) --fatal --timestamp -o mcs-mono.exe $(COMPILER_SOURCES)
67 mint $(MINTFLAGS) ./mcs.exe $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
69 mcs-mono2.exe: cs-parser.cs $(COMPILER_SOURCES)
70 mono mcs.exe --timestamp $(MCSFLAGS) -o mcs-mono2.exe -g $(COMPILER_SOURCES)
72 mcs-mono3.exe: cs-parser.cs $(COMPILER_SOURCES)
73 mono --debug mcs-mono2.exe -o mcs-mono3.exe -g $(COMPILER_SOURCES)
75 mcs-mono4.exe: cs-parser.cs $(COMPILER_SOURCES)
76 mono --debug mcs-mono3.exe -o mcs-mono4.exe -g $(COMPILER_SOURCES)
79 mcs $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
82 ls -l mcs2.exe mcs3.exe
85 $(CSC) $(CSCFLAGS) /doc:docs.xml /nowarn:1591 /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
92 $(CSC) /optimize+ /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
94 old: test-tokenizer.exe
95 test-tokenizer.exe: $(TEST_TOKENIZER_SOURCES)
96 $(CSC) /target:exe /out:test-tokenizer.exe $(TEST_TOKENIZER_SOURCES)
99 perl -pe 's/\015//' < cs-parser.jay > x.y
100 bison --debug --verbose x.y
102 cs-parser.cs: cs-parser.jay
103 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > cs-parser.cs
106 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay | grep -v '#line' > cs-parser.cs
108 #statementCollection.cs: X-Collection.cs
109 # sed -e "s/@CONTAINEE@/Statement/g" -e "s/@arrayname@/statements/g" < X-Collection.cs > statementCollection.cs
111 #parameterCollection.cs: X-Collection.cs
112 # sed -e "s/@CONTAINEE@/Parameter/g" -e "s/@arrayname@/parameters/g" < X-Collection.cs > parameterCollection.cs
115 rm -f mcs.exe mcs2.exe mcs3.exe cs-parser.cs y.output mcs.pdb *~ .*~ mcs.log response