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) \
39 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
42 if test x$(OS) = xWindows_NT; then make mcs.exe; else make -f makefile.gnu; fi
45 make -f makefile.gnu install
47 mcs.exe: cs-parser.cs $(COMPILER_SOURCES)
48 $(CSC) $(CSCFLAGS) /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
51 wc -l $(COMPILER_SOURCES)
54 echo --target exe -o mcs2.exe $(COMPILER_SOURCES) > response
57 $(TIME) $(RUNTIME) ./mcs.exe --target exe -o mcs2.exe $(COMPILER_SOURCES)
60 $(TIME) $(RUNTIME) ./mcs.exe $(XFLAGS) --target exe -o mcs2.exe $(COMPILER_SOURCES)
63 $(TIME) $(RUNTIME) ./mcs2.exe --target exe -o mcs3.exe $(COMPILER_SOURCES)
65 mcs-mono.exe: cs-parser.cs $(COMPILER_SOURCES)
66 mono --precompile @mcs.exe mcs.exe $(MCSFLAGS) --fatal --timestamp -o mcs-mono.exe $(COMPILER_SOURCES)
68 mint $(MINTFLAGS) ./mcs.exe $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
70 mcs-mono2.exe: cs-parser.cs $(COMPILER_SOURCES)
71 mono mcs.exe --timestamp $(MCSFLAGS) -o mcs-mono2.exe -g $(COMPILER_SOURCES)
73 mcs-mono3.exe: cs-parser.cs $(COMPILER_SOURCES)
74 mono --debug mcs-mono2.exe -o mcs-mono3.exe -g $(COMPILER_SOURCES)
76 mcs-mono4.exe: cs-parser.cs $(COMPILER_SOURCES)
77 mono --debug mcs-mono3.exe -o mcs-mono4.exe -g $(COMPILER_SOURCES)
80 mcs $(MCSFLAGS) --target exe -o mcs4.exe $(COMPILER_SOURCES)
83 ls -l mcs2.exe mcs3.exe
86 $(CSC) $(CSCFLAGS) /doc:docs.xml /nowarn:1591 /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
93 $(CSC) /optimize+ /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
95 old: test-tokenizer.exe
96 test-tokenizer.exe: $(TEST_TOKENIZER_SOURCES)
97 $(CSC) /target:exe /out:test-tokenizer.exe $(TEST_TOKENIZER_SOURCES)
100 perl -pe 's/\015//' < cs-parser.jay > x.y
101 bison --debug --verbose x.y
103 cs-parser.cs: cs-parser.jay
104 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > cs-parser.cs
107 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay | grep -v '#line' > cs-parser.cs
109 #statementCollection.cs: X-Collection.cs
110 # sed -e "s/@CONTAINEE@/Statement/g" -e "s/@arrayname@/statements/g" < X-Collection.cs > statementCollection.cs
112 #parameterCollection.cs: X-Collection.cs
113 # sed -e "s/@CONTAINEE@/Parameter/g" -e "s/@arrayname@/parameters/g" < X-Collection.cs > parameterCollection.cs
116 rm -f mcs.exe mcs2.exe mcs3.exe cs-parser.cs y.output mcs.pdb *~ .*~ mcs.log response