2 MCS_FLAGS = /target:exe $(MCS_DEFINES)
3 INSTALL = /usr/bin/install
6 COMMON_SOURCES = cs-parser.cs cs-tokenizer.cs tree.cs location.cs
12 driver.cs $(COMMON_SOURCES) \
36 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
40 mcs.exe: $(COMPILER_SOURCES)
41 $(MCS) $(MCS_FLAGS) -o $@ $(COMPILER_SOURCES)
43 mcs-mono2.exe: $(COMPILER_SOURCES)
44 $(MCS) $(MCS_FLAGS) --debug -o $@ $(COMPILER_SOURCES)
46 cs-parser.cs: cs-parser.jay
47 ../jay/jay -ctv < ../jay/skeleton.cs $^ > $@
50 -rm -f *.exe cs-parser.cs y.output
53 mkdir -p $(prefix)/bin/
54 $(INSTALL) -m 755 mcs.exe $(prefix)/bin/