add windows target
[mono.git] / mcs / mbas / makefile
index 3ef9724a18ce2ec827b3aa4377b57adc3841f63e..3de2efec1e34069e19c49d701cd819c00ee334b5 100644 (file)
@@ -1,11 +1,10 @@
-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                \
@@ -37,29 +36,23 @@ COMPILER_SOURCES = \
        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
-