Merged from MCS.
[mono.git] / mcs / mbas / Makefile
1 thisdir = mbas
2 SUBDIRS = 
3 include ../build/rules.make
4
5 PROGRAM = mbas.exe
6 BUILT_SOURCES = mb-parser.cs
7 HAS_TEST = yes
8
9 LOCAL_MCS_FLAGS = /r:System.dll /r:$(topdir)/class/lib/Mono.GetOptions.dll
10
11 EXTRA_DISTFILES = mb-parser.jay mbas.csproj mbas.ico mbas.sln
12 CLEAN_FILES = y.output testmbas/WriteOK.exe
13
14 include ../build/executable.make
15
16 test-local: mbas.exe
17
18 run-test-local: testmbas/WriteOK.exe
19         $(TEST_RUNTIME) testmbas/WriteOK.exe
20
21 mb-parser.cs: mb-parser.jay
22         $(topdir)/jay/jay -ctv <$(topdir)/jay/skeleton.cs $< >$@
23
24 verbose: mbas.exe
25         $(TEST_RUNTIME) mbas.exe --verbosegetoptions --stacktrace /r:Mono.GetOptions.dll /r:System.Data,System.Windows.Forms --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs
26
27 testmbas/WriteOK.exe: mbas.exe
28         $(TEST_RUNTIME) mbas.exe --stacktrace /r:Mono.GetOptions.dll /r:System.Data,System.Windows.Forms --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs