Small bug fix, to render better an acurrate error
[mono.git] / mcs / mcs / makefile.gnu
1 MCS = mcs
2 MONO = mono
3 MCS_FLAGS = /target:exe $(MCS_DEFINES)
4 INSTALL = /usr/bin/install
5 prefix = /usr
6
7 COMMON_SOURCES = cs-parser.cs cs-tokenizer.cs tree.cs location.cs
8
9 COMPILER_SOURCES = \
10         AssemblyInfo.cs                 \
11         assign.cs                       \
12         attribute.cs                    \
13         driver.cs $(COMMON_SOURCES)     \
14         cfold.cs                        \
15         class.cs                        \
16         codegen.cs                      \
17         const.cs                        \
18         constant.cs                     \
19         decl.cs                         \
20         delegate.cs                     \
21         enum.cs                         \
22         ecore.cs                        \
23         expression.cs                   \
24         genericparser.cs                \
25         interface.cs                    \
26         iterators.cs                    \
27         literal.cs                      \
28         modifiers.cs                    \
29         namespace.cs                    \
30         parameter.cs                    \
31         pending.cs                      \
32         report.cs                       \
33         rootcontext.cs                  \
34         statement.cs                    \
35         support.cs                      \
36         typemanager.cs                  \
37         symbolwriter.cs
38
39 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
40
41 all: mcs.exe
42
43 mcs.exe: $(COMPILER_SOURCES) 
44         $(MCS) $(MCS_FLAGS) -o $@ $(COMPILER_SOURCES)
45
46 mcs-mono.exe: $(COMPILER_SOURCES)
47         $(MONO) mcs.exe $(MCS_FLAGS) -o $@ $(COMPILER_SOURCES)
48
49 mcs-mono2.exe: $(COMPILER_SOURCES)
50         $(MONO) mcs.exe $(MCS_FLAGS) --debug -o $@ $(COMPILER_SOURCES)
51
52 cs-parser.cs: cs-parser.jay
53         ../jay/jay -ctv < ../jay/skeleton.cs $^ > $@
54
55 clean:
56         -rm -f *.exe cs-parser.cs y.output
57
58 install: all
59         mkdir -p $(prefix)/bin/
60         $(INSTALL) -m 755 mcs.exe $(prefix)/bin/
61
62 test:
63