2003-05-27 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / mbas / makefile
1 CSC=csc
2 CSCFLAGS=/nologo /optimize /target:exe /r:System.dll /r:../class/lib/Mono.GetOptions.dll /out:mbas.exe 
3
4 COMPILER_SOURCES = \
5     AssemblyInfo.cs   \
6         assign.cs               \
7         argument.cs             \
8         attribute.cs            \
9         cfold.cs                \
10         class.cs                \
11         codegen.cs              \
12         const.cs                \
13         constant.cs             \
14         decl.cs                 \
15         delegate.cs             \
16         driver.cs               \
17         enum.cs                 \
18         ecore.cs                \
19         expression.cs           \
20         genericparser.cs        \
21         interface.cs            \
22         literal.cs              \
23         location.cs             \
24         mb-parser.cs            \
25         mb-tokenizer.cs         \
26         modifiers.cs            \
27         module.cs               \
28         namespace.cs            \
29         parameter.cs            \
30         pending.cs              \
31         report.cs               \
32         rootcontext.cs          \
33         statement.cs            \
34         statementCollection.cs  \
35         support.cs              \
36         tree.cs                 \
37         typemanager.cs
38
39 linux: all
40 windows: all
41
42 all: mbas.exe
43
44 test: mbas.exe
45         mono mbas.exe --stacktrace --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs
46         mono testmbas/WriteOK.exe
47
48 verbose: mbas.exe
49         mono mbas.exe --stacktrace --verbose --main WriteOK testmbas/WriteOK.vb testmbas/WriteOK2.mbs | less
50
51 mbas.exe: $(COMPILER_SOURCES)
52         $(CSC) $(CSCFLAGS) $(COMPILER_SOURCES)
53
54 clean:
55         rm -f mbas.exe y.output mbas.pdb *~ .*~ mb-parser.cs mbas.log response
56
57 mb-parser.cs: mb-parser.jay
58         ../jay/jay -ctv < ../jay/skeleton.cs mb-parser.jay > mb-parser.cs