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