-CSC=csc.exe
-CSCFLAGS=/nologo /debug+ /debug:full /optimize /target:exe /r:System.dll /r:Mono.GetOptions.dll /out:mbas.exe
-
-VERSION=0.13
+CSC=csc
+CSCFLAGS=/nologo /optimize /target:exe /r:System.dll /r:../class/lib/Mono.GetOptions.dll /out:mbas.exe
COMPILER_SOURCES = \
- AssemblyInfo.cs \
+ AssemblyInfo.cs \
assign.cs \
+ argument.cs \
attribute.cs \
cfold.cs \
class.cs \
tree.cs \
typemanager.cs
-all: mbas.exe
+linux: all
+windows: all
-parser: mb-parser.cs
+all: mbas.exe
test: mbas.exe
- ./mbas testmbas/WriteOk.vb
+ mono mbas.exe --stacktrace --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs
+ mono testmbas/WriteOK.exe
+
+verbose: mbas.exe
+ mono mbas.exe --stacktrace --verbose --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs | less
mbas.exe: $(COMPILER_SOURCES)
$(CSC) $(CSCFLAGS) $(COMPILER_SOURCES)
-docs: $(COMPILER_SOURCES)
- $(CSC) $(CSCFLAGS) /doc:docs.xml /nowarn:1591 $(COMPILER_SOURCES)
-
-windows: all
-
-linux: all
-
-opt:
- $(CSC) /nologo /optimize+ /r:System.dll /target:exe /out:mbas.exe $(COMPILER_SOURCES)
-
clean:
rm -f mbas.exe y.output mbas.pdb *~ .*~ mb-parser.cs mbas.log response
mb-parser.cs: mb-parser.jay
../jay/jay -ctv < ../jay/skeleton.cs mb-parser.jay > mb-parser.cs
-