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
11 driver.cs $(COMMON_SOURCES) \
35 TEST_TOKENIZER_SOURCES = test-token.cs $(COMMON_SOURCES)
39 mcs.exe: $(COMPILER_SOURCES)
40 $(MCS) $(MCS_FLAGS) -o $@ $(COMPILER_SOURCES)
42 mcs-mono2.exe: $(COMPILER_SOURCES)
43 $(MCS) $(MCS_FLAGS) --debug -o $@ $(COMPILER_SOURCES)
45 cs-parser.cs: cs-parser.jay
46 ../jay/jay -ctv < ../jay/skeleton.cs $^ > $@
49 -rm -f *.exe cs-parser.cs y.output
52 mkdir -p $(prefix)/bin/
53 $(INSTALL) -m 755 mcs.exe $(prefix)/bin/