2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / mbas / makefile.gnu
1 MCS = ../mcs/mcs.exe
2 MCS_FLAGS = /target:exe $(MCS_DEFINES)
3 INSTALL = /usr/bin/install
4 prefix = /usr
5 RUNTIME=mono
6
7 COMPILER_SOURCES = \
8       AssemblyInfo.cs   \
9         assign.cs               \
10         argument.cs             \
11         attribute.cs            \
12         cfold.cs                \
13         class.cs                \
14         codegen.cs              \
15         const.cs                \
16         constant.cs             \
17         decl.cs                 \
18         delegate.cs             \
19         driver.cs               \
20         enum.cs                 \
21         ecore.cs                \
22         expression.cs           \
23         genericparser.cs        \
24         interface.cs            \
25         literal.cs              \
26         location.cs             \
27         mb-parser.cs            \
28         mb-tokenizer.cs         \
29         modifiers.cs            \
30         module.cs               \
31         namespace.cs            \
32         parameter.cs            \
33         pending.cs              \
34         report.cs               \
35         rootcontext.cs          \
36         statement.cs            \
37         statementCollection.cs  \
38         support.cs              \
39         tree.cs                 \
40         typemanager.cs
41
42 all: mbas.exe
43
44 mbas.exe: $(COMPILER_SOURCES)
45         $(RUNTIME) $(MCS) $(MCSFLAGS) /r:Mono.GetOptions.dll /out:mbas.exe $(COMPILER_SOURCES)
46
47 clean:
48         rm -f mbas.exe y.output mbas.pdb *~ .*~ mb-parser.cs mbas.log response
49
50 mb-parser.cs: mb-parser.jay
51         ../jay/jay -ctv < ../jay/skeleton.cs mb-parser.jay > mb-parser.cs
52
53 install: all
54         mkdir -p $(prefix)/bin/
55         $(INSTALL) -m 755 mbas.exe $(prefix)/bin/
56
57 test: mbas.exe
58         $(RUNTIME) mbas.exe --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs
59         $(RUNTIME) testmbas/WriteOK.exe
60
61 verbose: mbas.exe
62         $(RUNTIME) mbas.exe --verbose --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs | less
63
64 test-gtk: mbas.exe
65         $(RUNTIME) mbas.exe testmbas/gtk.vb -r gtk-sharp
66         $(RUNTIME) testmbas/gtk.exe
67