3 include ../build/rules.make
41 all_sources = $(COMPILER_SOURCES) cs-parser.cs
52 #uncomment to enable some debug stuff
53 #DEBUG_FLAGS=/define:MCS_DEBUG
57 install-local: gmcs.exe
58 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib/mono/2.0
59 $(INSTALL_BIN) gmcs.exe $(DESTDIR)$(prefix)/lib/mono/2.0
62 -rm -f $(DESTDIR)$(prefix)/bin/mcs.exe
64 test-local run-test-local:
67 rm -f *.exe *.pdb cs-parser.cs y.output
69 dist-local: dist-default
71 gmcs.exe: $(all_sources)
72 MONO_PATH="../class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" mono ../mcs/mcs.exe $(DEBUG_FLAGS) -2 /target:exe /debug /out:$@ $^
74 gmcs2.exe: $(all_sources)
75 MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time mcs -2 /target:exe /debug /out:$@ $^ $(DEBUG_FLAGS)
77 gmcs3.exe: $(all_sources)
78 MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) ./gmcs2.exe $(USE_MCS_FLAGS) $(DEBUG_FLAGS) -2 /target:exe /debug /out:$@ $^
80 gmcs4.exe: $(all_sources)
81 MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time $(RUNTIME) ./gmcs3.exe $(USE_MCS_FLAGS) $(DEBUG_FLAGS) -2 /target:exe /debug /out:$@ $^
83 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
84 $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
90 # This used to be called test, but that conflicts with the global
93 btest: gmcs2.exe gmcs3.exe gmcs4.exe
94 ls -l gmcs3.exe gmcs4.exe
100 rm -f gmcs3.exe mcs4.exe
101 make btest USE_MCS_FLAGS=
103 # we need this because bash tries to use its own crappy timer
104 FRIENDLY_TIME = $(shell which time) -f'%U seconds'
108 $(FRIENDLY_TIME) $(RUNTIME) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
110 @ $(FRIENDLY_TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:mcs3.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
112 @ rm -f ../class/lib/mscorlib.dll
113 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
117 @ rm -f ../class/lib/mscorlib.dll
118 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
123 make gmcs3.exe RUNTIME="$(RUNTIME) --profile"
126 echo $(all_sources) > res