3 include ../build/rules.make
40 $(topdir)/class/Mono.CSharp.Debugger/MonoSymbolFile.cs \
41 $(topdir)/class/Mono.CSharp.Debugger/MonoSymbolTable.cs \
42 $(topdir)/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs
44 all_sources = $(COMPILER_SOURCES) cs-parser.cs
55 #uncomment to enable some debug stuff
56 #DEBUG_FLAGS=/define:MCS_DEBUG
60 install-local: gmcs.exe
61 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib/mono/2.0
62 $(INSTALL_BIN) gmcs.exe $(DESTDIR)$(prefix)/lib/mono/2.0
63 $(INSTALL_DATA) gmcs.exe.config $(DESTDIR)$(prefix)/lib/mono/2.0
64 $(INSTALL_DATA) gmcs.exe.mdb $(DESTDIR)$(prefix)/lib/mono/2.0
67 -rm -f $(DESTDIR)$(prefix)/bin/mcs.exe
69 test-local run-test-local:
72 rm -f *.exe *.pdb cs-parser.cs y.output *.mdb
74 dist-local: dist-default
76 gmcs.exe: $(all_sources)
77 MONO_PATH="../class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" mono ../mcs/mcs.exe $(DEBUG_FLAGS) -2 /target:exe /debug /out:$@ $^
79 gmcs2.exe: $(all_sources)
80 MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" time mcs -2 /target:exe /debug /out:$@ $^ $(DEBUG_FLAGS)
82 gmcs3.exe: $(all_sources)
83 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:$@ $^
85 gmcs4.exe: $(all_sources)
86 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:$@ $^
88 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
89 $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
95 # This used to be called test, but that conflicts with the global
98 btest: gmcs2.exe gmcs3.exe gmcs4.exe
99 ls -l gmcs3.exe gmcs4.exe
105 rm -f gmcs3.exe mcs4.exe
106 make btest USE_MCS_FLAGS=
108 # we need this because bash tries to use its own crappy timer
109 FRIENDLY_TIME = $(shell which time) -f'%U seconds'
113 $(FRIENDLY_TIME) $(RUNTIME) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
115 @ $(FRIENDLY_TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:mcs3.exe $(all_sources) > /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)
122 @ rm -f ../class/lib/mscorlib.dll
123 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
128 make gmcs3.exe RUNTIME="$(RUNTIME) --profile"
131 echo $(all_sources) > res