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