-CLEAN_FILES = y.output WriteOK.exe x.exe
+thisdir = mbas/Test/misc
-run-test: WriteOK.exe
- mono --debug WriteOK.exe --sayho /about -say:this,that,those /say:what?
+include ../../../build/rules.make
-WriteOK.exe: Makefile *.vb *.mbs
- mbas --verbosegetoptions --stacktrace --reference=Mono.GetOptions -r:System.Data,System.Messaging --main WriteOK WriteOK.vb WriteOK2.mbs AssemblyInfo.vb
+LOCAL_MBAS_FLAGS = --verbosegetoptions --stacktrace
-verbose:
- mbas --verbosegetoptions --verbose --stacktrace /r:Mono.GetOptions /r:System.Data,System.Windows.Forms --main WriteOK WriteOK.vb WriteOK2.mbs AssemblyInfo.vb
+test-local: WriteOK.exe
-test-aspx: aspx_temp.vb
- mbas --stacktrace --verbosegetoptions /target:library /r:"System.dll" /r:"System.Xml.dll" /r:"System.Data.dll" /r:"System.Web.dll" /r:"System.Web.Services.dll" /r:"System.Drawing.dll" -- aspx_temp.vb
+run-test-local: WriteOK.exe
+ $(RUNTIME) --debug WriteOK.exe --sayho /about -say:this,that,those /say:what?
+
+run-test-ondotnet-local: WriteOK.exe
+ ./WriteOK.exe --sayho /about -say:this,that,those /say:what?
+
+WriteOK.exe: Makefile *.vb *.mbs ../../mbas.exe
+ $(BASCOMPILE) --reference=Mono.GetOptions -r:System.Data,System.Messaging --main WriteOK WriteOK.vb WriteOK2.mbs RedimPreserve.vb AssemblyInfo.vb
+
+verbose:
+ $(MAKE) LOCAL_MBAS_FLAGS='--verbosegetoptions --verbose --stacktrace' WriteOK.exe
+
+test-aspx: aspx_temp.dll
+
+aspx_temp.dll: aspx_temp.vb
+ $(BASCOMPILE) --stacktrace --verbosegetoptions /target:library /r:"System.dll" /r:"System.Xml.dll" /r:"System.Data.dll" /r:"System.Web.dll" /r:"System.Web.Services.dll" /r:"System.Drawing.dll" -- aspx_temp.vb
profile: *.vb *.mbs Makefile
- mono --profile ../mbas.exe /out:x.exe /target:exe -r:System.Windows.Forms -r:System.Web /r:Mono.GetOptions /m:WriteOK *.vb *.mbs > profile
+ rm -f WriteOK.exe
+ $(MAKE) RUNTIME='$(RUNTIME) --profile' WriteOK.exe > profile
-clean:
- @rm -f WriteOK.exe aspx_temp.dll x.exe
+clean-local:
+ -rm -f WriteOK.exe aspx_temp.dll x.exe
-all test install run-test-ondotnet uninstall:
+all-local install-local uninstall-local:
@:
- @:
\ No newline at end of file
+
+DISTFILES = $(wildcard *.vb) $(wildcard *.mbs)
+
+dist-local: dist-default