1 ROOT=/cygdrive/$(subst \,/,$(subst :\,/,$(SYSTEMROOT)))
2 CSC=$(ROOT)/microsoft.net/framework/v1.0.2914/csc.exe
3 CSCFLAGS=/nologo /debug+ /debug:full /optimize
7 COMMON_SOURCES = cs-parser.cs cs-tokenizer.cs tree.cs location.cs
11 driver.cs $(COMMON_SOURCES) \
31 statementCollection.cs \
35 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
38 $(CSC) $(CSCFLAGS) /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
45 $(CSC) /optimize+ /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES)
47 old: test-tokenizer.exe
48 test-tokenizer.exe: $(TEST_TOKENIZER_SOURCES)
49 $(CSC) /target:exe /out:test-tokenizer.exe $(TEST_TOKENIZER_SOURCES)
52 perl -pe 's/\015//' < cs-parser.jay > x.y
53 bison --debug --verbose x.y
55 cs-parser.cs: cs-parser.jay
56 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay > cs-parser.cs
59 ../jay/jay -ctv < ../jay/skeleton.cs cs-parser.jay | grep -v '#line' > cs-parser.cs
61 statementCollection.cs: X-Collection.cs
62 sed -e "s/@CONTAINEE@/Statement/g" -e "s/@arrayname@/statements/g" < X-Collection.cs > statementCollection.cs
64 parameterCollection.cs: X-Collection.cs
65 sed -e "s/@CONTAINEE@/Parameter/g" -e "s/@arrayname@/parameters/g" < X-Collection.cs > parameterCollection.cs
67 DIST_FILES=$(COMPILER_SOURCES) cs-parser.jay makefile ChangeLog
70 rm -rf /tmp/mcs-$(VERSION)
71 mkdir /tmp/mcs-$(VERSION)
72 mkdir /tmp/mcs-$(VERSION)/errors
73 mkdir /tmp/mcs-$(VERSION)/tests
74 mkdir /tmp/mcs-$(VERSION)/docs
75 cp -a $(DIST_FILES) /tmp/mcs-$(VERSION)
76 cp errors/*.cs errors/*.txt /tmp/mcs-$(VERSION)/errors
77 cp tests/*.cs /tmp/mcs-$(VERSION)/tests
78 cp docs/*.txt /tmp/mcs-$(VERSION)/docs
79 (cd /tmp; tar czvf mcs-$(VERSION).tar.gz mcs-$(VERSION))
83 for i in $(COMPILER_SOURCES); do \
84 ./compiler -t tree $$i > try-dir/$$i; \
88 rm -f mcs.exe cs-parser.cs y.output mcs.pdb *~ .*~ mb-parser.cs mcs.log
90 MBAS_SOURCES = mb-parser.cs mb-tokenizer.cs
92 mbas: cs-parser.cs MonoBASIC.Parser.cs
93 $(CSC) $(CSCFLAGS) /target:exe /r:System.dll /out:mcs.exe $(COMPILER_SOURCES) $(MBAS_SOURCES)
95 mb-parser.cs: mb-parser.jay
96 ../jay/jay -ctv < ../jay/skeleton.cs mb-parser.jay > mb-parser.cs